CbmRoot
|
Helper class to access detector presence. More...
#include <CbmLitDetectorSetup.h>
Public Member Functions | |
CbmLitDetectorSetup () | |
Constructor. | |
virtual | ~CbmLitDetectorSetup () |
Destructor. | |
void | SetDet (ECbmModuleId detId, bool isDet) |
Set detector presence manually. | |
bool | GetDet (ECbmModuleId detId) const |
Return detector presence in setup. | |
void | SetElectronSetup (bool isElectronSetup) |
Set electron setup of detector. | |
bool | GetElectronSetup () const |
Return true if electron setup is detected. | |
void | SetMuonSetup (bool isMuonSetup) |
Set muon setup of detector. | |
bool | GetMuonSetup () const |
Return true if muon setup is detected. | |
void | DetermineSetup () |
Determines detector presence using TGeoManager. | |
string | ToString () const |
Return string representation of class. | |
Private Member Functions | |
bool | CheckDetectorPresence (const std::string &name) const |
Check detector presence using TGeoManager. | |
Private Attributes | |
bool | fIsElectronSetup |
bool | fIsMuonSetup |
map< ECbmModuleId, bool > | fDet |
Helper class to access detector presence.
Definition at line 27 of file CbmLitDetectorSetup.h.
CbmLitDetectorSetup::CbmLitDetectorSetup | ( | ) |
Constructor.
Definition at line 22 of file CbmLitDetectorSetup.cxx.
|
virtual |
Destructor.
Definition at line 24 of file CbmLitDetectorSetup.cxx.
|
private |
Check detector presence using TGeoManager.
[in] | name | Name of the detector to be checked. |
Definition at line 34 of file CbmLitDetectorSetup.cxx.
Referenced by DetermineSetup().
void CbmLitDetectorSetup::DetermineSetup | ( | ) |
Determines detector presence using TGeoManager.
Definition at line 88 of file CbmLitDetectorSetup.cxx.
References CheckDetectorPresence(), fDet, fIsElectronSetup, fIsMuonSetup, kMuch, kMvd, kRich, kSts, kTof, and kTrd.
Referenced by CbmLitTrackingGeometryConstructor::CbmLitTrackingGeometryConstructor(), CbmLitTrackingQa::CreateHistograms(), CbmLitClusteringQa::Init(), CbmLitFindGlobalTracks::Init(), CbmLitFindGlobalTracksIdeal::Init(), CbmLitFindGlobalTracksParallel::Init(), CbmLitFitQa::Init(), CbmLitRadLengthQa::Init(), and CbmLitTrackingQa::Init().
bool CbmLitDetectorSetup::GetDet | ( | ECbmModuleId | detId | ) | const |
Return detector presence in setup.
[in] | detId | Detector identificator. |
Definition at line 28 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(), CbmLitClusteringQa::CreateNofObjectsHistograms(), CbmLitFitQa::CreateResidualAndPullHistograms(), CbmLitFitQa::CreateTrackParamHistograms(), CbmLitFindGlobalTracksParallel::DoTracking(), CbmLitTrackingQa::ElectronId(), CbmLitFindGlobalTracksIdeal::Exec(), CbmLitFindGlobalTracksParallel::Exec(), CbmLitRadLengthQa::ExecDetector(), 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 63 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 75 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 26 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 57 of file CbmLitDetectorSetup.h.
References fIsElectronSetup.
|
inline |
Set muon setup of detector.
[in] | isMuonSetup | True if muon setup. |
Definition at line 69 of file CbmLitDetectorSetup.h.
References fIsMuonSetup.
string CbmLitDetectorSetup::ToString | ( | ) | const |
Return string representation of class.
Definition at line 108 of file CbmLitDetectorSetup.cxx.
References fDet, fIsElectronSetup, fIsMuonSetup, kMuch, kMvd, kRich, kSts, kTof, and kTrd.
Referenced by CbmLitFindGlobalTracks::Init(), CbmLitFindGlobalTracksIdeal::Init(), and CbmLitFindGlobalTracksParallel::Init().
|
private |
Definition at line 98 of file CbmLitDetectorSetup.h.
Referenced by DetermineSetup(), GetDet(), SetDet(), and ToString().
|
private |
Definition at line 96 of file CbmLitDetectorSetup.h.
Referenced by DetermineSetup(), GetElectronSetup(), SetElectronSetup(), and ToString().
|
private |
Definition at line 97 of file CbmLitDetectorSetup.h.
Referenced by DetermineSetup(), GetMuonSetup(), SetMuonSetup(), and ToString().