ATLAS Offline Software
L1CaloCondAlg.h
Go to the documentation of this file.
1 #ifndef L1CALOCONDALG_H
2 #define L1CALOCONDALG_H
3 
4 
5 
6 #include "TString.h"
11 
25 
26 
27 class L1CaloCondAlg: public ::AthAlgorithm {
28  public:
29  // this is a standard algorithm constructor
30 
31  L1CaloCondAlg( const std::string& name, ISvcLocator* pSvcLocator );
32 
33 
34  // these are the functions inherited from Algorithm
35  virtual StatusCode initialize () override;
36  virtual StatusCode execute () override;
37 
38 
39  private:
40 
41 
42  Gaudi::Property<std::string> m_timingRegime{this,"timingRegime","","String-> Calib1, Calib2 or Physics"};
43  Gaudi::Property<std::string> m_strategy{this,"strategy","","String-> empty, HighMu or LowMu"};
44 
45  Gaudi::Property<bool> m_usePhysicsRegime
46  { this, "UsePhysicsRegime", false, "Allow use of Physics timing regime" };
47  Gaudi::Property<bool> m_useCalib1Regime
48  { this, "UseCalib1Regime", false, "Allow use of Calib1 timing regime" };
49  Gaudi::Property<bool> m_useCalib2Regime
50  { this, "UseCalib2Regime", false, "Allow use of Calib2 timing regime" };
51 
52  enum PprKeys {
53  // Should correspond with the name list in initialize().
57  PPRCHANLOWMU = 3
58  };
59 
61  { this, "PhysicsKeys", {}, "" };
63  { this, "Calib1Keys", {}, "" };
65  { this, "Calib2Keys", {}, "" };
66 
67  // Folders only located at V1
68  SG::ReadCondHandleKey<CondAttrListCollection> m_disabledTowers{ this, "DisabledTowers", "", "DisabledTowers" };
69  SG::ReadCondHandleKey<CondAttrListCollection> m_derivedRunPars{ this, "DerivedRunPars", "", "DerivedRunPars"};
70  SG::ReadCondHandleKey<CondAttrListCollection> m_ppmDeadChannels{ this, "PpmDeadChannels", "","PpmDeadChannels" };
71  SG::ReadCondHandleKey<CondAttrListCollection> m_ppmFineTimeRefs{ this, "PpmFineTimeRefs" ,"", "PpmFineTimeRefs"};
72  SG::ReadCondHandleKey<CondAttrListCollection> m_runParameters{ this, "RunParameters" ,"", "RunParameters"};
73  // Folders with configuration information
74  SG::ReadCondHandleKey<CondAttrListCollection> m_pprChanDefaults{ this, "PprChanDefaults" ,"", "PprChanDefaults"};
75  SG::ReadCondHandleKey<CondAttrListCollection> m_pprChanStrategy{ this, "PprChanStrategy", "", "PprChanStrategy"};
76  SG::ReadCondHandleKey<CondAttrListCollection> m_readoutConfig{ this, "ReadoutConfig", "", "ReadoutConfig"};
77  SG::ReadCondHandleKey<CondAttrListCollection> m_readoutConfigJSON{ this, "ReadoutConfigJSON", "", "ReadoutConfigJSON"};
78 
79 
80  // Defining WriteCondHandleKey for saving condition containers
81  SG::WriteCondHandleKey<L1CaloDisabledTowersContainer> m_disabledTowersContainer{this,"OutputKeyDisTowers","L1CaloDisabledTowersContainer"};
82  SG::WriteCondHandleKey<L1CaloDerivedRunParsContainer> m_derivedRunParsContainer{this, "OutputKeyDerRunsPars", "L1CaloDerivedRunParsContainer"};
83  SG::WriteCondHandleKey<L1CaloPprChanCalibContainer> m_pprChanCalibContainer{ this, "OutputKeyPPr", "L1CaloPprChanCalibContainer"};
84  SG::WriteCondHandleKey<L1CaloPprChanDefaultsContainer> m_pprChanDefaultsContainer{ this, "OutputKeyDef", "L1CaloPprChanDefaultsContainer"};
85  SG::WriteCondHandleKey<L1CaloPpmFineTimeRefsContainer> m_ppmFineTimeRefsContainer{ this, "OutputKeyTimeRefs", "L1CaloPpmFineTimeRefsContainer"};
86  SG::WriteCondHandleKey<L1CaloRunParametersContainer> m_runParametersContainer{ this, "OutputKeyRunParameters", "L1CaloRunParametersContainer"};
87  SG::WriteCondHandleKey<L1CaloPprChanStrategyContainer> m_pprChanStrategyContainer{ this, "OutputKeyPprChanStrategy", "L1CaloPprChanStrategyContainer"};
88  SG::WriteCondHandleKey<L1CaloPpmDeadChannelsContainer> m_ppmDeadChannelsContainer{ this, "OutputKeyPpmDeadChannels", "L1CaloPpmDeadChannelsContainer"};
89  SG::WriteCondHandleKey<L1CaloPprConditionsContainerRun2> m_pprConditionsContainer{ this, "OutputKeyPprConditionsRun2", "L1CaloPprConditionsContainerRun2"};
90  SG::WriteCondHandleKey<L1CaloPprDisabledChannelContainerRun2> m_pprDisabledChannelContainer{ this, "OutputKeyDisabledChannelRun2", "L1CaloPprDisabledChannelContainerRun2"};
91  SG::WriteCondHandleKey<L1CaloReadoutConfigContainer> m_readoutConfigContainer{ this, "OutputKeyReadoutConfig", "L1CaloReadoutConfigContainer"};
92  SG::WriteCondHandleKey<L1CaloReadoutConfigContainerJSON> m_readoutConfigContainerJSON{ this, "OutputKeyReadoutConfigJSON", "L1CaloReadoutConfigContainerJSON"};
93 
94 
95  template <typename T> StatusCode updateCond(SG::WriteCondHandleKey<T>& wkey,
96  std::vector<std::reference_wrapper<const SG::ReadCondHandleKey<CondAttrListCollection>>> rkeys,
97  std::unique_ptr<T> obj = nullptr);
98 
99 
100 };
101 
102 #endif //> !MYPACKAGE_MYPACKAGEALG_H
L1CaloCondAlg::m_pprChanCalibContainer
SG::WriteCondHandleKey< L1CaloPprChanCalibContainer > m_pprChanCalibContainer
Definition: L1CaloCondAlg.h:83
L1CaloPprDisabledChannelContainerRun2.h
L1CaloCondAlg::m_pprChanDefaultsContainer
SG::WriteCondHandleKey< L1CaloPprChanDefaultsContainer > m_pprChanDefaultsContainer
Definition: L1CaloCondAlg.h:84
L1CaloCondAlg::m_readoutConfigContainerJSON
SG::WriteCondHandleKey< L1CaloReadoutConfigContainerJSON > m_readoutConfigContainerJSON
Definition: L1CaloCondAlg.h:92
CondAttrListCollection.h
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
L1CaloCondAlg::m_readoutConfigJSON
SG::ReadCondHandleKey< CondAttrListCollection > m_readoutConfigJSON
Definition: L1CaloCondAlg.h:77
L1CaloCondAlg::m_pprChanStrategy
SG::ReadCondHandleKey< CondAttrListCollection > m_pprChanStrategy
Definition: L1CaloCondAlg.h:75
SG::HandleKeyArray
Definition: StoreGate/StoreGate/HandleKeyArray.h:38
L1CaloDisabledTowersContainer.h
L1CaloCondAlg::m_pprDisabledChannelContainer
SG::WriteCondHandleKey< L1CaloPprDisabledChannelContainerRun2 > m_pprDisabledChannelContainer
Definition: L1CaloCondAlg.h:90
L1CaloReadoutConfigContainer.h
L1CaloCondAlg::PPRCHANHIGHMU
@ PPRCHANHIGHMU
Definition: L1CaloCondAlg.h:56
L1CaloDerivedRunParsContainer.h
L1CaloCondAlg::m_strategy
Gaudi::Property< std::string > m_strategy
Definition: L1CaloCondAlg.h:43
L1CaloPprChanCalibContainer.h
L1CaloCondAlg::m_pprChanStrategyContainer
SG::WriteCondHandleKey< L1CaloPprChanStrategyContainer > m_pprChanStrategyContainer
Definition: L1CaloCondAlg.h:87
L1CaloCondAlg::m_useCalib1Regime
Gaudi::Property< bool > m_useCalib1Regime
Definition: L1CaloCondAlg.h:48
L1CaloPprChanStrategyContainer.h
AthAlgorithm.h
L1CaloCondAlg::m_ppmDeadChannelsContainer
SG::WriteCondHandleKey< L1CaloPpmDeadChannelsContainer > m_ppmDeadChannelsContainer
Definition: L1CaloCondAlg.h:88
L1CaloCondAlg::m_pprConditionsContainer
SG::WriteCondHandleKey< L1CaloPprConditionsContainerRun2 > m_pprConditionsContainer
Definition: L1CaloCondAlg.h:89
L1CaloCondAlg
Definition: L1CaloCondAlg.h:27
L1CaloCondAlg::m_timingRegime
Gaudi::Property< std::string > m_timingRegime
Definition: L1CaloCondAlg.h:42
L1CaloCondAlg::m_derivedRunParsContainer
SG::WriteCondHandleKey< L1CaloDerivedRunParsContainer > m_derivedRunParsContainer
Definition: L1CaloCondAlg.h:82
L1CaloCondAlg::m_useCalib2Regime
Gaudi::Property< bool > m_useCalib2Regime
Definition: L1CaloCondAlg.h:50
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
L1CaloRunParametersContainer.h
L1CaloCondAlg::m_derivedRunPars
SG::ReadCondHandleKey< CondAttrListCollection > m_derivedRunPars
Definition: L1CaloCondAlg.h:69
L1CaloCondAlg::m_calib2Keys
SG::ReadCondHandleKeyArray< CondAttrListCollection > m_calib2Keys
Definition: L1CaloCondAlg.h:65
L1CaloCondAlg::execute
virtual StatusCode execute() override
Definition: L1CaloCondAlg.cxx:110
L1CaloCondAlg::m_runParameters
SG::ReadCondHandleKey< CondAttrListCollection > m_runParameters
Definition: L1CaloCondAlg.h:72
L1CaloCondAlg::m_physicsKeys
SG::ReadCondHandleKeyArray< CondAttrListCollection > m_physicsKeys
Definition: L1CaloCondAlg.h:61
L1CaloCondAlg::m_calib1Keys
SG::ReadCondHandleKeyArray< CondAttrListCollection > m_calib1Keys
Definition: L1CaloCondAlg.h:63
L1CaloCondAlg::updateCond
StatusCode updateCond(SG::WriteCondHandleKey< T > &wkey, std::vector< std::reference_wrapper< const SG::ReadCondHandleKey< CondAttrListCollection >>> rkeys, std::unique_ptr< T > obj=nullptr)
Definition: L1CaloCondAlg.cxx:89
CondHandleKeyArray.h
L1CaloCondAlg::m_usePhysicsRegime
Gaudi::Property< bool > m_usePhysicsRegime
Definition: L1CaloCondAlg.h:46
AthAlgorithm
Definition: AthAlgorithm.h:47
L1CaloPprConditionsContainerRun2.h
L1CaloCondAlg::L1CaloCondAlg
L1CaloCondAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: L1CaloCondAlg.cxx:13
IOVInfiniteRange.h
L1CaloCondAlg::m_disabledTowersContainer
SG::WriteCondHandleKey< L1CaloDisabledTowersContainer > m_disabledTowersContainer
Definition: L1CaloCondAlg.h:81
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
L1CaloCondAlg::PPRCHANCALIB
@ PPRCHANCALIB
Definition: L1CaloCondAlg.h:54
L1CaloPpmFineTimeRefsContainer.h
L1CaloCondAlg::PPRCHANLOWMU
@ PPRCHANLOWMU
Definition: L1CaloCondAlg.h:57
L1CaloCondAlg::m_readoutConfig
SG::ReadCondHandleKey< CondAttrListCollection > m_readoutConfig
Definition: L1CaloCondAlg.h:76
SG::ReadCondHandleKey< CondAttrListCollection >
L1CaloPpmDeadChannelsContainer.h
L1CaloCondAlg::m_readoutConfigContainer
SG::WriteCondHandleKey< L1CaloReadoutConfigContainer > m_readoutConfigContainer
Definition: L1CaloCondAlg.h:91
L1CaloCondAlg::m_ppmFineTimeRefs
SG::ReadCondHandleKey< CondAttrListCollection > m_ppmFineTimeRefs
Definition: L1CaloCondAlg.h:71
L1CaloReadoutConfigContainerJSON.h
L1CaloCondAlg::m_disabledTowers
SG::ReadCondHandleKey< CondAttrListCollection > m_disabledTowers
Definition: L1CaloCondAlg.h:68
SG::WriteCondHandleKey< L1CaloDisabledTowersContainer >
L1CaloCondAlg::m_runParametersContainer
SG::WriteCondHandleKey< L1CaloRunParametersContainer > m_runParametersContainer
Definition: L1CaloCondAlg.h:86
L1CaloCondAlg::initialize
virtual StatusCode initialize() override
Definition: L1CaloCondAlg.cxx:25
L1CaloCondAlg::m_pprChanDefaults
SG::ReadCondHandleKey< CondAttrListCollection > m_pprChanDefaults
Definition: L1CaloCondAlg.h:74
python.PyAthena.obj
obj
Definition: PyAthena.py:132
L1CaloCondAlg::m_ppmDeadChannels
SG::ReadCondHandleKey< CondAttrListCollection > m_ppmDeadChannels
Definition: L1CaloCondAlg.h:70
L1CaloCondAlg::PPRCHANCOMMON
@ PPRCHANCOMMON
Definition: L1CaloCondAlg.h:55
L1CaloCondAlg::PprKeys
PprKeys
Definition: L1CaloCondAlg.h:52
L1CaloCondAlg::m_ppmFineTimeRefsContainer
SG::WriteCondHandleKey< L1CaloPpmFineTimeRefsContainer > m_ppmFineTimeRefsContainer
Definition: L1CaloCondAlg.h:85
L1CaloPprChanDefaultsContainer.h