CbmRoot
Loading...
Searching...
No Matches
CbmLitDetectorSetup Class Reference

Helper class to access detector presence. More...

#include <CbmLitDetectorSetup.h>

Collaboration diagram for CbmLitDetectorSetup:
[legend]

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
 

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 27 of file CbmLitDetectorSetup.h.

Constructor & Destructor Documentation

◆ CbmLitDetectorSetup()

CbmLitDetectorSetup::CbmLitDetectorSetup ( )

Constructor.

Definition at line 22 of file CbmLitDetectorSetup.cxx.

◆ ~CbmLitDetectorSetup()

CbmLitDetectorSetup::~CbmLitDetectorSetup ( )
virtual

Destructor.

Definition at line 24 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 34 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 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().

◆ 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 75 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 26 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 57 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 69 of file CbmLitDetectorSetup.h.

References fIsMuonSetup.

◆ ToString()

string CbmLitDetectorSetup::ToString ( ) const

Return string representation of class.

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

Member Data Documentation

◆ fDet

map<ECbmModuleId, bool> CbmLitDetectorSetup::fDet
private

Definition at line 98 of file CbmLitDetectorSetup.h.

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

◆ fIsElectronSetup

bool CbmLitDetectorSetup::fIsElectronSetup
private

Definition at line 96 of file CbmLitDetectorSetup.h.

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

◆ fIsMuonSetup

bool CbmLitDetectorSetup::fIsMuonSetup
private

Definition at line 97 of file CbmLitDetectorSetup.h.

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


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