CbmRoot
LitSubstationMuon.h
Go to the documentation of this file.
1 
8 #ifndef LITSUBSTATIONMUON_H_
9 #define LITSUBSTATIONMUON_H_
10 
11 #include "../LitMaterialInfo.h"
12 
13 namespace lit {
14  namespace parallel {
15 
22  template<class T>
24  public:
29 
33  virtual ~LitSubstationMuon() {}
34 
39  const T& GetZ() const { return fZ; }
40 
45  void SetZ(const T& z) { fZ = z; }
46 
51  const LitMaterialInfo<T>& GetMaterial() const { return fMaterial; }
52 
57  void SetMaterial(const LitMaterialInfo<T>& material) {
58  fMaterial = material;
59  }
60 
65  std::string ToString() const {
66  return "LitSubstationMuon: Z=" + lit::parallel::ToString<T>(GetZ())
67  + ", material=" + GetMaterial().ToString();
68  }
69 
74  friend std::ostream& operator<<(std::ostream& strm,
75  const LitSubstationMuon& substation) {
76  strm << substation.ToString();
77  return strm;
78  }
79 
80  private:
81  T fZ; // Z position of substation in [cm]
82  LitMaterialInfo<T> fMaterial; // Material of substation
84 
85  /* Some typedefs for convenience */
88 
89  } // namespace parallel
90 } // namespace lit
91 #endif /* LITSUBSTATIONMUON_H_ */
lit::parallel::LitSubstationMuon::SetZ
void SetZ(const T &z)
Set Z pposition of substation.
Definition: LitSubstationMuon.h:45
lit::parallel::LitSubstationMuon::LitSubstationMuon
LitSubstationMuon()
Constructor.
Definition: LitSubstationMuon.h:28
lit::parallel::LitSubstationMuon
Substation in muon detector layout.
Definition: LitSubstationMuon.h:23
lit::parallel::LitSubstationMuon::fZ
T fZ
Definition: LitSubstationMuon.h:81
lit::parallel::LitSubstationMuon::GetMaterial
const LitMaterialInfo< T > & GetMaterial() const
Return material of substation.
Definition: LitSubstationMuon.h:51
lit::parallel::LitSubstationMuon::operator<<
friend std::ostream & operator<<(std::ostream &strm, const LitSubstationMuon &substation)
Operator << for convenient output to std::ostream.
Definition: LitSubstationMuon.h:74
lit::parallel::LitSubstationMuon::SetMaterial
void SetMaterial(const LitMaterialInfo< T > &material)
Set material of substation.
Definition: LitSubstationMuon.h:57
lit::parallel::_fvecalignment
class lit::parallel::LitDetectorLayout _fvecalignment
lit::parallel::LitSubstationMuonScal
LitSubstationMuon< fscal > LitSubstationMuonScal
Definition: LitSubstationMuon.h:87
lit::parallel::LitSubstationMuon::~LitSubstationMuon
virtual ~LitSubstationMuon()
Destructor.
Definition: LitSubstationMuon.h:33
lit::parallel::LitSubstationMuon::GetZ
const T & GetZ() const
Return Z position of substation.
Definition: LitSubstationMuon.h:39
lit::parallel::LitSubstationMuon::fMaterial
LitMaterialInfo< T > fMaterial
Definition: LitSubstationMuon.h:82
lit::parallel::LitSubstationMuonVec
LitSubstationMuon< fvec > LitSubstationMuonVec
Definition: LitSubstationMuon.h:86
lit::parallel::LitSubstationMuon::ToString
std::string ToString() const
Return string representation for the class.
Definition: LitSubstationMuon.h:65
lit
Definition: LitTrackFinderNNVecElectron.h:19