CbmRoot
Loading...
Searching...
No Matches
CbmDefs.cxx File Reference
#include "CbmDefs.h"
#include <algorithm>
#include <array>
#include <cctype>
#include <ostream>
#include <stdexcept>
Include dependency graph for CbmDefs.cxx:

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.
 

Functions

ECbmModuleIdoperator++ (ECbmModuleId &e)
 
std::ostream & operator<< (std::ostream &strm, const ECbmModuleId &modId)
 
std::string ToString (ECbmModuleId modId)
 
ECbmModuleId ToCbmModuleId (std::string modIdStr)
 
ECbmModuleId ToCbmModuleIdCaseInsensitive (std::string modIdStr)
 
std::ostream & operator<< (std::ostream &strm, const ECbmDataType &dataType)
 
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.
 

Variables

static const std::array< std::pair< ECbmModuleId, std::string >, 23 > ModIdStrMap
 

Function Documentation

◆ operator++()

ECbmModuleId & operator++ ( ECbmModuleId & e)

Definition at line 24 of file CbmDefs.cxx.

References kLastModule, kMagnet, and kNofSystems.

◆ operator<<() [1/2]

std::ostream & operator<< ( std::ostream & strm,
const ECbmDataType & dataType )

Definition at line 100 of file CbmDefs.cxx.

References ToIntegralType().

◆ operator<<() [2/2]

std::ostream & operator<< ( std::ostream & strm,
const ECbmModuleId & modId )

Definition at line 38 of file CbmDefs.cxx.

References ToIntegralType().

◆ ToCbmModuleId()

ECbmModuleId ToCbmModuleId ( std::string modIdStr)

Definition at line 78 of file CbmDefs.cxx.

References kNotExist, and ModIdStrMap.

◆ ToCbmModuleIdCaseInsensitive()

◆ ToString()

Variable Documentation

◆ ModIdStrMap

const std::array<std::pair<ECbmModuleId, std::string>, 23> ModIdStrMap
static
Initial value:
= {
{{ECbmModuleId::kRef, "Ref"},
{ECbmModuleId::kDummyDet, "DummyDet"},
{ECbmModuleId::kNofSystems, "NofSystems"},
{ECbmModuleId::kMagnet, "Magnet"},
{ECbmModuleId::kTarget, "Target"},
{ECbmModuleId::kShield, "Shield"},
{ECbmModuleId::kPlatform, "Platform"},
{ECbmModuleId::kLastModule, "LastModule"},
{ECbmModuleId::kNotExist, "NotExist"}}}
@ kMvd
Micro-Vertex Detector.
@ kPipe
Beam pipe.
@ kHodo
Hodoscope (for test beam times)
@ kEcal
EM-Calorimeter.
@ kTrd
Transition Radiation Detector.
@ kShield
Beam pipe shielding in MUCH section.
@ kMagnet
Magnet.
@ kTof
Time-of-flight Detector.
@ kNotExist
If not found.
@ kTarget
Target.
@ kPsd
Projectile spectator detector.
@ kSts
Silicon Tracking System.
@ kTrd2d
TRD-FASP Detector (FIXME)
@ kDummyDet
Dummy for tutorials or tests.
@ kLastModule
For loops over all modules.
@ kPlatform
RICH rail platform.
@ kRef
Reference plane.
@ kMuch
Muon detection system.
@ kFsd
Forward spectator detector.
@ kNofSystems
For loops over active systems.
@ kRich
Ring-Imaging Cherenkov Detector.

Definition at line 45 of file CbmDefs.cxx.

Referenced by ToCbmModuleId(), ToCbmModuleIdCaseInsensitive(), and ToString().