CbmRoot
|
Helper class to access detector presence. More...
#include <CbmLitDetectorSetup.h>
Public Member Functions | |
CbmLitDetectorSetup () | |
Constructor. More... | |
virtual | ~CbmLitDetectorSetup () |
Destructor. More... | |
void | SetDet (ECbmModuleId detId, bool isDet) |
Set detector presence manually. More... | |
bool | GetDet (ECbmModuleId detId) const |
Return detector presence in setup. More... | |
void | SetElectronSetup (bool isElectronSetup) |
Set electron setup of detector. More... | |
bool | GetElectronSetup () const |
Return true if electron setup is detected. More... | |
void | SetMuonSetup (bool isMuonSetup) |
Set muon setup of detector. More... | |
bool | GetMuonSetup () const |
Return true if muon setup is detected. More... | |
void | DetermineSetup () |
Determines detector presence using TGeoManager. More... | |
string | ToString () const |
Return string representation of class. More... | |
Private Member Functions | |
bool | CheckDetectorPresence (const std::string &name) const |
Check detector presence using TGeoManager. More... | |
Private Attributes | |
bool | fIsElectronSetup |
bool | fIsMuonSetup |
map< ECbmModuleId, bool > | fDet |
Helper class to access detector presence.
Definition at line 22 of file CbmLitDetectorSetup.h.
CbmLitDetectorSetup::CbmLitDetectorSetup | ( | ) |
Constructor.
Definition at line 18 of file CbmLitDetectorSetup.cxx.
|
virtual |
Destructor.
Definition at line 21 of file CbmLitDetectorSetup.cxx.
|
private |
Check detector presence using TGeoManager.
[in] | name | Name of the detector to be checked. |
Definition at line 32 of file CbmLitDetectorSetup.cxx.
Referenced by DetermineSetup().
void CbmLitDetectorSetup::DetermineSetup | ( | ) |
Determines detector presence using TGeoManager.
Definition at line 79 of file CbmLitDetectorSetup.cxx.
References CheckDetectorPresence(), fDet, fIsElectronSetup, fIsMuonSetup, kMuch, kMvd, kRich, kSts, kTof, and kTrd.
Referenced by CbmLitTrackingGeometryConstructor::CbmLitTrackingGeometryConstructor(), CbmLitTrackingQa::CreateHistograms(), CbmLitRadLengthQa::Init(), CbmLitFindGlobalTracksParallel::Init(), CbmLitClusteringQa::Init(), CbmLitTrackingQa::Init(), CbmLitFindGlobalTracksIdeal::Init(), CbmLitFitQa::Init(), and CbmLitFindGlobalTracks::Init().
bool CbmLitDetectorSetup::GetDet | ( | ECbmModuleId | detId | ) | const |
Return detector presence in setup.
[in] | detId | Detector identificator. |
Definition at line 27 of file CbmLitDetectorSetup.cxx.
References fDet.
Referenced by CbmLitFindGlobalTracksParallel::ConstructGlobalTracks(), CbmLitFindGlobalTracks::ConvertInputData(), CbmLitClusteringQa::CreateClusterParametersHistograms(), CbmLitTrackingQa::CreateGlobalTrackingHistogramNames(), CbmLitFindGlobalTracksIdeal::CreateGlobalTracks(), CbmLitRadLengthQa::CreateHistograms(), CbmLitTrackingQa::CreateHistograms(), CbmLitClusteringQa::CreateHitEfficiencyHistograms(), CbmLitClusteringQa::CreateNofObjectsHistograms(), CbmLitFitQa::CreateResidualAndPullHistograms(), CbmLitFitQa::CreateTrackParamHistograms(), CbmLitFindGlobalTracksParallel::DoTracking(), CbmLitTrackingQa::ElectronId(), CbmLitFindGlobalTracksParallel::Exec(), CbmLitFindGlobalTracksIdeal::Exec(), CbmLitRadLengthQa::ExecDetector(), CbmLitTrackingGeometryConstructor::GetRichMaterial(), CbmLitTrackingQa::GlobalTrackVariants(), CbmLitTrackingQa::IncreaseCounters(), CbmLitClusteringQa::InitMuchGeoScheme(), CbmLitFindGlobalTracks::InitTrackReconstruction(), CbmLitTrackingQa::LocalEfficiencyNormalization(), CbmLitTrackingQa::PionSuppression(), CbmLitTrackingQa::PionSuppressionVariants(), CbmLitTrackingQa::ProcessGlobalTracks(), CbmLitTrackingQa::ProcessMcTracks(), CbmLitTrackingQa::ProcessMvd(), CbmLitTrackingQa::ProcessRichRings(), CbmLitFindGlobalTracksParallel::ReadAndCreateDataBranches(), CbmLitFindGlobalTracksIdeal::ReadDataBranches(), CbmLitTrackingQa::ReadDataBranches(), CbmLitFindGlobalTracks::ReadInputBranches(), CbmLitFindGlobalTracks::RegisterOutputBranches(), and CbmLitFindGlobalTracks::RunTrackReconstruction().
|
inline |
Return true if electron setup is detected.
Definition at line 60 of file CbmLitDetectorSetup.h.
References fIsElectronSetup.
Referenced by CbmLitTrackingQa::FillDefaultPiSuppCategories(), CbmLitTrackingQa::FillDefaultRingPIDCategories(), CbmLitTrackingQa::FillDefaultTrackCategories(), CbmLitTrackingQa::FillDefaultTrackPIDCategories(), and CbmLitFindGlobalTracks::InitTrackReconstruction().
|
inline |
Return true if muon setup is detected.
Definition at line 72 of file CbmLitDetectorSetup.h.
References fIsMuonSetup.
void CbmLitDetectorSetup::SetDet | ( | ECbmModuleId | detId, |
bool | isDet | ||
) |
Set detector presence manually.
[in] | detId | Detector identificator. |
[in] | isDet | True if detector is in the setup. |
Definition at line 23 of file CbmLitDetectorSetup.cxx.
References fDet.
Referenced by CbmLitFindGlobalTracks::ReadInputBranches().
|
inline |
Set electron setup of detector.
[in] | isElectronSetup | True if electron setup. |
Definition at line 52 of file CbmLitDetectorSetup.h.
References fIsElectronSetup.
|
inline |
Set muon setup of detector.
[in] | isMuonSetup | True if muon setup. |
Definition at line 66 of file CbmLitDetectorSetup.h.
References fIsMuonSetup.
string CbmLitDetectorSetup::ToString | ( | ) | const |
Return string representation of class.
Definition at line 99 of file CbmLitDetectorSetup.cxx.
References fDet, fIsElectronSetup, fIsMuonSetup, kMuch, kMvd, kRich, kSts, kTof, and kTrd.
Referenced by CbmLitFindGlobalTracksParallel::Init(), CbmLitFindGlobalTracksIdeal::Init(), and CbmLitFindGlobalTracks::Init().
|
private |
Definition at line 95 of file CbmLitDetectorSetup.h.
Referenced by DetermineSetup(), GetDet(), SetDet(), and ToString().
|
private |
Definition at line 93 of file CbmLitDetectorSetup.h.
Referenced by DetermineSetup(), GetElectronSetup(), SetElectronSetup(), and ToString().
|
private |
Definition at line 94 of file CbmLitDetectorSetup.h.
Referenced by DetermineSetup(), GetMuonSetup(), SetMuonSetup(), and ToString().