CbmRoot
CbmMvdStationPar.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- CbmMvdStationPar header file -----
3 // ----- Created 28/10/14 by P.Sitzmann -----
4 // -------------------------------------------------------------------------
5 
6 
15 #ifndef CBMMVDSTATIONPAR_H
16 #define CBMMVDSTATIONPAR_H 1
17 
18 
19 #include "TNamed.h"
20 #include <map>
21 
22 class CbmMvdStationPar : public TNamed {
23 
24 public:
27 
29  virtual ~CbmMvdStationPar();
30 
31  Bool_t Init();
32 
34  Int_t GetStationCount() const { return fStationCount; };
35  Double_t GetZPosition(Int_t stationNumber) const;
36  Double_t GetThickness(Int_t stationNumber) const;
37  Double_t GetHeight(Int_t stationNumber) const;
38  Double_t GetWidth(Int_t stationNumber) const;
39  Double_t GetXRes(Int_t stationNumber) const;
40  Double_t GetYRes(Int_t stationNumber) const;
41  Double_t GetRadLength(Int_t stationNumber) const;
42  Double_t GetBeamHeight(Int_t stationNumber) const;
43  Double_t GetBeamWidth(Int_t stationNumber) const;
44 
45 
47  void SetStationCount(Int_t count) { fStationCount = count; };
48  void SetZPosition(Int_t stationNumber, Double_t z);
49  void SetThickness(Int_t stationNumber, Double_t thickness);
50  void SetHeight(Int_t stationNumber, Double_t height);
51  void SetWidth(Int_t stationNumber, Double_t width);
52  void SetXRes(Int_t stationNumber, Double_t xres);
53  void SetYRes(Int_t stationNumber, Double_t yres);
54  void SetRadLength(Int_t stationNumber, Double_t length);
55  void SetBeamHeight(Int_t stationNumber, Double_t beamheight);
56  void SetBeamWidth(Int_t stationNumber, Double_t beamwidth);
57  void SetNofStations(Int_t nrOfStations) { fStationCount = nrOfStations; };
58 
60  void Print(Option_t* opt = "") const;
61 
62 
63 protected:
64  Int_t fStationCount; // Number of Stations, station numbering starts at 0!!!
65 
66  std::map<Int_t, Int_t> fZPositions; // map of the z positions of all Stations
67  std::map<Int_t, Double_t> fThicknesses; // in cm
68  std::map<Int_t, Double_t> fHeights; // in cm
69  std::map<Int_t, Double_t> fWidths; // in cm
70  std::map<Int_t, Double_t> fXResolutions; // in mu m
71  std::map<Int_t, Double_t> fYResolutions; // in mu m
72  std::map<Int_t, Double_t> fRadiationLength; // in %x0
73  std::map<Int_t, Double_t> fBeamHeights; // in cm
74  std::map<Int_t, Double_t> fBeamWidths; // in cm
75 
76 
78 };
79 
80 
81 #endif
CbmMvdStationPar::fWidths
std::map< Int_t, Double_t > fWidths
Definition: CbmMvdStationPar.h:69
CbmMvdStationPar::SetRadLength
void SetRadLength(Int_t stationNumber, Double_t length)
Definition: CbmMvdStationPar.cxx:234
CbmMvdStationPar::GetZPosition
Double_t GetZPosition(Int_t stationNumber) const
Definition: CbmMvdStationPar.cxx:82
CbmMvdStationPar::fXResolutions
std::map< Int_t, Double_t > fXResolutions
Definition: CbmMvdStationPar.h:70
CbmMvdStationPar::SetNofStations
void SetNofStations(Int_t nrOfStations)
Definition: CbmMvdStationPar.h:57
CbmMvdStationPar::GetXRes
Double_t GetXRes(Int_t stationNumber) const
Definition: CbmMvdStationPar.cxx:130
CbmMvdStationPar::Init
Bool_t Init()
Definition: CbmMvdStationPar.cxx:65
CbmMvdStationPar::SetHeight
void SetHeight(Int_t stationNumber, Double_t height)
Definition: CbmMvdStationPar.cxx:210
CbmMvdStationPar::GetWidth
Double_t GetWidth(Int_t stationNumber) const
Definition: CbmMvdStationPar.cxx:117
CbmMvdStationPar::SetBeamWidth
void SetBeamWidth(Int_t stationNumber, Double_t beamwidth)
Definition: CbmMvdStationPar.cxx:252
CbmMvdStationPar::SetXRes
void SetXRes(Int_t stationNumber, Double_t xres)
Definition: CbmMvdStationPar.cxx:222
CbmMvdStationPar::SetYRes
void SetYRes(Int_t stationNumber, Double_t yres)
Definition: CbmMvdStationPar.cxx:228
CbmMvdStationPar::SetStationCount
void SetStationCount(Int_t count)
Definition: CbmMvdStationPar.h:47
CbmMvdStationPar::CbmMvdStationPar
CbmMvdStationPar()
Definition: CbmMvdStationPar.cxx:18
CbmMvdStationPar::fRadiationLength
std::map< Int_t, Double_t > fRadiationLength
Definition: CbmMvdStationPar.h:72
CbmMvdStationPar::SetZPosition
void SetZPosition(Int_t stationNumber, Double_t z)
Definition: CbmMvdStationPar.cxx:191
CbmMvdStationPar::GetThickness
Double_t GetThickness(Int_t stationNumber) const
Definition: CbmMvdStationPar.cxx:93
CbmMvdStationPar::fThicknesses
std::map< Int_t, Double_t > fThicknesses
Definition: CbmMvdStationPar.h:67
CbmMvdStationPar::GetBeamWidth
Double_t GetBeamWidth(Int_t stationNumber) const
Definition: CbmMvdStationPar.cxx:178
CbmMvdStationPar::GetYRes
Double_t GetYRes(Int_t stationNumber) const
Definition: CbmMvdStationPar.cxx:142
CbmMvdStationPar::SetThickness
void SetThickness(Int_t stationNumber, Double_t thickness)
Definition: CbmMvdStationPar.cxx:202
CbmMvdStationPar::fYResolutions
std::map< Int_t, Double_t > fYResolutions
Definition: CbmMvdStationPar.h:71
CbmMvdStationPar::fHeights
std::map< Int_t, Double_t > fHeights
Definition: CbmMvdStationPar.h:68
CbmMvdStationPar::SetWidth
void SetWidth(Int_t stationNumber, Double_t width)
Definition: CbmMvdStationPar.cxx:216
CbmMvdStationPar::fBeamWidths
std::map< Int_t, Double_t > fBeamWidths
Definition: CbmMvdStationPar.h:74
CbmMvdStationPar::fStationCount
Int_t fStationCount
Definition: CbmMvdStationPar.h:64
CbmMvdStationPar::Print
void Print(Option_t *opt="") const
Definition: CbmMvdStationPar.cxx:37
CbmMvdStationPar::~CbmMvdStationPar
virtual ~CbmMvdStationPar()
Definition: CbmMvdStationPar.cxx:33
CbmMvdStationPar::GetHeight
Double_t GetHeight(Int_t stationNumber) const
Definition: CbmMvdStationPar.cxx:105
CbmMvdStationPar::SetBeamHeight
void SetBeamHeight(Int_t stationNumber, Double_t beamheight)
Definition: CbmMvdStationPar.cxx:240
CbmMvdStationPar
Definition: CbmMvdStationPar.h:22
CbmMvdStationPar::ClassDef
ClassDef(CbmMvdStationPar, 1)
CbmMvdStationPar::GetRadLength
Double_t GetRadLength(Int_t stationNumber) const
Definition: CbmMvdStationPar.cxx:154
CbmMvdStationPar::fBeamHeights
std::map< Int_t, Double_t > fBeamHeights
Definition: CbmMvdStationPar.h:73
CbmMvdStationPar::GetBeamHeight
Double_t GetBeamHeight(Int_t stationNumber) const
Definition: CbmMvdStationPar.cxx:166
CbmMvdStationPar::fZPositions
std::map< Int_t, Int_t > fZPositions
Definition: CbmMvdStationPar.h:66
CbmMvdStationPar::GetStationCount
Int_t GetStationCount() const
Definition: CbmMvdStationPar.h:34