ATLAS Offline Software
Loading...
Searching...
No Matches
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
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 (const EventContext& ctx) const 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().
58 };
59
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(const EventContext& ctx, const SG::WriteCondHandleKey<T>& wkey,
96 const std::vector<std::reference_wrapper<const SG::ReadCondHandleKey<CondAttrListCollection>>>& rkeys,
97 std::unique_ptr<T> obj = nullptr) const;
98
99
100};
101
102#endif //> !MYPACKAGE_MYPACKAGEALG_H
Base class for conditions algorithms.
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
Base class for conditions algorithms.
SG::ReadCondHandleKeyArray< CondAttrListCollection > m_calib2Keys
SG::WriteCondHandleKey< L1CaloPprChanStrategyContainer > m_pprChanStrategyContainer
SG::ReadCondHandleKey< CondAttrListCollection > m_ppmDeadChannels
Gaudi::Property< bool > m_useCalib2Regime
SG::ReadCondHandleKeyArray< CondAttrListCollection > m_physicsKeys
SG::WriteCondHandleKey< L1CaloDisabledTowersContainer > m_disabledTowersContainer
virtual StatusCode execute(const EventContext &ctx) const override
SG::ReadCondHandleKey< CondAttrListCollection > m_pprChanStrategy
SG::WriteCondHandleKey< L1CaloDerivedRunParsContainer > m_derivedRunParsContainer
SG::ReadCondHandleKey< CondAttrListCollection > m_ppmFineTimeRefs
SG::WriteCondHandleKey< L1CaloPprChanCalibContainer > m_pprChanCalibContainer
Gaudi::Property< std::string > m_strategy
SG::WriteCondHandleKey< L1CaloPpmFineTimeRefsContainer > m_ppmFineTimeRefsContainer
SG::WriteCondHandleKey< L1CaloPpmDeadChannelsContainer > m_ppmDeadChannelsContainer
SG::ReadCondHandleKey< CondAttrListCollection > m_derivedRunPars
SG::WriteCondHandleKey< L1CaloReadoutConfigContainerJSON > m_readoutConfigContainerJSON
SG::ReadCondHandleKey< CondAttrListCollection > m_runParameters
SG::WriteCondHandleKey< L1CaloPprDisabledChannelContainerRun2 > m_pprDisabledChannelContainer
virtual StatusCode initialize() override
StatusCode updateCond(const EventContext &ctx, const SG::WriteCondHandleKey< T > &wkey, const std::vector< std::reference_wrapper< const SG::ReadCondHandleKey< CondAttrListCollection > > > &rkeys, std::unique_ptr< T > obj=nullptr) const
L1CaloCondAlg(const std::string &name, ISvcLocator *pSvcLocator)
SG::WriteCondHandleKey< L1CaloReadoutConfigContainer > m_readoutConfigContainer
SG::ReadCondHandleKey< CondAttrListCollection > m_disabledTowers
SG::ReadCondHandleKey< CondAttrListCollection > m_pprChanDefaults
Gaudi::Property< bool > m_useCalib1Regime
SG::ReadCondHandleKeyArray< CondAttrListCollection > m_calib1Keys
SG::WriteCondHandleKey< L1CaloRunParametersContainer > m_runParametersContainer
SG::WriteCondHandleKey< L1CaloPprConditionsContainerRun2 > m_pprConditionsContainer
SG::WriteCondHandleKey< L1CaloPprChanDefaultsContainer > m_pprChanDefaultsContainer
SG::ReadCondHandleKey< CondAttrListCollection > m_readoutConfig
Gaudi::Property< bool > m_usePhysicsRegime
Gaudi::Property< std::string > m_timingRegime
SG::ReadCondHandleKey< CondAttrListCollection > m_readoutConfigJSON
HandleKeyArray< ReadCondHandle< T >, CondHandleDefault::Key< ReadCondHandleKey< T > >, Gaudi::DataHandle::Reader > ReadCondHandleKeyArray