43 Double_t
d, Double_t rl, Double_t rmin,
44 Double_t rmax, Double_t rotation)
45: TNamed(name,
"STS station"),
68 for ( Int_t isz = 0 ; isz < 10 ; isz++ )
103 cout <<
"-W- CbmStsStation::GetSectorByNr: sector " << sectorNr
104 <<
" not found (station " <<
GetStationNr() <<
")." << endl;
120 cout <<
"-W- " <<
fName <<
"::AddSector: Sector number " << iSector
121 <<
" already existing for station " <<
GetStationNr() << endl;
126 Int_t detId = 2 << 24 | (
GetStationNr() << 16) | (iSector << 4);
129 Int_t nSectors =
fSectors->GetEntries();
142 Int_t nSectors =
fSectors->GetEntries();
156 for ( knownZPos = 0 ; knownZPos < 10 ; knownZPos++ ) {
157 if (
fSensorZ[knownZPos] < -665. )
break;
160 for (Int_t iSect=
GetNSectors(); iSect > 0 ; iSect--) {
162 for (Int_t iSens=sector->
GetNSensors() ; iSens > 0 ; iSens--) {
164 Bool_t knownAlready = kFALSE;
165 for ( Int_t isz = 0 ; isz < knownZPos ; isz++ )
167 knownAlready = kTRUE;
171 if ( knownAlready )
continue;
186 for ( knownZPos = 0 ; knownZPos < 10 ; knownZPos++ ) {
187 if (
fSensorZ[knownZPos] < -665. )
break;
190 for (Int_t iSect=
GetNSectors(); iSect > 0 ; iSect--) {
192 for (Int_t iSens=sector->
GetNSensors() ; iSens > 0 ; iSens--) {
194 Bool_t knownAlready = kFALSE;
195 for ( Int_t isz = 0 ; isz < knownZPos ; isz++ )
197 knownAlready = kTRUE;
201 if ( knownAlready )
continue;
214 for (Int_t iSector=0; iSector<
GetNSectors(); iSector++)
223 cout <<
"Station Nr. ";
227 cout <<
fZ <<
" cm, Rmin = ";
229 cout <<
fRmin <<
" cm, Rmax = " <<
fRmax <<
" cm, angle = ";
231 cout <<
fRotation * 180 / TMath::Pi() <<
" deg., sectors: ";
const Float_t d
Z-ccordinate of the first GEM-station.
Int_t GetSectorNr() const
Int_t GetSectorNr() const
Int_t GetNChannels() const
CbmStsSensor * GetSensor(Int_t iSensor)
Int_t GetNSensors() const
virtual void Print(Bool_t kLong)
Int_t GetNSectors() const
std::map< Int_t, Int_t > fSectorMap
void AddSector(CbmStsSectorDigiPar *sectorPar)
Double_t GetZ(Int_t it=0)
CbmStsSector * GetSectorByNr(Int_t sectorNr)
Int_t GetStationNr() const
CbmStsSector * GetSector(Int_t iSector)
Double_t fSensorZ[30]
Map from McId to index.