![]() |
Project
|
#include <Configuration.h>
Public Types | |
| enum | ConfigPart { START , VERSION , RUN , INPUTS , MASKS , GENS , DESCRIPTORS , LTG , LTGitems , CLUSTER , CLASS , UNKNOWN } |
Public Member Functions | |
| CTPConfiguration ()=default | |
| bool | isDetector (const o2::detectors::DetID &det) |
| int | addInput (std::string &inp, int clsindex, std::map< int, std::vector< int > > &descInputsIndex) |
| int | loadConfigurationRun3 (const std::string &ctpconfiguartion) |
| void | printStream (std::ostream &stream) const |
| void | setRunNumber (uint32_t runnumber) |
| std::vector< CTPInput > & | getCTPInputs () |
| std::vector< CTPClass > & | getCTPClasses () |
| const std::vector< CTPInput > & | getCTPInputs () const |
| const std::vector< CTPClass > & | getCTPClasses () const |
| uint64_t | getInputMask (const std::string &name) const |
| int | getInputIndex (const std::string &name) const |
| std::string | getClassNameFromIndex (int index) |
| std::string | getClassNameFromHWIndex (int index) |
| const CTPClass * | getCTPClassFromHWIndex (const int index) const |
| bool | isMaskInInputs (const uint64_t &mask) const |
| bool | isBCMaskInConfig (const std::string maskname) const |
| const BCMask * | isBCMaskInConfigP (const std::string bcmask) const |
| const CTPInput * | isInputInConfig (const std::string inpname) const |
| const CTPInput * | isInputInConfig (const uint32_t index) const |
| const CTPDescriptor * | isDescriptorInConfig (const std::string descname, int &index) const |
| void | createInputsInDecriptorsFromNames () |
| uint64_t | getDecrtiptorInputsMask (const std::string &name) const |
| std::map< o2::detectors::DetID::ID, std::vector< CTPInput > > | getDet2InputMap () |
| uint64_t | getTriggerClassMask () const |
| uint64_t | getTriggerClassMaskWInputs () const |
| uint64_t | getTriggerClassMaskWInputsNoTrgDets () const |
| std::vector< int > | getTriggerClassList () const |
| uint32_t | getRunNumber () |
| std::vector< std::string > | getDetectorList () const |
| o2::detectors::DetID::mask_t | getDetectorMask () const |
| uint64_t | getClassMaskForInputMask (uint64_t inputMask) const |
| void | printConfigString () |
| std::string | getConfigString () |
| CTPDescriptor * | getDescriptor (int index) |
| int | assignDescriptors () |
| int | checkConfigConsistency () const |
Static Public Member Functions | |
| static void | capitaliseString (std::string &str) |
| static bool | isNumber (const std::string &s) |
Static Public Attributes | |
| static const std::map< std::string, std::string > | detName2LTG = {{"FV0", "1"}, {"FT0", "2"}, {"FDD", "3"}, {"ITS", "4"}, {"TOF", "5"}, {"MFT", "6"}, {"TPC", "7"}, {"MCH", "8"}, {"MID", "9"}, {"TST", "10"}, {"TRD", "13"}, {"HMP", "14"}, {"ZDC", "15"}, {"PHS", "16"}, {"EMC", "17"}, {"CPV", "18"}} |
Definition at line 132 of file Configuration.h.
| Enumerator | |
|---|---|
| START | |
| VERSION | |
| RUN | |
| INPUTS | |
| MASKS | |
| GENS | |
| DESCRIPTORS | |
| LTG | |
| LTGitems | |
| CLUSTER | |
| CLASS | |
| UNKNOWN | |
Definition at line 142 of file Configuration.h.
|
default |
| int CTPConfiguration::addInput | ( | std::string & | inp, |
| int | clsindex, | ||
| std::map< int, std::vector< int > > & | descInputsIndex | ||
| ) |
CTP configuration Assuming Run2 format + LTG
Definition at line 195 of file Configuration.cxx.
| int CTPConfiguration::assignDescriptors | ( | ) |
Definition at line 987 of file Configuration.cxx.
|
static |
Definition at line 39 of file Configuration.cxx.
| int CTPConfiguration::checkConfigConsistency | ( | ) | const |
Definition at line 994 of file Configuration.cxx.
| void CTPConfiguration::createInputsInDecriptorsFromNames | ( | ) |
Definition at line 877 of file Configuration.cxx.
| uint64_t CTPConfiguration::getClassMaskForInputMask | ( | uint64_t | inputMask | ) | const |
Definition at line 973 of file Configuration.cxx.
| std::string CTPConfiguration::getClassNameFromHWIndex | ( | int | index | ) |
Definition at line 792 of file Configuration.cxx.
| std::string CTPConfiguration::getClassNameFromIndex | ( | int | index | ) |
Definition at line 783 of file Configuration.cxx.
|
inline |
Definition at line 184 of file Configuration.h.
|
inline |
Definition at line 158 of file Configuration.h.
|
inline |
Definition at line 160 of file Configuration.h.
Definition at line 802 of file Configuration.cxx.
|
inline |
Definition at line 157 of file Configuration.h.
|
inline |
Definition at line 159 of file Configuration.h.
| uint64_t o2::ctp::CTPConfiguration::getDecrtiptorInputsMask | ( | const std::string & | name | ) | const |
|
inline |
Definition at line 185 of file Configuration.h.
| std::map< o2::detectors::DetID::ID, std::vector< CTPInput > > CTPConfiguration::getDet2InputMap | ( | ) |
Definition at line 901 of file Configuration.cxx.
| std::vector< std::string > CTPConfiguration::getDetectorList | ( | ) | const |
Definition at line 954 of file Configuration.cxx.
| o2::detectors::DetID::mask_t CTPConfiguration::getDetectorMask | ( | ) | const |
Definition at line 963 of file Configuration.cxx.
| int CTPConfiguration::getInputIndex | ( | const std::string & | name | ) | const |
Definition at line 773 of file Configuration.cxx.
| uint64_t CTPConfiguration::getInputMask | ( | const std::string & | name | ) | const |
Definition at line 764 of file Configuration.cxx.
|
inline |
Definition at line 179 of file Configuration.h.
| std::vector< int > CTPConfiguration::getTriggerClassList | ( | ) | const |
Definition at line 943 of file Configuration.cxx.
| uint64_t CTPConfiguration::getTriggerClassMask | ( | ) | const |
Definition at line 909 of file Configuration.cxx.
| uint64_t CTPConfiguration::getTriggerClassMaskWInputs | ( | ) | const |
Definition at line 917 of file Configuration.cxx.
| uint64_t CTPConfiguration::getTriggerClassMaskWInputsNoTrgDets | ( | ) | const |
Definition at line 928 of file Configuration.cxx.
| bool CTPConfiguration::isBCMaskInConfig | ( | const std::string | maskname | ) | const |
Definition at line 822 of file Configuration.cxx.
| const BCMask * CTPConfiguration::isBCMaskInConfigP | ( | const std::string | bcmask | ) | const |
Definition at line 831 of file Configuration.cxx.
| const CTPDescriptor * CTPConfiguration::isDescriptorInConfig | ( | const std::string | descname, |
| int & | index | ||
| ) | const |
Definition at line 864 of file Configuration.cxx.
| bool CTPConfiguration::isDetector | ( | const o2::detectors::DetID & | det | ) |
Definition at line 29 of file Configuration.cxx.
| const CTPInput * CTPConfiguration::isInputInConfig | ( | const std::string | inpname | ) | const |
Definition at line 842 of file Configuration.cxx.
| const CTPInput * CTPConfiguration::isInputInConfig | ( | const uint32_t | index | ) | const |
Definition at line 853 of file Configuration.cxx.
| bool CTPConfiguration::isMaskInInputs | ( | const uint64_t & | mask | ) | const |
Definition at line 813 of file Configuration.cxx.
|
static |
Definition at line 45 of file Configuration.cxx.
| int CTPConfiguration::loadConfigurationRun3 | ( | const std::string & | ctpconfiguartion | ) |
Definition at line 239 of file Configuration.cxx.
| void CTPConfiguration::printConfigString | ( | ) |
Definition at line 1063 of file Configuration.cxx.
| void CTPConfiguration::printStream | ( | std::ostream & | stream | ) | const |
Definition at line 731 of file Configuration.cxx.
|
inline |
Definition at line 156 of file Configuration.h.
|
static |
Definition at line 136 of file Configuration.h.