  | 
  
    ATLAS Offline Software
    
   | 
 
 
 
 
#include <NswDcsDbAlg.h>
 | 
| virtual  | ~NswDcsDbAlg ()=default | 
|   | 
| virtual StatusCode  | initialize () override | 
|   | 
| virtual StatusCode  | execute (const EventContext &) const override | 
|   | 
| virtual bool  | isReEntrant () const override | 
|   | 
| virtual StatusCode  | sysInitialize () override | 
|   | Override sysInitialize.  More...
  | 
|   | 
| virtual bool  | isClonable () const override | 
|   | Specify if the algorithm is clonable.  More...
  | 
|   | 
| virtual unsigned int  | cardinality () const override | 
|   | Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.  More...
  | 
|   | 
| virtual StatusCode  | sysExecute (const EventContext &ctx) override | 
|   | Execute an algorithm.  More...
  | 
|   | 
| virtual const DataObjIDColl &  | extraOutputDeps () const override | 
|   | Return the list of extra output dependencies.  More...
  | 
|   | 
| virtual bool  | filterPassed (const EventContext &ctx) const | 
|   | 
| virtual void  | setFilterPassed (bool state, const EventContext &ctx) const | 
|   | 
| ServiceHandle< StoreGateSvc > &  | evtStore () | 
|   | The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.  More...
  | 
|   | 
| const ServiceHandle< StoreGateSvc > &  | evtStore () const | 
|   | The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.  More...
  | 
|   | 
| const ServiceHandle< StoreGateSvc > &  | detStore () const | 
|   | The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.  More...
  | 
|   | 
| virtual StatusCode  | sysStart () override | 
|   | Handle START transition.  More...
  | 
|   | 
| virtual std::vector< Gaudi::DataHandle * >  | inputHandles () const override | 
|   | Return this algorithm's input handles.  More...
  | 
|   | 
| virtual std::vector< Gaudi::DataHandle * >  | outputHandles () const override | 
|   | Return this algorithm's output handles.  More...
  | 
|   | 
| Gaudi::Details::PropertyBase &  | declareProperty (Gaudi::Property< T, V, H > &t) | 
|   | 
| Gaudi::Details::PropertyBase *  | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) | 
|   | Declare a new Gaudi property.  More...
  | 
|   | 
| Gaudi::Details::PropertyBase *  | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) | 
|   | Declare a new Gaudi property.  More...
  | 
|   | 
| Gaudi::Details::PropertyBase *  | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) | 
|   | 
| Gaudi::Details::PropertyBase *  | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) | 
|   | Declare a new Gaudi property.  More...
  | 
|   | 
| Gaudi::Details::PropertyBase *  | declareProperty (const std::string &name, T &property, const std::string &doc="none") | 
|   | Declare a new Gaudi property.  More...
  | 
|   | 
| void  | updateVHKA (Gaudi::Details::PropertyBase &) | 
|   | 
| MsgStream &  | msg () const | 
|   | 
| MsgStream &  | msg (const MSG::Level lvl) const | 
|   | 
| bool  | msgLvl (const MSG::Level lvl) const | 
|   | 
 | 
| StatusCode  | processHvData (const EventContext &ctx) const | 
|   | 
| StatusCode  | loadHvData (const EventContext &ctx, const readKey_t &readKey, const DcsTechType tech, writeHandleDcs_t &writeHandle, NswDcsDbData *writeCdo) const | 
|   | 
| StatusCode  | loadTDaqData (const EventContext &ctx, const readKey_t &readKey, const DcsTechType tech, writeHandleDcs_t &writeHandle, NswDcsDbData *writeCdo) const | 
|   | 
| StatusCode  | loadELTXData (const EventContext &ctx, const readKey_t &readKey, const DcsTechType tech, writeHandleDcs_t &writeHandle, NswDcsDbData *writeCdo) const | 
|   | 
| bool  | buildChannelIdForHv (Identifier &channelId, const DcsTechType tech0, const std::string &chanName, bool &isOK) const | 
|   | 
| bool  | buildChannelIdForTDaq (Identifier &channelId, uint &elink, const DcsTechType tech0, const std::string &chanName, bool &isOK) const | 
|   | 
| bool  | buildChannelIdForEltx (Identifier &channelId, const DcsTechType tech0, const std::string &chanName, bool &isOK) const | 
|   | 
| Gaudi::Details::PropertyBase &  | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &) | 
|   | specialization for handling Gaudi::Property<SG::VarHandleKey>  More...
  | 
