CbmRoot
|
#include <iosfwd>
#include <string>
#include <type_traits>
#include <xpu/defines.h>
Go to the source code of this file.
Namespaces | |
namespace | cbm |
namespace | cbm::algo |
namespace | cbm::algo::ca |
TODO: SZh 8.11.2022: add selection of parameterisation. | |
Enumerations | |
enum class | ECbmModuleId { kRef = 0 , kMvd = 1 , kSts = 2 , kRich = 3 , kMuch = 4 , kTrd = 5 , kTof = 6 , kEcal = 7 , kPsd = 8 , kHodo = 9 , kDummyDet = 10 , kBmon = 11 , kTrd2d = 12 , kFsd = 13 , kNofSystems = 14 , kMagnet = 17 , kTarget = 18 , kPipe = 19 , kShield = 20 , kPlatform = 21 , kCave = 22 , kLastModule = 23 , kNotExist = -1 } |
enum class | ECbmDataType { kUnknown = -1 , kMCTrack = 0 , kMvdPoint = ToIntegralType(ECbmModuleId::kMvd) * 100 , kMvdDigi , kMvdCluster , kMvdHit , kStsPoint = ToIntegralType(ECbmModuleId::kSts) * 100 , kStsDigi , kStsCluster , kStsHit , kStsTrack , kRichPoint = ToIntegralType(ECbmModuleId::kRich) * 100 , kRichDigi , kRichHit , kRichRing , kRichTrackParamZ , kRichTrackProjection , kMuchPoint = ToIntegralType(ECbmModuleId::kMuch) * 100 , kMuchDigi , kMuchCluster , kMuchPixelHit , kMuchStrawHit , kMuchTrack , kTrdPoint = ToIntegralType(ECbmModuleId::kTrd) * 100 , kTrdDigi , kTrdCluster , kTrdHit , kTrdTrack , kTofPoint = ToIntegralType(ECbmModuleId::kTof) * 100 , kTofDigi , kTofCalDigi , kTofHit , kTofTrack , kTofUHit , kTofTracklet , kPsdPoint = ToIntegralType(ECbmModuleId::kPsd) * 100 , kPsdDigi , kPsdHit , kBmonPoint = ToIntegralType(ECbmModuleId::kBmon) * 100 , kBmonDigi , kBmonCalDigi , kBmonHit , kFsdPoint = ToIntegralType(ECbmModuleId::kFsd) * 100 , kFsdDigi , kFsdHit , kGlobalTrack = 2000 } |
enum class | ECbmTreeAccess { kRegular , kRepeat , kRandom } |
Mode to read entries from a ROOT TTree. More... | |
enum class | ECbmRecoMode { Timeslice , EventByEvent , Undefined } |
Reconstruct the full time slice or event-by-event. More... | |
enum class | cbm::algo::ca::EDetectorID { cbm::algo::ca::kMvd = 0 , cbm::algo::ca::kSts , cbm::algo::ca::kMuch , cbm::algo::ca::kTrd , cbm::algo::ca::kTof , cbm::algo::ca::END } |
Enumeration for the tracking detector subsystems in CBM-CA. More... | |
Functions | |
template<typename T > | |
XPU_D constexpr auto | ToIntegralType (T enumerator) -> typename std::underlying_type< T >::type |
ECbmModuleId & | operator++ (ECbmModuleId &) |
std::ostream & | operator<< (std::ostream &, const ECbmModuleId &) |
std::string | ToString (ECbmModuleId modId) |
ECbmModuleId | ToCbmModuleId (std::string modIdStr) |
ECbmModuleId | ToCbmModuleIdCaseInsensitive (std::string modIdStr) |
std::ostream & | operator<< (std::ostream &, const ECbmDataType &) |
ECbmModuleId | cbm::algo::ca::ToCbmModuleId (EDetectorID detID) |
Conversion map from EDetectorID to ECbmModuleId. | |
EDetectorID | cbm::algo::ca::ToCaDetectorID (ECbmModuleId modId) |
Conversion map from EDetectorID to ECbmModuleId. | |
double | CbmProtonMass () |
double | CbmNeutronMass () |
double | CbmElectronMass () |
|
strong |
Enumerator for CBM data types
|
strong |
Enumerator for module Identifiers. Modules can be active (detector systems) or passive (magnet, beam pipe, target etc.) In order to loop over all detectors, loop until kNofSystems.
|
strong |
|
strong |
Mode to read entries from a ROOT TTree.
@enumerator ETreeAccess
kRegular: Incremental; start with first entry; stop with last entry kRepeat: Incremental; start with first entry; after last entry jump to first entry kRandom: Random choice of entries between first and last one.
Enumerator | |
---|---|
kRegular | |
kRepeat | |
kRandom |
|
inline |
Global functions for particle masses
Definition at line 197 of file CbmDefs.h.
Referenced by CbmMCTrack::GetMass(), and TEST().
ECbmModuleId & operator++ | ( | ECbmModuleId & | e | ) |
Definition at line 24 of file CbmDefs.cxx.
References kLastModule, kMagnet, and kNofSystems.
std::ostream & operator<< | ( | std::ostream & | strm, |
const ECbmDataType & | dataType ) |
Definition at line 100 of file CbmDefs.cxx.
References ToIntegralType().
std::ostream & operator<< | ( | std::ostream & | strm, |
const ECbmModuleId & | modId ) |
Definition at line 38 of file CbmDefs.cxx.
References ToIntegralType().
ECbmModuleId ToCbmModuleId | ( | std::string | modIdStr | ) |
Definition at line 78 of file CbmDefs.cxx.
References kNotExist, and ModIdStrMap.
ECbmModuleId ToCbmModuleIdCaseInsensitive | ( | std::string | modIdStr | ) |
Definition at line 86 of file CbmDefs.cxx.
References ModIdStrMap.
Referenced by cbm::algo::evbuild::DigiEventSelectorConfig::DigiEventSelectorConfig(), cbm::algo::evbuild::DigiTriggerConfig::DigiTriggerConfig(), cbm::algo::evbuild::EventBuilderConfig::EventBuilderConfig(), and cbm::algo::MainConfig::LoadYaml().
|
constexpr |
Definition at line 29 of file CbmDefs.h.
Referenced by CbmLitFindGlobalTracks::CalculateLength(), CbmStsPoint::CbmStsPoint(), comparePsdAddressDataMembers(), CbmMvdDetectorId::DetectorId(), CbmBmonDigitize::Exec(), PairAnalysisCutQa::Fill(), PairAnalysisCutQa::FillAll(), PairAnalysisVarManager::FillVarMuchTrack(), PairAnalysisVarManager::FillVarPairAnalysisTrack(), CbmFsdAddress::GetAddress(), CbmMuchAddress::GetAddress(), CbmMuchAddress::GetAddress(), CbmPsdAddress::GetAddress(), CbmStsAddress::GetAddress(), CbmStsAddress::GetAddress(), CbmTrdAddress::GetAddress(), CbmTofAddress::GetUniqueAddress(), PairAnalysisEvent::Init(), operator<<(), operator<<(), PairAnalysisTrack::PairAnalysisTrack(), CbmRecoSts::ProcessData(), CbmRecoStsPixel::ProcessData(), CbmMvdDetectorId::SystemId(), TEST(), TEST(), and CbmStsAddress::UnpackDigiAddress().
std::string ToString | ( | ECbmModuleId | modId | ) |
Definition at line 70 of file CbmDefs.cxx.
References ModIdStrMap.
Referenced by cbm::kf::TrackingSetupBuilder::CheckDetectorPresence(), cbm::reco::offline::Run::CheckDigiBranch(), cbm::atconverter::Run::CheckRecoBranch(), CbmTaskDigiEventQa::Config(), CbmLitFieldApproximationQa::CreateFieldHistos(), CbmLitFieldApproximationQa::CreateFitterHistos(), CbmLitFieldApproximationQa::CreateGridHistos(), CbmLitRadLengthQa::CreateHistograms(), CbmLitFieldQa::CreateHistos(), CbmTaskBuildEvents::Exec(), CbmLitFieldApproximationQa::FillBHistos(), CbmLitFieldQa::FillBHistos(), CbmConverterManager::FillDataHeader(), CbmLitFieldApproximationQa::FillFieldApproximationHistos(), CbmLitFieldApproximationQa::FillGridCreatorHistos(), CbmLitRadLengthQa::FillHistosDetector(), CbmTaskBuildEvents::Finish(), CbmTaskDigiEventQa::Finish(), CbmTaskBuildEvents::Init(), CbmTaskTriggerDigi::Init(), and cbm::algo::ca::Parameters< DataT >::Print().