Go to the documentation of this file.
10 #include "FairLogger.h"
11 #include "FairRunAna.h"
12 #include "FairRuntimeDb.h"
16 : fUseAllDetectors(useAllDetectors)
19 , fPrimaryParticleIds()
50 if (0 == geoReader) LOG(fatal) <<
"Couldn't instantiate CbmBinnedGeoReader";
54 FairRootManager* ioman = FairRootManager::Instance();
56 if (0 == ioman) LOG(fatal) <<
"No FairRootManager";
58 fMCTracks =
static_cast<TClonesArray*
>(ioman->GetObject(
"MCTrack"));
60 if (0 ==
fMCTracks) LOG(fatal) <<
"No MC tracks in the input file";
63 fStsPoints =
static_cast<TClonesArray*
>(ioman->GetObject(
"StsPoint"));
65 if (0 ==
fStsPoints) LOG(fatal) <<
"No sts MC points in the input file";
69 fMuchPoints =
static_cast<TClonesArray*
>(ioman->GetObject(
"MuchPoint"));
71 if (0 ==
fMuchPoints) LOG(fatal) <<
"No much MC points in the input file";
75 fTrdPoints =
static_cast<TClonesArray*
>(ioman->GetObject(
"TrdPoint"));
77 if (0 ==
fTrdPoints) LOG(fatal) <<
"No trd MC points in the input file";
81 fTofPoints =
static_cast<TClonesArray*
>(ioman->GetObject(
"TofPoint"));
83 if (0 ==
fTofPoints) LOG(fatal) <<
"No tof MC points in the input file";
100 FairRunAna::Instance()->GetRuntimeDb()->getContainer(
"CbmBinnedSettings"));
void SetPrimaryParticles(const std::list< EPrimaryParticleId > v)
static CbmBinnedGeoReader * Instance()
void SetNofTrdStations(Int_t v)
bool Use(ECbmModuleId m) const
TClonesArray * fMuchPoints
std::list< EPrimaryParticleId > fPrimaryParticleIds
void SetNofStsStations(Int_t v)
void SetConfiguring(bool v)
bool fUseModules[ToIntegralType(ECbmModuleId::kLastModule)]
static CbmStsSetup * Instance()
@ kTof
Time-of-flight Detector.
TClonesArray * fTofPoints
CbmBinnedSettings * fSettings
static CbmBinnedHitReader * Instance()
@ kRich
Ring-Imaging Cherenkov Detector.
ClassImp(CbmConverterManager) InitStatus CbmConverterManager
Bool_t Init(const char *geometryFile=nullptr)
Initialise the setup.
Class representing the top level of the STS setup.
void SetNofStations(Int_t v)
void SetUse(Int_t m, bool v)
@ kTrd
Transition Radiation Detector.
CbmBinnedTrackerConfigurator(bool useAllDetectors)
@ kLastModule
For loops over all modules.
TClonesArray * fTrdPoints
CbmBinnedTracker * fTracker
constexpr auto ToIntegralType(T enumerator) -> typename std::underlying_type< T >::type
@ kMuch
Muon detection system.
void SetNofMuchStations(Int_t v)
@ kSts
Silicon Tracking System.
TClonesArray * fStsPoints
Bool_t IsInit() const
Initialisation status for sensor parameters.
~CbmBinnedTrackerConfigurator()