|
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.
References fDet, fIsElectronSetup, and fIsMuonSetup.
|
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.
| 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.
|
inline |
Return true if electron setup is detected.
Definition at line 63 of file CbmLitDetectorSetup.h.
References fIsElectronSetup.
|
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.
|
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.
|
private |
Definition at line 98 of file CbmLitDetectorSetup.h.
Referenced by CbmLitDetectorSetup(), DetermineSetup(), GetDet(), SetDet(), and ToString().
|
private |
Definition at line 96 of file CbmLitDetectorSetup.h.
Referenced by CbmLitDetectorSetup(), DetermineSetup(), GetElectronSetup(), SetElectronSetup(), and ToString().
|
private |
Definition at line 97 of file CbmLitDetectorSetup.h.
Referenced by CbmLitDetectorSetup(), DetermineSetup(), GetMuonSetup(), SetMuonSetup(), and ToString().