|   | 
| Gaudi::Details::PropertyBase &  | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyArrayType &) | 
|   | specialization for handling Gaudi::Property<SG::VarHandleKeyArray>  More...
  | 
|   | 
| Gaudi::Details::PropertyBase &  | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleType &) | 
|   | specialization for handling Gaudi::Property<SG::VarHandleBase>  More...
  | 
|   | 
| Gaudi::Details::PropertyBase &  | declareGaudiProperty (Gaudi::Property< T, V, H > &t, const SG::NotHandleType &) | 
|   | specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray>  More...
  | 
|   | 
 | 
| ServiceHandle< ICondSvc >  | m_condSvc {this, "CondSvc", "CondSvc"} | 
|   | 
| ServiceHandle< Muon::IMuonIdHelperSvc >  | m_idHelperSvc {this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"} | 
|   | 
| writeKey_t  | m_writeKey {this, "WriteKey", "NswDcsDbData", "Key of output data object" } | 
|   | 
| readKey_t  | m_readKey_mmg_hv {this, "ReadKey_MMG_HV", "/MMG/DCS/HV", "Key of input MMG condition data for HV"} | 
|   | 
| readKey_t  | m_readKey_stg_hv {this, "ReadKey_STG_HV", "/STG/DCS/HV", "Key of input STG condition data for HV"} | 
|   | 
| readKey_t  | m_readKey_mmg_tdaq {this, "ReadKey_MMG_TDAQ", "", "Key of input MMG condition data for TDAQ"} | 
|   | 
| readKey_t  | m_readKey_stg_tdaq {this, "ReadKey_STG_TDAQ", "", "Key of input STG condition data for TDAQ"} | 
|   | 
| readKey_t  | m_readKey_mmg_eltx {this, "ReadKey_MMG_ELTX", "", "Key of input MMG condition data for SCA status"} | 
|   | 
| readKey_t  | m_readKey_stg_eltx {this, "ReadKey_STG_ELTX", "", "Key of input STG condition data for SCA status"} | 
|   | 
| Gaudi::Property< bool >  | m_loadTdaq {this, "LoadTdaq",false,"enable the processing of Elinks in the NswDcsDbAlg"} | 
|   | 
| Gaudi::Property< bool >  | m_loadEltx {this, "LoadEltx",false,"enable the processing of SCAs in the NswDcsDbAlg"} | 
|   | 
| SG::ReadCondHandleKey< MuonGM::MuonDetectorManager >  | m_muonManagerKey | 
|   | 
| const MuonGM::MuonDetectorManager *  | m_detManager {nullptr} | 
|   | 
| DataObjIDColl  | m_extendedExtraObjects | 
|   | Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.  More...
  | 
|   | 
| StoreGateSvc_t  | m_evtStore | 
|   | Pointer to StoreGate (event store by default)  More...
  | 
|   | 
| StoreGateSvc_t  | m_detStore | 
|   | Pointer to StoreGate (detector store by default)  More...
  | 
|   | 
| std::vector< SG::VarHandleKeyArray * >  | m_vhka | 
|   | 
| bool  | m_varHandleArraysDeclared | 
|   | 
Definition at line 31 of file NswDcsDbAlg.h.
 
◆ DcsDataType
◆ DcsTechType
◆ readKey_t
◆ StoreGateSvc_t
◆ writeHandleDcs_t
◆ writeKey_t
◆ ~NswDcsDbAlg()
  
  
      
        
          | virtual NswDcsDbAlg::~NswDcsDbAlg  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
virtualdefault   | 
  
 
 
◆ buildChannelIdForEltx()
Definition at line 483 of file NswDcsDbAlg.cxx.
  486     std::regex re(
"^(A|C)_([0-9]{2})_L([0-9])_B([0-9]{2})");
 
  490     if(!std::regex_match(chanName, 
re)) {
 
  499     std::regex_match(chanName, 
m, 
re);
 
  502     std::vector<std::string> 
res;
 
  503     for(
unsigned int i=0; 
i<
m.size(); ++
i) 
res.push_back(
m[
i].str());
 
  506     int wheel         = 
res[1]==
"A"? 1 : -1;
 
  507     int sector        = std::stoi(
res[2])+1;
 
  508     int board         = std::stoi(
res[4]);
 
  519         board -= (
layer%2==1 ? 1 : 2); 
 
  523         } 
else if (board%4==3) {
 
  533             ATH_MSG_WARNING(
"Could not extract valid channelId for MMG channel "<<chanName);
 
  549         else if((
layer&1)==1){
 
  551                 channelType=sTgcIdHelper::sTgcChannelTypes::Strip;
 
  553                 channelType=sTgcIdHelper::sTgcChannelTypes::Pad;
 
  555         } 
else if(
layer%1==0){
 
  557                 channelType=sTgcIdHelper::sTgcChannelTypes::Pad;
 
  559                 channelType=sTgcIdHelper::sTgcChannelTypes::Strip;
 
  564             ATH_MSG_WARNING(
"Could not extract valid channelId for STG channel "<<chanName);
 
 
 
 
◆ buildChannelIdForHv()
Definition at line 264 of file NswDcsDbAlg.cxx.
  267     std::regex reMMG(
"^([A-Za-z]{1})([0-9]{2})_ML([0-9])P([0-9])_(IP|HO)R([0-9])__HV");
 
  268     std::regex reMMD(
"^([A-Za-z]{1})([0-9]{2})_DRIFT_(IP|HO)R([0-9])__HV");
 
  269     std::regex reSTG(
"^([A-Za-z]{1})([0-9]{2})_ML([0-9])_(IP|HO)R([0-9])__HV");
 
  274     if(std::regex_match(chanName, reMMG)) {
 
  278     else if(std::regex_match(chanName, reMMD)) {
 
  282     else if(std::regex_match(chanName, reSTG)) {
 
  287         ATH_MSG_ERROR(
"Could not identify channel with name "<<chanName);
 
  301     std::regex_match(chanName, 
m, 
re);
 
  304     std::vector<std::string> 
res;
 
  305     for(
unsigned int i=0; 
i<
m.size(); ++
i) 
res.push_back(
m[
i].str());
 
  309         int wheel         = 
res[1]==
"A"? 1 : -1;
 
  310         int sector        = std::stoi(
res[2]);
 
  311         const std::string 
stationName   = sector%2==0 ? 
"MMS" : 
"MML";
 
  316         int pcb           = std::stoi(
res[4]);
 
  319             ATH_MSG_DEBUG(
"Could not extract valid channelId for MMG channel "<<chanName);
 
  329         int wheel         = 
res[1]==
"A"? 1 : -1;
 
  330         int sector        = std::stoi(
res[2]);
 
  331         const std::string 
stationName   = sector%2==0 ? 
"MMS" : 
"MML";
 
  337             ATH_MSG_DEBUG(
"Could not extract valid elementId for MMGD channel "<<chanName);
 
  344             ATH_MSG_DEBUG(
"Could not extract valid multilayerId for MMG channel "<<chanName);
 
  354         int wheel         = 
res[1]==
"A"? 1 : -1;
 
  355         int sector        = std::stoi(
res[2]);
 
  356         const std::string 
stationName   = sector%2==0 ? 
"STS" : 
"STL";
 
  364             ATH_MSG_DEBUG(
"Could not extract valid channelId for STG channel "<<chanName);
 
 
 
 
◆ buildChannelIdForTDaq()
Definition at line 378 of file NswDcsDbAlg.cxx.
  381     std::regex reMMG(
"^ELink-MM-(A|C)/V([0-9]{1})/L1A/Strip/S([0-9]{1,2})/L([0-9]{1})/R([0-9]{1,2})/E([0-9]{1})");
 
  382     std::regex reSTG(
"^ELink-sTGC-(A|C)/V([0-9]{1})/L1A/(Strip|Pad)/S([0-9]{1,2})/L([0-9]{1})/R([0-9]{1})/E([0-9]{1})");
 
  383     std::regex reSTGTrigProc(
"^ELink-sTGC-A/V0/L1A/TrigProc/");
 
  384     std::regex reSTGPadTrig(
"^ELink-sTGC-A/V0/L1A/PadTrig/");
 
  390     if(std::regex_match(chanName, reMMG)) {
 
  394     else if(std::regex_match(chanName, reSTG)) {
 
  397     } 
else if(std::regex_match(chanName, reSTGPadTrig) || std::regex_match(chanName, reSTGTrigProc)){ 
 
  402         ATH_MSG_DEBUG(
"Could not identify channel with name "<<chanName);
 
  416     std::regex_match(chanName, 
m, 
re);
 
  419     std::vector<std::string> 
res;
 
  420     for(
unsigned int i=0; 
i<
m.size(); ++
i) 
res.push_back(
m[
i].str());
 
  424         int wheel         = 
res[1]==
"A"? 1 : -1;
 
  425         int sector        = std::stoi(
res[3])+1; 
 
  438         elink = std::stoi(
res[6]);
 
  440             ATH_MSG_DEBUG(
"Could not extract valid channelId for MMG channel "<<chanName);
 
  450         int wheel         = 
res[1]==
"A"? 1 : -1;
 
  451         int sector        = std::stoi(
res[4]) + 1;
 
  452         std::string 
stationName   = sector%2==0 ? 
"STS" : 
"STL";
 
  466         uint channelType  = (
res[3] == 
"Pad" ? sTgcIdHelper::sTgcChannelTypes::Pad : sTgcIdHelper::sTgcChannelTypes::Strip);
 
  469             ATH_MSG_DEBUG(
"Could not extract valid channelId for STG channel "<<chanName);
 
  475         elink = std::stoi(
res[7]);    
 
 
 
 
◆ cardinality()
Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant. 
Override this to return 0 for reentrant algorithms. 
Override this to return 0 for reentrant algorithms. 
Definition at line 75 of file AthCommonReentrantAlgorithm.cxx.
 
 
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray> 
Definition at line 170 of file AthCommonDataStore.h.
  175                                                        hndl.documentation());
 
 
 
 
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey> 
Definition at line 156 of file AthCommonDataStore.h.
  161                                                        hndl.documentation());
 
 
 
 
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase> 
Definition at line 184 of file AthCommonDataStore.h.
  189                                                        hndl.documentation());
 
 
 
 
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property. 
- Parameters
 - 
  
    | name | Name of the property.  | 
    | hndl | Object holding the property value.  | 
    | doc | Documentation string for the property. | 
  
   
This is the version for types that derive from SG::VarHandleBase. The property value object is put on the input and output lists as appropriate; then we forward to the base class. 
Definition at line 245 of file AthCommonDataStore.h.
  250     this->declare(hndl.
vhKey());
 
  251     hndl.
vhKey().setOwner(
this);
 
 
 
 
◆ declareProperty() [2/6]
Declare a new Gaudi property. 
- Parameters
 - 
  
    | name | Name of the property.  | 
    | hndl | Object holding the property value.  | 
    | doc | Documentation string for the property. | 
  
   
This is the version for types that derive from SG::VarHandleKey. The property value object is put on the input and output lists as appropriate; then we forward to the base class. 
Definition at line 221 of file AthCommonDataStore.h.
 
 
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property. 
- Parameters
 - 
  
    | name | Name of the property.  | 
    | property | Object holding the property value.  | 
    | doc | Documentation string for the property. | 
  
   
This is the generic version, for types that do not derive from SG::VarHandleKey. It just forwards to the base class version of declareProperty. 
Definition at line 333 of file AthCommonDataStore.h.
 
 
◆ declareProperty() [5/6]
Declare a new Gaudi property. 
- Parameters
 - 
  
    | name | Name of the property.  | 
    | property | Object holding the property value.  | 
    | doc | Documentation string for the property. | 
  
   
This dispatches to either the generic declareProperty or the one for VarHandle/Key/KeyArray. 
Definition at line 352 of file AthCommonDataStore.h.
 
 
◆ declareProperty() [6/6]
◆ detStore()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ execute()
  
  
      
        
          | StatusCode NswDcsDbAlg::execute  | 
          ( | 
          const EventContext &  | 
          ctx | ) | 
           const | 
         
       
   | 
  
overridevirtual   | 
  
 
Definition at line 44 of file NswDcsDbAlg.cxx.
   50     if (wrHdl.isValid()) {
 
   51         ATH_MSG_DEBUG(
"CondHandle " << wrHdl.fullKey() << 
" is already valid." 
   52             << 
" In theory this should not be called, but may happen" 
   53             << 
" if multiple concurrent events are being processed out of order.");
 
   54         return StatusCode::SUCCESS;
 
   57     ATH_MSG_DEBUG(
"Range of time/charge output is " << wrHdl.getRange());
 
   60     if (!detMgr.isValid()) {
 
   62             "Failed to retrieve the detector manager from the conditions store " 
   64         return StatusCode::FAILURE;
 
   66     wrHdl.addDependency(detMgr);
 
   67     std::unique_ptr<NswDcsDbData> wrCdo{std::make_unique<NswDcsDbData>(
m_idHelperSvc.get(), detMgr.cptr())};
 
   97     if (wrHdl.record(std::move(wrCdo)).isFailure()) {
 
   99                << 
" with EventRange " << wrHdl.getRange()
 
  100                << 
" into Conditions Store");
 
  101         return StatusCode::FAILURE;
 
  103     ATH_MSG_DEBUG(
"Recorded new " << wrHdl.key() << 
" with range " << wrHdl.getRange() << 
" into Conditions Store");
 
  105     return StatusCode::SUCCESS;
 
 
 
 
◆ extraDeps_update_handler()
Add StoreName to extra input/output deps as needed. 
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given 
 
 
◆ extraOutputDeps()
Return the list of extra output dependencies. 
This list is extended to include symlinks implied by inheritance relations. 
Definition at line 94 of file AthCommonReentrantAlgorithm.cxx.
 
 
◆ filterPassed()
◆ initialize()
  
  
      
        
          | StatusCode NswDcsDbAlg::initialize  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
overridevirtual   | 
  
 
 
◆ inputHandles()
Return this algorithm's input handles. 
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA. 
 
 
◆ isClonable()
◆ isReEntrant()
  
  
      
        
          | virtual bool NswDcsDbAlg::isReEntrant  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlineoverridevirtual   | 
  
 
 
◆ loadELTXData()
Definition at line 217 of file NswDcsDbAlg.cxx.
  224         return StatusCode::FAILURE; 
 
  226     writeHandle.addDependency(readHandle);
 
  227     ATH_MSG_DEBUG(
"Size of CondAttrListCollection " << readHandle.fullKey() << 
" readCdo->size()= " << readCdo->size());
 
  228     ATH_MSG_DEBUG(
"Range of input is " << readHandle.getRange() << 
", range of output is " << writeHandle.getRange());
 
  236     for(itr = readCdo->begin(); itr != readCdo->end(); ++itr) {
 
  239         const unsigned int chanNum  = itr->first;
 
  240         const std::string& chanName = readCdo->chanName(
chanNum);
 
  241         if(chanName.empty()){
 
  246         bool online = *(
static_cast<const bool*
>((atr[
"online"]).addressOfData()));
 
  247         ATH_MSG_DEBUG(
"found SCA " << chanName << 
" with status " << atr[
"online"] << 
" " << 
online);
 
  257     return StatusCode::SUCCESS;
 
 
 
 
◆ loadHvData()
Definition at line 111 of file NswDcsDbAlg.cxx.
  118         return StatusCode::FAILURE; 
 
  120     writeHandle.addDependency(readHandle);
 
  121     ATH_MSG_DEBUG(
"Size of CondAttrListCollection " << readHandle.fullKey() << 
" readCdo->size()= " << readCdo->size());
 
  122     ATH_MSG_DEBUG(
"Range of input is " << readHandle.getRange() << 
", range of output is " << writeHandle.getRange());
 
  126     unsigned int nChns = 0;
 
  127     for(itr = readCdo->begin(); itr != readCdo->end(); ++itr) {
 
  130         const unsigned int chanNum  = itr->first;
 
  131         const std::string& chanName = readCdo->chanName(
chanNum);
 
  132         if(chanName.empty()){
 
  141                 ATH_MSG_ERROR(
"Could not identify valid channelId for channel "<<
chanNum<<
" with name "<< chanName<<
"!");
 
  142                 THROW_EXCEPTION(
"NswDcsDbAlg: Could not identify valid channelId for HV channel");
 
  151         dcs_data.
standbyVolt     = *(
static_cast<const float*
>((atr[
"v0Set"]).addressOfData()));
 
  152         dcs_data.readyVolt     = *(
static_cast<const float*
>((atr[
"v1Set"]).addressOfData()));
 
  153         dcs_data.fsmState  = 
MuonCond::getFsmStateEnum(*(
static_cast<const std::string*
>((atr[
"fsmCurrentState"]).addressOfData())));
 
  154         ATH_MSG_DEBUG(
"channel " << chanName << 
" has fsm state " << *(
static_cast<const std::string*
>((atr[
"fsmCurrentState"]).addressOfData()))<< 
" has v0 state " << *(
static_cast<const float*
>( (atr[
"v0Set"]).addressOfData()))<< 
" has v1 " << *(
static_cast<const float*
>((atr[
"v1Set"]).addressOfData())));
 
  161     return StatusCode::SUCCESS;
 
 
 
 
◆ loadTDaqData()
Definition at line 167 of file NswDcsDbAlg.cxx.
  173         return StatusCode::FAILURE; 
 
  175     writeHandle.addDependency(readHandle);
 
  176     ATH_MSG_DEBUG(
"Size of CondAttrListCollection " << readHandle.fullKey() << 
" readCdo->size()= " << readCdo->size());
 
  177     ATH_MSG_DEBUG(
"Range of input is " << readHandle.getRange() << 
", range of output is " << writeHandle.getRange());
 
  181     for(itr = readCdo->begin(); itr != readCdo->end(); ++itr) {
 
  185         std::string 
data = *(
static_cast<const std::string *
>((atr[
"data_array"]).addressOfData()));
 
  189         unsigned int nLB = 0; 
 
  192         for (
auto &
yy : jx[
"holes"].
items()) {
 
  202                     ATH_MSG_DEBUG(
"Could not identify valid channelId for channel "<<jt[
"channelId"]<<
" with name "<< jt[
"channelName"]<<
"! Skipping...");
 
  206             int channelDead = jt[
"channelDead"];
 
  207             writeCdo->
setDataTDaq(tech, 
channelId, jt[
"hole_iovSince"], jt[
"hole_iovUntil"], elink, channelDead );
 
  211         ATH_MSG_VERBOSE(
"Retrieved data for "<<
nLB<<
" entries (combinations of lumi block and channel).");
 
  214     return StatusCode::SUCCESS;
 
 
 
 
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ outputHandles()
Return this algorithm's output handles. 
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA. 
 
 
◆ processHvData()
  
  
      
        
          | StatusCode NswDcsDbAlg::processHvData  | 
          ( | 
          const EventContext &  | 
          ctx | ) | 
           const | 
         
       
   | 
  
private   | 
  
 
 
◆ renounce()
◆ renounceArray()
◆ setFilterPassed()
◆ sysExecute()
Execute an algorithm. 
We override this in order to work around an issue with the Algorithm base class storing the event context in a member variable that can cause crashes in MT jobs. 
Definition at line 85 of file AthCommonReentrantAlgorithm.cxx.
 
 
◆ sysInitialize()
Override sysInitialize. 
Override sysInitialize from the base class.
Loop through all output handles, and if they're WriteCondHandles, automatically register them and this Algorithm with the CondSvc
Scan through all outputHandles, and if they're WriteCondHandles, register them with the CondSvc 
Reimplemented from AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >.
Reimplemented in InputMakerBase, and HypoBase.
Definition at line 61 of file AthCommonReentrantAlgorithm.cxx.
  110   if (
sc.isFailure()) {
 
  118       if ( cs.retrieve().isFailure() ) {
 
  120         return StatusCode::SUCCESS;
 
  122       if (cs->regHandle(
this,*
h).isFailure()) {
 
  123         sc = StatusCode::FAILURE;
 
  124         ATH_MSG_ERROR(
"unable to register WriteCondHandle " << 
h->fullKey()
 
 
 
 
◆ sysStart()
Handle START transition. 
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container. 
 
 
◆ updateVHKA()
◆ m_condSvc
◆ m_detManager
◆ m_detStore
◆ m_evtStore
◆ m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks. 
Empty if no symlinks were found. 
Definition at line 114 of file AthCommonReentrantAlgorithm.h.
 
 
◆ m_idHelperSvc
◆ m_loadEltx
  
  
      
        
          | Gaudi::Property<bool> NswDcsDbAlg::m_loadEltx {this, "LoadEltx",false,"enable the processing of SCAs in the NswDcsDbAlg"} | 
         
       
   | 
  
private   | 
  
 
 
◆ m_loadTdaq
  
  
      
        
          | Gaudi::Property<bool> NswDcsDbAlg::m_loadTdaq {this, "LoadTdaq",false,"enable the processing of Elinks in the NswDcsDbAlg"} | 
         
       
   | 
  
private   | 
  
 
 
◆ m_muonManagerKey
Initial value:{
        this, "DetectorManagerKey", "MuonDetectorManager",
        "Key of input MuonDetectorManager condition data"}
 
Definition at line 81 of file NswDcsDbAlg.h.
 
 
◆ m_readKey_mmg_eltx
  
  
      
        
          | readKey_t NswDcsDbAlg::m_readKey_mmg_eltx {this, "ReadKey_MMG_ELTX", "", "Key of input MMG condition data for SCA status"} | 
         
       
   | 
  
private   | 
  
 
 
◆ m_readKey_mmg_hv
  
  
      
        
          | readKey_t NswDcsDbAlg::m_readKey_mmg_hv {this, "ReadKey_MMG_HV", "/MMG/DCS/HV", "Key of input MMG condition data for HV"} | 
         
       
   | 
  
private   | 
  
 
 
◆ m_readKey_mmg_tdaq
  
  
      
        
          | readKey_t NswDcsDbAlg::m_readKey_mmg_tdaq {this, "ReadKey_MMG_TDAQ", "", "Key of input MMG condition data for TDAQ"} | 
         
       
   | 
  
private   | 
  
 
 
◆ m_readKey_stg_eltx
  
  
      
        
          | readKey_t NswDcsDbAlg::m_readKey_stg_eltx {this, "ReadKey_STG_ELTX", "", "Key of input STG condition data for SCA status"} | 
         
       
   | 
  
private   | 
  
 
 
◆ m_readKey_stg_hv
  
  
      
        
          | readKey_t NswDcsDbAlg::m_readKey_stg_hv {this, "ReadKey_STG_HV", "/STG/DCS/HV", "Key of input STG condition data for HV"} | 
         
       
   | 
  
private   | 
  
 
 
◆ m_readKey_stg_tdaq
  
  
      
        
          | readKey_t NswDcsDbAlg::m_readKey_stg_tdaq {this, "ReadKey_STG_TDAQ", "", "Key of input STG condition data for TDAQ"} | 
         
       
   | 
  
private   | 
  
 
 
◆ m_varHandleArraysDeclared
◆ m_vhka
◆ m_writeKey
The documentation for this class was generated from the following files:
 
def retrieve(aClass, aKey=None)
 
bool buildChannelIdForEltx(Identifier &channelId, const DcsTechType tech0, const std::string &chanName, bool &isOK) const
 
char data[hepevt_bytes_allocation_ATLAS]
 
constexpr uint8_t stationPhi
station Phi 1 to 8
 
void setDataEltx(const DcsTechType tech, const Identifier &chnlId)
 
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
 
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)
 
static EventIDRange infiniteMixed()
Produces an mixed EventIDRange that is infinite in Time and RunLumi.
 
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
 
std::vector< SG::VarHandleKeyArray * > m_vhka
 
NswDcsDbData::DcsTechType DcsTechType
 
#define ATH_MSG_VERBOSE(x)
 
bool isValid(const T &p)
Av: we implement here an ATLAS-sepcific convention: all particles which are 99xxxxx are fine.
 
bool buildChannelIdForTDaq(Identifier &channelId, uint &elink, const DcsTechType tech0, const std::string &chanName, bool &isOK) const
 
bool empty() const
Test if the key is blank.
 
This class is a collection of AttributeLists where each one is associated with a channel number....
 
readKey_t m_readKey_stg_tdaq
 
virtual void setOwner(IDataHandleHolder *o)=0
 
bool buildChannelIdForHv(Identifier &channelId, const DcsTechType tech0, const std::string &chanName, bool &isOK) const
 
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
 
virtual const DataObjIDColl & extraOutputDeps() const override
Return the list of extra output dependencies.
 
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
 
::StatusCode StatusCode
StatusCode definition for legacy code.
 
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
 
virtual StatusCode sysExecute(const EventContext &ctx) override
Execute an algorithm.
 
std::pair< std::vector< unsigned int >, bool > res
 
Helper struct to cache all dcs constants in a common place of the memory.
 
StatusCode loadELTXData(const EventContext &ctx, const readKey_t &readKey, const DcsTechType tech, writeHandleDcs_t &writeHandle, NswDcsDbData *writeCdo) const
 
#define CHECK(...)
Evaluate an expression and check for errors.
 
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
 
StatusCode loadHvData(const EventContext &ctx, const readKey_t &readKey, const DcsTechType tech, writeHandleDcs_t &writeHandle, NswDcsDbData *writeCdo) const
 
virtual void renounce()=0
 
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
 
Gaudi::Property< bool > m_loadEltx
 
void setDataHv(const DcsTechType tech, const Identifier &chnlId, DcsConstants constants)
 
readKey_t m_readKey_mmg_tdaq
 
StatusCode initialize(bool used=true)
 
#define THROW_EXCEPTION(MESSAGE)
 
readKey_t m_readKey_mmg_eltx
 
readKey_t m_readKey_stg_eltx
 
#define ATH_MSG_WARNING(x)
 
ChanAttrListMap::const_iterator const_iterator
 
const boost::regex re(r_e)
 
Gaudi::Property< bool > m_loadTdaq
 
readKey_t m_readKey_mmg_hv
 
DcsFsmState getFsmStateEnum(const std::string &fsmState)
 
StatusCode loadTDaqData(const EventContext &ctx, const readKey_t &readKey, const DcsTechType tech, writeHandleDcs_t &writeHandle, NswDcsDbData *writeCdo) const
 
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
 
void setDataTDaq(const DcsTechType tech, const Identifier &chnlId, uint64_t timeSince, uint64_t timeUntil, unsigned int elink, bool permanentlyDisabled)
 
virtual StatusCode sysInitialize() override
Override sysInitialize.
 
ServiceHandle< ICondSvc > m_condSvc
 
constexpr uint8_t stationEta
1 to 3
 
SG::ReadCondHandleKey< MuonGM::MuonDetectorManager > m_muonManagerKey
 
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
 
readKey_t m_readKey_stg_hv