BmnRoot
Loading...
Searching...
No Matches
BmnSsdStation.h
Go to the documentation of this file.
1
7#ifndef BMNSSDSTATION_H
8#define BMNSSDSTATION_H 1
9
10
11#include <string>
12#include "TGeoPhysicalNode.h"
13#include "TNamed.h"
14
15class BmnSsdElement;
16class BmnSsdSensor;
17
18
29class BmnSsdStation : public TNamed {
30
31 public:
32
35
36
42 BmnSsdStation(const char* name, const char* title,
43 TGeoPhysicalNode* node = NULL);
44
45
47 virtual ~BmnSsdStation();
48
49
51 void AddLadder(BmnSsdElement* ladder);
52
53
60 Double_t GetRadLength() const { return 9.34953; }
61
62
72 Double_t GetSensorD() const { return fSensorD; }
73
74
85 Double_t GetSensorPitch(Int_t iSide) const;
86
87
97 Double_t GetSensorRotation() const { return fSensorRot; }
98
99
110 Double_t GetSensorStereoAngle(Int_t iSide) const;
111
112
114 Double_t GetXmin() const { return fXmin; }
115 Double_t GetXmax() const { return fXmax; }
116 Double_t GetYmin() const { return fYmin; }
117 Double_t GetYmax() const { return fYmax; }
118
119
125 Double_t GetZ() const { return fZ; }
126
127
129 void Init();
130
131
133 virtual std::string ToString() const;
134
135
136
137
138 private:
139
140 Double_t fZ;
141 Double_t fXmin;
142 Double_t fXmax;
143 Double_t fYmin;
144 Double_t fYmax;
145 Double_t fSensorD;
146 Double_t fSensorRot;
147 Int_t fNofSensors;
148 Bool_t fDiffSensorD;
149 BmnSsdSensor* fFirstSensor;
150
151 TGeoPhysicalNode* fNode;
152 std::vector<BmnSsdElement*> fLadders;
153
154
155
163 void CheckSensorProperties();
164
165
166 // --- Prevent usage of copy constructor and assignment operator
167 BmnSsdStation(const BmnSsdStation&) = delete;
168 BmnSsdStation& operator=(const BmnSsdStation&) = delete;
169
170
171 ClassDef(BmnSsdStation, 1);
172};
173
174#endif /* BMNSSDSTATION_H */
Class representing an element of the SSD setup.
Class representing an instance of a sensor in the BMN-SSD.
Class representing a station of the SsdSystem.
Double_t GetYmin() const
Double_t GetXmin() const
Double_t GetXmax() const
Double_t GetZ() const
Double_t GetSensorPitch(Int_t iSide) const
Double_t GetSensorRotation() const
void Init()
Initialise the station parameters.
Double_t GetSensorStereoAngle(Int_t iSide) const
Double_t GetYmax() const
virtual ~BmnSsdStation()
Double_t GetSensorD() const
void AddLadder(BmnSsdElement *ladder)
virtual std::string ToString() const
Double_t GetRadLength() const