FairRoot/PandaRoot
|
#include <PndGemStation.h>
Public Member Functions | |
PndGemStation () | |
PndGemStation (const char *name, Int_t stationNr, Double_t z, Double_t rotation) | |
virtual | ~PndGemStation () |
void | SetDetectorId (Int_t stationNr) |
Int_t | GetDetectorId () const |
Int_t | GetSystemId () const |
Int_t | GetStationNr () const |
Double_t | GetZ (Int_t it=0) |
Int_t | GetNSensors () const |
Int_t | GetNChannels () |
TObjArray * | GetSensors () |
PndGemSensor * | GetSensor (Int_t iSensor) |
PndGemSensor * | GetSensorByNr (Int_t sensorNr) |
void | AddSensor (PndGemSensor *sensor) |
Int_t | GetNofZ () |
void | Reset () |
virtual void | Print (Bool_t kLong) |
Protected Member Functions | |
ClassDef (PndGemStation, 1) | |
Protected Attributes | |
Int_t | fDetectorId |
Double32_t | fZ |
Double32_t | fRotation |
TObjArray * | fSensors |
std::map< Int_t, Int_t > | fSensorMap |
std::map< Int_t, Int_t > | fMcIdMap |
Map from sensor number to index. More... | |
Double_t | fSensorZ [10] |
Map from McId to index. More... | |
Definition at line 28 of file PndGemStation.h.
PndGemStation::PndGemStation | ( | ) |
Default constructor
Definition at line 22 of file PndGemStation.cxx.
References fDetectorId, fSensorMap, fSensors, and fZ.
Standard constructor
name | Volume name of station |
stationNr | stationNr |
z | z position of station centre [cm] |
rotation | Rotation angle in global c.s. [rad] |
Definition at line 33 of file PndGemStation.cxx.
References fRotation, fSensorMap, fSensors, fSensorZ, fZ, rotation, SetDetectorId(), and z.
|
virtual |
void PndGemStation::AddSensor | ( | PndGemSensor * | sensor | ) |
Add one sensor to the array
Definition at line 89 of file PndGemStation.cxx.
References fSensorMap, fSensors, and PndGemSensor::GetSensorNr().
Referenced by PndGemDigiPar::CreateStations(), and MyMainFrame::ReadParameters().
|
protected |
|
inline |
Int_t PndGemStation::GetNChannels | ( | ) |
Definition at line 62 of file PndGemStation.cxx.
References PndGemSensor::GetNChannels(), GetNSensors(), and GetSensor().
Referenced by Print().
Int_t PndGemStation::GetNofZ | ( | ) |
Definition at line 130 of file PndGemStation.cxx.
References CAMath::Abs(), Bool_t, fSensorZ, GetNSensors(), GetSensor(), PndGemSensor::GetZ0(), and sensor.
|
inline |
Definition at line 60 of file PndGemStation.h.
References fSensors.
Referenced by PndGemDigiAna::CreateHistos(), PndGemFindHitsQA::CreateHistos(), MyMainFrame::DoInfoStatusBar(), PndGemFindHits::Exec(), PndGemFindHitsQA::Finish(), GetNChannels(), GetNofZ(), GetZ(), PndGemFindHits::Init(), PndGemFindHits::MakeSets(), Print(), PndSttMvdGemTracking::PropagateToGemPlaneAsHelix(), PndSttMvdGemTracking::Reset(), Reset(), and PndSttMvdGemTracking::SetupGEMPlanes().
|
inline |
Definition at line 63 of file PndGemStation.h.
References fSensors.
Referenced by PndGemDigiAna::CreateHistos(), PndGemFindHitsQA::CreateHistos(), PndSttMvdGemTracking::Exec(), PndGemFindHits::Exec(), GetNChannels(), GetNofZ(), PndGemDigiPar::GetSensor(), GetZ(), PndGemFindClusters::Init(), PndGemFindHits::Init(), PndGemFindClustersTB::Init(), PndGemFindHits::MakeSets(), Print(), PndSttMvdGemTracking::PropagateToGemPlaneAsHelix(), PndSttMvdGemTracking::Reset(), Reset(), and PndSttMvdGemTracking::SetupGEMPlanes().
PndGemSensor * PndGemStation::GetSensorByNr | ( | Int_t | sensorNr | ) |
Definition at line 74 of file PndGemStation.cxx.
References fSensorMap, fSensors, and GetStationNr().
Referenced by MyMainFrame::DoInfoStatusBar(), and MyMainFrame::DrawDigis().
|
inline |
|
inline |
Definition at line 57 of file PndGemStation.h.
References fDetectorId.
Referenced by PndGemFindHits::Exec(), GetSensorByNr(), and Print().
|
inline |
Double_t PndGemStation::GetZ | ( | Int_t | it = 0 | ) |
Definition at line 102 of file PndGemStation.cxx.
References CAMath::Abs(), Bool_t, fSensorZ, GetNSensors(), GetSensor(), PndGemSensor::GetZ0(), and sensor.
Referenced by PndGemMagneticFieldVsTrackParameters::Fill2StationsHistograms(), PndGemTrackFinderOnHits::FindTrackSegments(), PndMvdGemTrackFinderOnHits::FindTrackSegments(), PndGemMagneticFieldVsTrackParameters::Finish(), and MyMainFrame::ReadParameters().
|
virtual |
Output to screen
Definition at line 166 of file PndGemStation.cxx.
References fDetectorId, fRotation, fZ, GetNChannels(), GetNSensors(), GetSensor(), GetStationNr(), Pi, and PndGemSensor::Print().
void PndGemStation::Reset | ( | ) |
Reset all eventwise counters
Definition at line 157 of file PndGemStation.cxx.
References GetNSensors(), GetSensor(), and PndGemSensor::Reset().
|
inline |
Accessors
Definition at line 52 of file PndGemStation.h.
References fDetectorId, and kGEM.
Referenced by PndGemStation().
|
protected |
Definition at line 81 of file PndGemStation.h.
Referenced by GetDetectorId(), GetStationNr(), GetSystemId(), PndGemStation(), Print(), and SetDetectorId().
|
protected |
Map from sensor number to index.
Definition at line 86 of file PndGemStation.h.
|
protected |
Definition at line 83 of file PndGemStation.h.
Referenced by PndGemStation(), and Print().
|
protected |
Definition at line 85 of file PndGemStation.h.
Referenced by AddSensor(), GetSensorByNr(), and PndGemStation().
|
protected |
Definition at line 84 of file PndGemStation.h.
Referenced by AddSensor(), GetNSensors(), GetSensor(), GetSensorByNr(), GetSensors(), PndGemStation(), and ~PndGemStation().
|
protected |
Map from McId to index.
Definition at line 88 of file PndGemStation.h.
Referenced by GetNofZ(), GetZ(), and PndGemStation().
|
protected |
Definition at line 82 of file PndGemStation.h.
Referenced by PndGemStation(), and Print().