35 : TNamed(name,
"GEM station") {
42 for ( Int_t isz = 0 ; isz < 10 ; isz++ )
80 cout <<
"-W- PndGemStation::GetSensorByNr: sensor " << sensorNr
81 <<
" not found (station " <<
GetStationNr() <<
")." << endl;
92 Int_t nSensors =
fSensors->GetEntries();
106 for ( knownZPos = 0 ; knownZPos < 10 ; knownZPos++ ) {
107 if (
fSensorZ[knownZPos] < -665. )
break;
110 for (Int_t iSect=
GetNSensors(); iSect > 0 ; iSect--) {
112 Bool_t knownAlready = kFALSE;
113 for ( Int_t isz = 0 ; isz < knownZPos ; isz++ )
115 knownAlready = kTRUE;
119 if ( knownAlready )
continue;
133 for ( knownZPos = 0 ; knownZPos < 10 ; knownZPos++ ) {
134 if (
fSensorZ[knownZPos] < -665. )
break;
137 for (Int_t iSect=
GetNSensors(); iSect > 0 ; iSect--) {
139 Bool_t knownAlready = kFALSE;
140 for ( Int_t isz = 0 ; isz < knownZPos ; isz++ )
142 knownAlready = kTRUE;
146 if ( knownAlready )
continue;
158 for (Int_t iSensor=0; iSensor<
GetNSensors(); iSensor++)
167 cout <<
"Station Nr. ";
171 cout <<
fZ <<
" cm, angle = ";
181 cout <<
"STATION: " << flush;
182 while ( tempSId > 0 ) {
184 cout <<
"\b" << tempSId%2 <<
"\b" << flush;
185 if ( bc == 27 || bc == 21 || bc == 8 || bc == 6 || bc == 5 )
186 cout <<
"\b|\b" << flush;
Int_t GetStationNr() const
Double_t GetZ(Int_t it=0)
void AddSensor(PndGemSensor *sensor)
PndGemSensor * GetSensor(Int_t iSensor)
Int_t GetNSensors() const
PndGemSensor * GetSensorByNr(Int_t sensorNr)
Double_t fSensorZ[10]
Map from McId to index.
virtual void Print(Bool_t kLong)
Int_t GetSensorNr() const
Int_t GetNChannels() const
std::map< Int_t, Int_t > fSensorMap
void SetDetectorId(Int_t stationNr)