CbmRoot
CbmLitDetectorSetup Class Reference

Helper class to access detector presence. More...

#include <CbmLitDetectorSetup.h>

Collaboration diagram for CbmLitDetectorSetup:
[legend]

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
 

Detailed Description

Helper class to access detector presence.

Author
Andrey Lebedev andre.nosp@m.y.le.nosp@m.bedev.nosp@m.@gsi.nosp@m..de
Date
2012

Definition at line 22 of file CbmLitDetectorSetup.h.

Constructor & Destructor Documentation

◆ CbmLitDetectorSetup()

CbmLitDetectorSetup::CbmLitDetectorSetup ( )

Constructor.

Definition at line 18 of file CbmLitDetectorSetup.cxx.

◆ ~CbmLitDetectorSetup()

CbmLitDetectorSetup::~CbmLitDetectorSetup ( )
virtual

Destructor.

Definition at line 21 of file CbmLitDetectorSetup.cxx.

Member Function Documentation

◆ CheckDetectorPresence()

bool CbmLitDetectorSetup::CheckDetectorPresence ( const std::string &  name) const
private

Check detector presence using TGeoManager.

Parameters
[in]nameName of the detector to be checked.
Returns
True if detector was found in TGeoManager.

Definition at line 32 of file CbmLitDetectorSetup.cxx.

Referenced by DetermineSetup().

◆ DetermineSetup()

◆ GetDet()

bool CbmLitDetectorSetup::GetDet ( ECbmModuleId  detId) const

Return detector presence in setup.

Parameters
[in]detIdDetector identificator.
Returns
Detector presence in setup.

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().

◆ GetElectronSetup()

bool CbmLitDetectorSetup::GetElectronSetup ( ) const
inline

◆ GetMuonSetup()

bool CbmLitDetectorSetup::GetMuonSetup ( ) const
inline

Return true if muon setup is detected.

Returns
True if muon setup is detected.

Definition at line 72 of file CbmLitDetectorSetup.h.

References fIsMuonSetup.

◆ SetDet()

void CbmLitDetectorSetup::SetDet ( ECbmModuleId  detId,
bool  isDet 
)

Set detector presence manually.

Parameters
[in]detIdDetector identificator.
[in]isDetTrue if detector is in the setup.

Definition at line 23 of file CbmLitDetectorSetup.cxx.

References fDet.

Referenced by CbmLitFindGlobalTracks::ReadInputBranches().

◆ SetElectronSetup()

void CbmLitDetectorSetup::SetElectronSetup ( bool  isElectronSetup)
inline

Set electron setup of detector.

Parameters
[in]isElectronSetupTrue if electron setup.

Definition at line 52 of file CbmLitDetectorSetup.h.

References fIsElectronSetup.

◆ SetMuonSetup()

void CbmLitDetectorSetup::SetMuonSetup ( bool  isMuonSetup)
inline

Set muon setup of detector.

Parameters
[in]isMuonSetupTrue if muon setup.

Definition at line 66 of file CbmLitDetectorSetup.h.

References fIsMuonSetup.

◆ ToString()

string CbmLitDetectorSetup::ToString ( ) const

Return string representation of class.

Returns
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().

Member Data Documentation

◆ fDet

map<ECbmModuleId, bool> CbmLitDetectorSetup::fDet
private

Definition at line 95 of file CbmLitDetectorSetup.h.

Referenced by DetermineSetup(), GetDet(), SetDet(), and ToString().

◆ fIsElectronSetup

bool CbmLitDetectorSetup::fIsElectronSetup
private

Definition at line 93 of file CbmLitDetectorSetup.h.

Referenced by DetermineSetup(), GetElectronSetup(), SetElectronSetup(), and ToString().

◆ fIsMuonSetup

bool CbmLitDetectorSetup::fIsMuonSetup
private

Definition at line 94 of file CbmLitDetectorSetup.h.

Referenced by DetermineSetup(), GetMuonSetup(), SetMuonSetup(), and ToString().


The documentation for this class was generated from the following files: