ATLAS Offline Software
Loading...
Searching...
No Matches
TileEMScaleCondAlg Class Reference

Condition algorithm to produce TileEMScale and put it into condition store. More...

#include <TileEMScaleCondAlg.h>

Inheritance diagram for TileEMScaleCondAlg:
Collaboration diagram for TileEMScaleCondAlg:

Public Member Functions

 TileEMScaleCondAlg (const std::string &name, ISvcLocator *pSvcLocator)
virtual ~TileEMScaleCondAlg ()=default
virtual StatusCode initialize () override
virtual StatusCode execute (const EventContext &ctx) const override
virtual StatusCode finalize () override
virtual bool isReEntrant () const override
 Avoid scheduling algorithm multiple times.
virtual StatusCode sysInitialize () override
 Override sysInitialize.
virtual bool isClonable () const override
 Specify if the algorithm is clonable.
virtual unsigned int cardinality () const override
 Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.
virtual StatusCode sysExecute (const EventContext &ctx) override
 Execute an algorithm.
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies.
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.
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode sysStart () override
 Handle START transition.
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles.
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles.
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T, V, H > &t)
void updateVHKA (Gaudi::Details::PropertyBase &)
MsgStream & msg () const
bool msgLvl (const MSG::Level lvl) const

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution
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)
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed.

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t

Private Member Functions

Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

Gaudi::Property< std::string > m_onlCacheUnitString
 Online cache units as string, see TileIdentifier/TileRawChannelUnit.h.
ToolHandle< ITileCondProxy< TileCalibDrawerFlt > > m_oflCisLinProxy
 Tool to get offline CIS calibration constants.
ToolHandle< ITileCondProxy< TileCalibDrawerFlt > > m_oflCisNlnProxy
 Tool to get offline non-linear CIS calibration constants.
ToolHandle< ITileCondProxy< TileCalibDrawerFlt > > m_oflLasLinProxy
 Tool to get offline linear Laser correction factors.
ToolHandle< ITileCondProxy< TileCalibDrawerFlt > > m_oflLasNlnProxy
 Tool to get non-linear Laser corection factors.
ToolHandle< ITileCondProxy< TileCalibDrawerFlt > > m_oflLasFibProxy
 Tool to get offline Laser fiber correction factors.
ToolHandle< ITileCondProxy< TileCalibDrawerFlt > > m_oflCesProxy
 Tool to get offline Cesium calibration constants.
ToolHandle< ITileCondProxy< TileCalibDrawerFlt > > m_oflEmsProxy
 Tool to get offline EMS factors.
ToolHandle< ITileCondProxy< TileCalibDrawerFlt > > m_onlCisProxy
 Tool to get online CIS calibration constants.
ToolHandle< ITileCondProxy< TileCalibDrawerFlt > > m_onlLasProxy
 Tool to get Tile online Laser correction factors.
ToolHandle< ITileCondProxy< TileCalibDrawerFlt > > m_onlCesProxy
 Tool to get Tile online Cesium calibration constants.
ToolHandle< ITileCondProxy< TileCalibDrawerFlt > > m_onlEmsProxy
 Tool to get Tile online EMS factors.
SG::WriteCondHandleKey< TileEMScalem_calibEmsKey
 Name of output TileEMScale.
ServiceHandle< TileCablingSvcm_cablingSvc
 Name of Tile cabling service.
bool m_useOflLasFib
unsigned int m_maxChannels
unsigned int m_maxGains
TileRawChannelUnit::UNIT m_onlCacheUnit
DataObjIDColl m_extendedExtraObjects
 Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default)
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
bool m_varHandleArraysDeclared

Detailed Description

Condition algorithm to produce TileEMScale and put it into condition store.

Definition at line 25 of file TileEMScaleCondAlg.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ TileEMScaleCondAlg()

TileEMScaleCondAlg::TileEMScaleCondAlg ( const std::string & name,
ISvcLocator * pSvcLocator )

Definition at line 15 of file TileEMScaleCondAlg.cxx.

15 :
16 AthCondAlgorithm(name, pSvcLocator),
17 m_useOflLasFib(false),
19 m_maxGains(0),
21{
22}
TileRawChannelUnit::UNIT m_onlCacheUnit

◆ ~TileEMScaleCondAlg()

virtual TileEMScaleCondAlg::~TileEMScaleCondAlg ( )
virtualdefault

Member Function Documentation

◆ cardinality()

unsigned int AthCommonReentrantAlgorithm< Gaudi::Algorithm >::cardinality ( ) const
overridevirtualinherited

Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.

Override this to return 0 for reentrant algorithms.

Definition at line 75 of file AthCommonReentrantAlgorithm.cxx.

64{
65 return 0;
66}

◆ declareGaudiProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareGaudiProperty ( Gaudi::Property< T, V, H > & hndl,
const SG::VarHandleKeyType &  )
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158 {
160 hndl.value(),
161 hndl.documentation());
162
163 }
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)

◆ declareProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( Gaudi::Property< T, V, H > & t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145 {
146 typedef typename SG::HandleClassifier<T>::type htype;
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>

◆ detStore()

const ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

◆ evtStore()

ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

◆ execute()

StatusCode TileEMScaleCondAlg::execute ( const EventContext & ctx) const
overridevirtual

Definition at line 136 of file TileEMScaleCondAlg.cxx.

136 {
137
138 SG::WriteCondHandle<TileEMScale> calibEms{m_calibEmsKey, ctx};
139
140 if (calibEms.isValid()) {
141 ATH_MSG_DEBUG("Found valid TileEMScale: " << calibEms.key());
142 return StatusCode::SUCCESS;
143 }
144
145
146 std::unique_ptr<TileEMScale> emsData = std::make_unique<TileEMScale>();
147
148 emsData->setMaxChannels(m_maxChannels);
149 emsData->setMaxGains(m_maxGains);
150 emsData->setOnlineCacheUnit(m_onlCacheUnit);
151
152
153 // Get offline CIS linear calibration constants
154 EventIDRange oflCisLinRange;
155 std::unique_ptr<TileCalibDataFlt> calibOflCisLin = std::make_unique<TileCalibDataFlt>();
156
157 ATH_CHECK( m_oflCisLinProxy->fillCalibData(*calibOflCisLin, oflCisLinRange) );
158 emsData->setCalibOflCisLin(std::move(calibOflCisLin));
159
160 // Get offline CIS non-linear calibration constants
161 EventIDRange oflCisNlnRange;
162 std::unique_ptr<TileCalibDataFlt> calibOflCisNln = std::make_unique<TileCalibDataFlt>();
163
164 ATH_CHECK( m_oflCisNlnProxy->fillCalibData(*calibOflCisNln, oflCisNlnRange) );
165 emsData->setCalibOflCisNln(std::move(calibOflCisNln));
166
167
168 // Get offline Laser linear calibration constants
169 EventIDRange oflLasLinRange;
170 std::unique_ptr<TileCalibDataFlt> calibOflLasLin = std::make_unique<TileCalibDataFlt>();
171
172 ATH_CHECK( m_oflLasLinProxy->fillCalibData(*calibOflLasLin, oflLasLinRange) );
173 emsData->setCalibOflLasLin(std::move(calibOflLasLin));
174
175
176 // Get offline Laser non-linear calibration constants
177 EventIDRange oflLasNlnRange;
178 std::unique_ptr<TileCalibDataFlt> calibOflLasNln = std::make_unique<TileCalibDataFlt>();
179
180 ATH_CHECK( m_oflLasNlnProxy->fillCalibData(*calibOflLasNln, oflLasNlnRange) );
181 emsData->setCalibOflLasNln(std::move(calibOflLasNln));
182
183
184 // Get offline Ces calibration constants
185 EventIDRange oflCesRange;
186 std::unique_ptr<TileCalibDataFlt> calibOflCes = std::make_unique<TileCalibDataFlt>();
187
188 ATH_CHECK( m_oflCesProxy->fillCalibData(*calibOflCes, oflCesRange) );
189 emsData->setCalibOflCes(std::move(calibOflCes));
190
191
192 // Get offline Ems calibration constants
193 EventIDRange oflEmsRange;
194 std::unique_ptr<TileCalibDataFlt> calibOflEms = std::make_unique<TileCalibDataFlt>();
195
196 ATH_CHECK( m_oflEmsProxy->fillCalibData(*calibOflEms, oflEmsRange) );
197 emsData->setCalibOflEms(std::move(calibOflEms));
198
199
200 EventIDRange eventRange = EventIDRange::intersect(oflCisLinRange, oflCisNlnRange,
201 oflLasLinRange, oflLasNlnRange,
202 oflCesRange, oflEmsRange);
203
204
205 if (m_useOflLasFib) {
206 // Get offline Laser fiber calibration constants
207 EventIDRange oflLasFibRange;
208 std::unique_ptr<TileCalibDataFlt> calibOflLasFib = std::make_unique<TileCalibDataFlt>();
209
210 ATH_CHECK( m_oflLasFibProxy->fillCalibData(*calibOflLasFib, oflLasFibRange) );
211 emsData->setCalibOflLasFib(std::move(calibOflLasFib));
212
213 eventRange = EventIDRange::intersect(eventRange, oflLasFibRange);
214 }
215
216 if (!m_onlCisProxy.empty()) {
217 // Get online CIS calibration constants
218 EventIDRange onlCisRange;
219 std::unique_ptr<TileCalibDataFlt> calibOnlCis = std::make_unique<TileCalibDataFlt>();
220
221 ATH_CHECK( m_onlCisProxy->fillCalibData(*calibOnlCis, onlCisRange) );
222 emsData->setCalibOnlCis(std::move(calibOnlCis));
223
224 eventRange = EventIDRange::intersect(eventRange, onlCisRange);
225 }
226
227 if (!m_onlLasProxy.empty()) {
228 // Get online Laser calibration constants
229 EventIDRange onlLasRange;
230 std::unique_ptr<TileCalibDataFlt> calibOnlLas = std::make_unique<TileCalibDataFlt>();
231
232 ATH_CHECK( m_onlLasProxy->fillCalibData(*calibOnlLas, onlLasRange) );
233 emsData->setCalibOnlLas(std::move(calibOnlLas));
234
235 eventRange = EventIDRange::intersect(eventRange, onlLasRange);
236 }
237
238 if (!m_onlCesProxy.empty()) {
239 // Get online Ces calibration constants
240 EventIDRange onlCesRange;
241 std::unique_ptr<TileCalibDataFlt> calibOnlCes = std::make_unique<TileCalibDataFlt>();
242
243 ATH_CHECK( m_onlCesProxy->fillCalibData(*calibOnlCes, onlCesRange) );
244 emsData->setCalibOnlCes(std::move(calibOnlCes));
245
246 eventRange = EventIDRange::intersect(eventRange, onlCesRange);
247 }
248
249 if (!m_onlEmsProxy.empty()) {
250 // Get online Ems calibration constants
251 EventIDRange onlEmsRange;
252 std::unique_ptr<TileCalibDataFlt> calibOnlEms = std::make_unique<TileCalibDataFlt>();
253
254 ATH_CHECK( m_onlEmsProxy->fillCalibData(*calibOnlEms, onlEmsRange) );
255 emsData->setCalibOnlEms(std::move(calibOnlEms));
256
257 eventRange = EventIDRange::intersect(eventRange, onlEmsRange);
258 }
259
260
261 if(eventRange.start() > eventRange.stop()) {
262 ATH_MSG_ERROR("Invalid intersection range: " << eventRange);
263 return StatusCode::FAILURE;
264 }
265
266 if (emsData->initialize()) {
267 ATH_MSG_DEBUG("TileEMScale object is initialized successfully.");
268 } else {
269 ATH_MSG_ERROR("Impossible to inizialize TileEMScale object!");
270 return StatusCode::FAILURE;
271 }
272
273 if(calibEms.record(eventRange, emsData.release()).isFailure()) {
274 ATH_MSG_ERROR("Could not record TileEMScale object with "
275 << calibEms.key()
276 << " with EventRange " << eventRange
277 << " into Conditions Store");
278 return StatusCode::FAILURE;
279 } else {
280
281 ATH_MSG_VERBOSE("Recorded TileEMScale object with "
282 << calibEms.key()
283 << " with EventRange " << eventRange
284 << " into Conditions Store");
285 }
286
287 return StatusCode::SUCCESS;
288
289}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_ERROR(x)
#define ATH_MSG_VERBOSE(x)
#define ATH_MSG_DEBUG(x)
const std::string & key() const
StatusCode record(const EventIDRange &range, T *t)
record handle, with explicit range DEPRECATED
ToolHandle< ITileCondProxy< TileCalibDrawerFlt > > m_oflLasNlnProxy
Tool to get non-linear Laser corection factors.
ToolHandle< ITileCondProxy< TileCalibDrawerFlt > > m_oflCisLinProxy
Tool to get offline CIS calibration constants.
ToolHandle< ITileCondProxy< TileCalibDrawerFlt > > m_oflCisNlnProxy
Tool to get offline non-linear CIS calibration constants.
ToolHandle< ITileCondProxy< TileCalibDrawerFlt > > m_onlCisProxy
Tool to get online CIS calibration constants.
ToolHandle< ITileCondProxy< TileCalibDrawerFlt > > m_onlCesProxy
Tool to get Tile online Cesium calibration constants.
ToolHandle< ITileCondProxy< TileCalibDrawerFlt > > m_oflCesProxy
Tool to get offline Cesium calibration constants.
ToolHandle< ITileCondProxy< TileCalibDrawerFlt > > m_oflEmsProxy
Tool to get offline EMS factors.
ToolHandle< ITileCondProxy< TileCalibDrawerFlt > > m_oflLasLinProxy
Tool to get offline linear Laser correction factors.
ToolHandle< ITileCondProxy< TileCalibDrawerFlt > > m_oflLasFibProxy
Tool to get offline Laser fiber correction factors.
ToolHandle< ITileCondProxy< TileCalibDrawerFlt > > m_onlLasProxy
Tool to get Tile online Laser correction factors.
SG::WriteCondHandleKey< TileEMScale > m_calibEmsKey
Name of output TileEMScale.
ToolHandle< ITileCondProxy< TileCalibDrawerFlt > > m_onlEmsProxy
Tool to get Tile online EMS factors.

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase & ExtraDeps)
protectedinherited

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()

const DataObjIDColl & AthCommonReentrantAlgorithm< Gaudi::Algorithm >::extraOutputDeps ( ) const
overridevirtualinherited

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.

90{
91 // If we didn't find any symlinks to add, just return the collection
92 // from the base class. Otherwise, return the extended collection.
93 if (!m_extendedExtraObjects.empty()) {
95 }
97}
An algorithm that can be simultaneously executed in multiple threads.

◆ filterPassed()

virtual bool AthCommonReentrantAlgorithm< Gaudi::Algorithm >::filterPassed ( const EventContext & ctx) const
inlinevirtualinherited

Definition at line 96 of file AthCommonReentrantAlgorithm.h.

96 {
97 return execState( ctx ).filterPassed();
98 }
virtual bool filterPassed(const EventContext &ctx) const

◆ finalize()

StatusCode TileEMScaleCondAlg::finalize ( )
overridevirtual

Definition at line 292 of file TileEMScaleCondAlg.cxx.

292 {
293 return StatusCode::SUCCESS;
294}

◆ initialize()

StatusCode TileEMScaleCondAlg::initialize ( )
overridevirtual

Definition at line 26 of file TileEMScaleCondAlg.cxx.

26 {
27
28 ATH_MSG_DEBUG( "In initialize()" );
29
30 //=== Configure online cache unit
31 if (m_onlCacheUnitString == "Invalid") {
33 } else if (m_onlCacheUnitString == "OnlineADCcounts") {
35 } else if (m_onlCacheUnitString == "OnlinePicoCoulombs") {
37 } else if (m_onlCacheUnitString == "OnlineCesiumPicoCoulombs") {
39 } else if (m_onlCacheUnitString == "OnlineMegaElectronVolts") {
41 } else {
42 ATH_MSG_WARNING( "Unrecoginzed jobOption OnlCacheUnit=" << m_onlCacheUnitString << ". "
43 << "Setting it to \"Invalid\"!" );
45 }
46
47
48 // Tile cabling service
49 ATH_CHECK( m_cablingSvc.retrieve() );
50
51 ATH_CHECK( m_oflCisLinProxy.retrieve() );
52 ATH_CHECK( m_oflCisNlnProxy.retrieve() );
53
54 ATH_CHECK( m_oflLasLinProxy.retrieve() );
55 ATH_CHECK( m_oflLasNlnProxy.retrieve() );
56
58
59 if (m_useOflLasFib) {
60 //=== retrieve offline proxy
61 CHECK( m_oflLasFibProxy.retrieve() );
62 ATH_MSG_INFO("ProxyOflLasFib is set up and can be used");
63 } else {
64 ATH_MSG_INFO("ProxyOflLasFib is not set up and cannot be used");
65 m_oflLasFibProxy.disable();
66 }
67
68 ATH_CHECK( m_oflCesProxy.retrieve() );
69 ATH_CHECK( m_oflEmsProxy.retrieve() );
70
72
73 if (m_onlCisProxy.empty() || m_onlLasProxy.empty()
74 || m_onlCesProxy.empty() || m_onlEmsProxy.empty()) {
75
76 ATH_MSG_ERROR( "Requested valid OnlCacheUnit (" << m_onlCacheUnitString << ") "
77 << "but at least one Onl{Cis|Las|Ces|Ems}Proxy is not set up!" );
78 return StatusCode::FAILURE;
79 }
80
81 //=== Resize onlCache to desired size
82 const TileCablingService* cabling = m_cablingSvc->cablingService();
83 if (!cabling) {
84 ATH_MSG_ERROR( "Unable to retrieve TileCablingService" );
85 return StatusCode::FAILURE;
86 }
87
88
89 m_maxChannels = cabling->getMaxChannels();
90 m_maxGains = cabling->getMaxGains();
91
92 } else {
93
94 ATH_MSG_INFO( "Undoing online calibration is not requested, "
95 << "since OnlCacheUnit=" << m_onlCacheUnitString );
96 }
97
98 if (m_onlCisProxy.empty()) {
99 ATH_MSG_INFO( "Loading of online CIS calibration constants is not requested" );
100
101 m_onlCisProxy.disable();
102 } else {
103 ATH_CHECK( m_onlCisProxy.retrieve() );
104 }
105
106 if (m_onlLasProxy.empty()) {
107 ATH_MSG_INFO( "Loading of online Laser calibration constants is not requested" );
108
109 m_onlLasProxy.disable();
110 } else {
111 ATH_CHECK( m_onlLasProxy.retrieve() );
112 }
113
114 if (m_onlCesProxy.empty()) {
115 ATH_MSG_INFO( "Loading of online Cesium calibration constants is not requested" );
116
117 m_onlCesProxy.disable();
118 } else {
119 ATH_CHECK( m_onlCesProxy.retrieve() );
120 }
121
122 if (m_onlEmsProxy.empty()) {
123 ATH_MSG_INFO( "Loading of online EM scale calibration constants is not requested" );
124
125 m_onlEmsProxy.disable();
126 } else {
127 ATH_CHECK( m_onlEmsProxy.retrieve() );
128 }
129
130 ATH_CHECK( m_calibEmsKey.initialize() );
131
132 return StatusCode::SUCCESS;
133}
#define ATH_MSG_INFO(x)
#define ATH_MSG_WARNING(x)
#define CHECK(...)
Evaluate an expression and check for errors.
ServiceHandle< TileCablingSvc > m_cablingSvc
Name of Tile cabling service.
Gaudi::Property< std::string > m_onlCacheUnitString
Online cache units as string, see TileIdentifier/TileRawChannelUnit.h.

◆ inputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::inputHandles ( ) const
overridevirtualinherited

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 AthCondAlgorithm::isReEntrant ( ) const
inlineoverridevirtualinherited

Avoid scheduling algorithm multiple times.

With multiple concurrent events, conditions objects often expire simultaneously for all slots. To avoid that the scheduler runs the CondAlg in each slot, we declare it as "non-reentrant". This ensures that the conditions objects are only created once.

In case a particular CondAlg should behave differently, it can override this method again and return true.

See also
ATEAM-836

Definition at line 39 of file AthCondAlgorithm.h.

39{ return false; }

◆ msg()

MsgStream & AthCommonMsg< Gaudi::Algorithm >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24 {
25 return this->msgStream();
26 }

◆ msgLvl()

bool AthCommonMsg< Gaudi::Algorithm >::msgLvl ( const MSG::Level lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30 {
31 return this->msgLevel(lvl);
32 }

◆ outputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::outputHandles ( ) const
overridevirtualinherited

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.

◆ renounce()

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 > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::renounce ( T & h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381 {
382 h.renounce();
384 }
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)

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::renounceArray ( SG::VarHandleKeyArray & handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364 {
366 }

◆ setFilterPassed()

virtual void AthCommonReentrantAlgorithm< Gaudi::Algorithm >::setFilterPassed ( bool state,
const EventContext & ctx ) const
inlinevirtualinherited

Definition at line 100 of file AthCommonReentrantAlgorithm.h.

100 {
102 }
virtual void setFilterPassed(bool state, const EventContext &ctx) const

◆ sysExecute()

StatusCode AthCommonReentrantAlgorithm< Gaudi::Algorithm >::sysExecute ( const EventContext & ctx)
overridevirtualinherited

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.

77{
78 return BaseAlg::sysExecute (ctx);
79}

◆ sysInitialize()

StatusCode AthCommonReentrantAlgorithm< Gaudi::Algorithm >::sysInitialize ( )
overridevirtualinherited

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 HypoBase, and InputMakerBase.

Definition at line 61 of file AthCommonReentrantAlgorithm.cxx.

107 {
109
110 if (sc.isFailure()) {
111 return sc;
112 }
113
114 ServiceHandle<ICondSvc> cs("CondSvc",name());
115 for (auto h : outputHandles()) {
116 if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
117 // do this inside the loop so we don't create the CondSvc until needed
118 if ( cs.retrieve().isFailure() ) {
119 ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
120 return StatusCode::SUCCESS;
121 }
122 if (cs->regHandle(this,*h).isFailure()) {
124 ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
125 << " with CondSvc");
126 }
127 }
128 }
129 return sc;
130}
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::updateVHKA ( Gaudi::Details::PropertyBase & )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308 {
309 // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310 // << " size: " << m_vhka.size() << endmsg;
311 for (auto &a : m_vhka) {
313 for (auto k : keys) {
314 k->setOwner(this);
315 }
316 }
317 }

Member Data Documentation

◆ m_cablingSvc

ServiceHandle<TileCablingSvc> TileEMScaleCondAlg::m_cablingSvc
private
Initial value:
{ this,
"TileCablingSvc", "TileCablingSvc", "The Tile cabling service" }

Name of Tile cabling service.

Definition at line 121 of file TileEMScaleCondAlg.h.

121 { this,
122 "TileCablingSvc", "TileCablingSvc", "The Tile cabling service" };

◆ m_calibEmsKey

SG::WriteCondHandleKey<TileEMScale> TileEMScaleCondAlg::m_calibEmsKey
private
Initial value:
{this,
"TileEMScale", "TileEMScale", "Output Tile EMS calibration constants"}

Name of output TileEMScale.

Definition at line 115 of file TileEMScaleCondAlg.h.

115 {this,
116 "TileEMScale", "TileEMScale", "Output Tile EMS calibration constants"};

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_extendedExtraObjects

DataObjIDColl AthCommonReentrantAlgorithm< Gaudi::Algorithm >::m_extendedExtraObjects
privateinherited

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_maxChannels

unsigned int TileEMScaleCondAlg::m_maxChannels
private

Definition at line 126 of file TileEMScaleCondAlg.h.

◆ m_maxGains

unsigned int TileEMScaleCondAlg::m_maxGains
private

Definition at line 127 of file TileEMScaleCondAlg.h.

◆ m_oflCesProxy

ToolHandle<ITileCondProxy<TileCalibDrawerFlt> > TileEMScaleCondAlg::m_oflCesProxy
private
Initial value:
{this,
"OflCesProxy", "", "Tile offline CES conditions proxy tool"}

Tool to get offline Cesium calibration constants.

Definition at line 76 of file TileEMScaleCondAlg.h.

76 {this,
77 "OflCesProxy", "", "Tile offline CES conditions proxy tool"};

◆ m_oflCisLinProxy

ToolHandle<ITileCondProxy<TileCalibDrawerFlt> > TileEMScaleCondAlg::m_oflCisLinProxy
private
Initial value:
{this,
"OflCisLinProxy", "", "Tile offline liner CIS conditions proxy tool"}

Tool to get offline CIS calibration constants.

Definition at line 46 of file TileEMScaleCondAlg.h.

46 {this,
47 "OflCisLinProxy", "", "Tile offline liner CIS conditions proxy tool"};

◆ m_oflCisNlnProxy

ToolHandle<ITileCondProxy<TileCalibDrawerFlt> > TileEMScaleCondAlg::m_oflCisNlnProxy
private
Initial value:
{this,
"OflCisNlnProxy", "", "Tile offline non-linerar CIS conditions proxy tool"}

Tool to get offline non-linear CIS calibration constants.

Definition at line 52 of file TileEMScaleCondAlg.h.

52 {this,
53 "OflCisNlnProxy", "", "Tile offline non-linerar CIS conditions proxy tool"};

◆ m_oflEmsProxy

ToolHandle<ITileCondProxy<TileCalibDrawerFlt> > TileEMScaleCondAlg::m_oflEmsProxy
private
Initial value:
{this,
"OflEmsProxy", "", "Tile offline EMS conditions proxy tool"}

Tool to get offline EMS factors.

Definition at line 82 of file TileEMScaleCondAlg.h.

82 {this,
83 "OflEmsProxy", "", "Tile offline EMS conditions proxy tool"};

◆ m_oflLasFibProxy

ToolHandle<ITileCondProxy<TileCalibDrawerFlt> > TileEMScaleCondAlg::m_oflLasFibProxy
private
Initial value:
{this,
"OflLasFibProxy", "", "Tile offline Laser fiber conditions proxy tool"}

Tool to get offline Laser fiber correction factors.

Definition at line 70 of file TileEMScaleCondAlg.h.

70 {this,
71 "OflLasFibProxy", "", "Tile offline Laser fiber conditions proxy tool"};

◆ m_oflLasLinProxy

ToolHandle<ITileCondProxy<TileCalibDrawerFlt> > TileEMScaleCondAlg::m_oflLasLinProxy
private
Initial value:
{this,
"OflLasLinProxy", "", "Tile offline linear Laser conditions proxy tool"}

Tool to get offline linear Laser correction factors.

Definition at line 58 of file TileEMScaleCondAlg.h.

58 {this,
59 "OflLasLinProxy", "", "Tile offline linear Laser conditions proxy tool"};

◆ m_oflLasNlnProxy

ToolHandle<ITileCondProxy<TileCalibDrawerFlt> > TileEMScaleCondAlg::m_oflLasNlnProxy
private
Initial value:
{this,
"OflLasNlnProxy", "", "Tile offline non-linear Laser conditions proxy tool"}

Tool to get non-linear Laser corection factors.

Definition at line 64 of file TileEMScaleCondAlg.h.

64 {this,
65 "OflLasNlnProxy", "", "Tile offline non-linear Laser conditions proxy tool"};

◆ m_onlCacheUnit

TileRawChannelUnit::UNIT TileEMScaleCondAlg::m_onlCacheUnit
private

Definition at line 128 of file TileEMScaleCondAlg.h.

◆ m_onlCacheUnitString

Gaudi::Property<std::string> TileEMScaleCondAlg::m_onlCacheUnitString
private
Initial value:
{this,
"OnlCacheUnit", "Invalid", "Online cache unit string"}

Online cache units as string, see TileIdentifier/TileRawChannelUnit.h.

Definition at line 40 of file TileEMScaleCondAlg.h.

40 {this,
41 "OnlCacheUnit", "Invalid", "Online cache unit string"};

◆ m_onlCesProxy

ToolHandle<ITileCondProxy<TileCalibDrawerFlt> > TileEMScaleCondAlg::m_onlCesProxy
private
Initial value:
{this,
"OnlCesProxy", "", "Tile online CES conditions proxy tool"}

Tool to get Tile online Cesium calibration constants.

Definition at line 102 of file TileEMScaleCondAlg.h.

102 {this,
103 "OnlCesProxy", "", "Tile online CES conditions proxy tool"};

◆ m_onlCisProxy

ToolHandle<ITileCondProxy<TileCalibDrawerFlt> > TileEMScaleCondAlg::m_onlCisProxy
private
Initial value:
{this,
"OnlCisProxy", "", "Tile online CIS conditions proxy tool"}

Tool to get online CIS calibration constants.

Definition at line 90 of file TileEMScaleCondAlg.h.

90 {this,
91 "OnlCisProxy", "", "Tile online CIS conditions proxy tool"};

◆ m_onlEmsProxy

ToolHandle<ITileCondProxy<TileCalibDrawerFlt> > TileEMScaleCondAlg::m_onlEmsProxy
private
Initial value:
{this,
"OnlEmsProxy", "", "Tile online EMS conditions proxy tool"}

Tool to get Tile online EMS factors.

Definition at line 108 of file TileEMScaleCondAlg.h.

108 {this,
109 "OnlEmsProxy", "", "Tile online EMS conditions proxy tool"};

◆ m_onlLasProxy

ToolHandle<ITileCondProxy<TileCalibDrawerFlt> > TileEMScaleCondAlg::m_onlLasProxy
private
Initial value:
{this,
"OnlLasProxy", "", "Tile online Laser conditions proxy tool"}

Tool to get Tile online Laser correction factors.

Definition at line 96 of file TileEMScaleCondAlg.h.

96 {this,
97 "OnlLasProxy", "", "Tile online Laser conditions proxy tool"};

◆ m_useOflLasFib

bool TileEMScaleCondAlg::m_useOflLasFib
private

Definition at line 125 of file TileEMScaleCondAlg.h.

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_vhka
privateinherited

Definition at line 398 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files: