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

#include <LArHV2Ntuple.h>

Inheritance diagram for LArHV2Ntuple:
Collaboration diagram for LArHV2Ntuple:

Public Member Functions

 LArHV2Ntuple (const std::string &name, ISvcLocator *pSvcLocator)
 Standard Athena-Algorithm Constructor.
virtual ~LArHV2Ntuple ()
 Default Destructor.
virtual StatusCode initialize () override
 standard Athena-Algorithm method
virtual StatusCode execute (const EventContext &ctx) override
 standard Athena-Algorithm method
virtual StatusCode sysInitialize () override
 Override sysInitialize.
virtual bool isClonable () const override
 Specify if the algorithm is clonable.
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
 Get filter decision:
virtual void setFilterPassed (bool state, const EventContext &ctx) const
 Set filter decision:
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

Public Attributes

 parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter)
 dest
 default
 help
 type
 None
 args = parser.parse_args()
 flags = initConfigFlags()
 RunNumbers
 AtlasVersion
 Files
 isMC
 doAlign
 Run
 DatabaseInstance
 GlobalTag
 cfg = MainServicesCfg(flags)
 rootfile = args.out

Protected Member Functions

virtual bool isReEntrant () const override final
 Legacy algorithms are not thread-safe.
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< StoreGateSvc > StoreGateSvc_t

Private Member Functions

std::vector< int > GetHVLines (const EMBHVManager::EMBHVData &hvdata_EMB, const EMBPresamplerHVManager::EMBPresamplerHVData &hvdata_EMBPS, const EMECHVManager::EMECHVData &hvdata_EMEC_OUT, const EMECHVManager::EMECHVData &hvdata_EMEC_IN, const EMECPresamplerHVManager::EMECPresamplerHVData &hvdata_EMECPS, const HECHVManager::HECHVData &hvdata_HEC, const FCALHVManager::FCALHVData &hvdata_FCAL, const Identifier &id, const CaloDetDescrManager *calodetdescrmgr)
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey {this, "OnOffMap", "LArOnOffIdMap", "SG key for mapping object"}
SG::ReadCondHandleKey< LArHVIdMapping > m_hvCablingKey {this, "LArHVIdMapping", "LArHVIdMap", "SG key for HV ID mapping"}
SG::ReadCondHandleKeyArray< CondAttrListCollection > m_DCSFolderKeys { this, "DCSFolderNames", {"/LAR/DCS/HV/BARREl/I16", "/LAR/DCS/HV/BARREL/I8"}, "DCS folders with HV values"}
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
ServiceHandle< ITHistSvc > m_thistSvc {this,"THistSvc","THistSvc"}
TTree * m_tree
bool m_addcells
int m_bec
int m_isPresampler
float m_eta
float m_phi
int m_electrode
int m_gap
int m_hvline
float m_hv
float m_current
int m_barrelec
int m_posneg
int m_FT
int m_slot
int m_channel
const CaloCell_ID * m_caloId
const LArOnlineID * m_onlId
std::map< int, std::vector< HWIdentifier > > m_hvonlId_map
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

Definition at line 38 of file LArHV2Ntuple.h.

Member Typedef Documentation

◆ StoreGateSvc_t

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

Definition at line 376 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ LArHV2Ntuple()

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

Standard Athena-Algorithm Constructor.

Definition at line 31 of file LArHV2Ntuple.cxx.

31 :
32 AthAlgorithm(name,pSvcLocator),
33 m_tree(nullptr),
34 m_addcells(false),
35 m_bec(0),
36 m_isPresampler(0),
37 m_eta(0),
38 m_phi(0),
39 m_electrode(0),
40 m_gap(0),
41 m_hvline(0),
42 m_hv(0),
43 m_current(0),
44 m_barrelec(0), m_posneg(0), m_FT(0),m_slot(0),m_channel(0),
45 m_caloId(nullptr), m_onlId(nullptr)
46 {
47 declareProperty("AddCellID",m_addcells);
48 }
Base class from which non-reentrant (not thread-safe) Athena algorithm classes should be derived.

◆ ~LArHV2Ntuple()

LArHV2Ntuple::~LArHV2Ntuple ( )
virtual

Default Destructor.

Definition at line 52 of file LArHV2Ntuple.cxx.

53 {
54 ATH_MSG_DEBUG ( "LArHV2Ntuple destructor called" );
55 }
#define ATH_MSG_DEBUG(x,...)

Member Function Documentation

◆ 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 LArHV2Ntuple::execute ( const EventContext & ctx)
overridevirtual

standard Athena-Algorithm method

Implements AthAlgorithm.

Definition at line 92 of file LArHV2Ntuple.cxx.

93 {
94
95 //.............................................
96
97 // FIXME: Use LArHVData instead?
98 SG::ReadCondHandle<LArHVIdMapping> hvCabling (m_hvCablingKey, ctx);
99 std::vector<const CondAttrListCollection*> attrLists;
100 for (const SG::ReadCondHandleKey<CondAttrListCollection>& k : m_DCSFolderKeys)
101 {
103 attrLists.push_back (*attrList);
104 }
105 const LArHVManager *manager = nullptr;
106 ATH_CHECK( detStore()->retrieve(manager) );
107
108 const EMBHVManager& hvManager_EMB=manager->getEMBHVManager();
109 const EMBHVManager::EMBHVData hvdata_EMB = hvManager_EMB.getData (**hvCabling, attrLists);
110
111 const EMBPresamplerHVManager& hvManager_EMBPS=manager->getEMBPresamplerHVManager();
112 const EMBPresamplerHVManager::EMBPresamplerHVData hvdata_EMBPS = hvManager_EMBPS.getData (**hvCabling, attrLists);
113
114 const EMECPresamplerHVManager& hvManager_EMECPS=manager->getEMECPresamplerHVManager();
115 const EMECPresamplerHVManager::EMECPresamplerHVData hvdata_EMECPS = hvManager_EMECPS.getData (**hvCabling, attrLists);
116
117 const EMECHVManager& hvManager_EMEC_OUT=manager->getEMECHVManager(EMECHVModule::OUTER);
118 const EMECHVManager::EMECHVData hvdata_EMEC_OUT = hvManager_EMEC_OUT.getData (**hvCabling, attrLists);
119
120 const EMECHVManager& hvManager_EMEC_IN=manager->getEMECHVManager(EMECHVModule::INNER);
121 const EMECHVManager::EMECHVData hvdata_EMEC_IN = hvManager_EMEC_IN.getData (**hvCabling, attrLists);
122
123 const HECHVManager& hvManager_HEC=manager->getHECHVManager();
124 const HECHVManager::HECHVData hvdata_HEC = hvManager_HEC.getData (**hvCabling, attrLists);
125
126 const FCALHVManager& hvManager_FCAL=manager->getFCALHVManager();
127 const FCALHVManager::FCALHVData hvdata_FCAL = hvManager_FCAL.getData (**hvCabling, attrLists);
128
129 if(m_hvonlId_map.empty()) {
130 SG::ReadCondHandle<LArOnOffIdMapping> cablingHdl{m_cablingKey, ctx};
131 const LArOnOffIdMapping* cabling{*cablingHdl};
132 if(!cabling) {
133 ATH_MSG_ERROR("Do not have mapping object " << m_cablingKey.key());
134 return StatusCode::FAILURE;
135 }
136
137 SG::ReadCondHandle<CaloDetDescrManager> caloMgrHandle{m_caloMgrKey, ctx};
138 ATH_CHECK(caloMgrHandle.isValid());
139 const CaloDetDescrManager* calodetdescrmgr=*caloMgrHandle;
140 std::vector<Identifier>::const_iterator cell_b=m_caloId->cell_begin();
141 std::vector<Identifier>::const_iterator cell_e=m_caloId->cell_end();
142 for(;cell_b!=cell_e; ++cell_b) {
143 if(m_caloId->is_tile(*cell_b)) continue;
144 HWIdentifier onlid = cabling->createSignalChannelID(*cell_b);
145 std::vector<int> hvlines = GetHVLines (hvdata_EMB,
146 hvdata_EMBPS,
147 hvdata_EMEC_OUT,
148 hvdata_EMEC_IN,
149 hvdata_EMECPS,
150 hvdata_HEC,
151 hvdata_FCAL,
152 *cell_b,
153 calodetdescrmgr);
154 for(const auto thisLine : hvlines ) {
155 m_hvonlId_map[thisLine].push_back(onlid);
156 }
157 }// end map filling
158 }
159
160 for (unsigned int iSide=EMBHVManager::beginSideIndex();iSide<EMBHVManager::endSideIndex();iSide++) { // loop over HV modules
161 for (unsigned int iPhi=hvManager_EMB.beginPhiIndex();iPhi<hvManager_EMB.endPhiIndex();iPhi++) {
162 for (unsigned int iSector=EMBHVManager::beginSectorIndex();iSector<EMBHVManager::endSectorIndex();iSector++) {
163 for (unsigned int iEta=hvManager_EMB.beginEtaIndex();iEta<hvManager_EMB.endEtaIndex();iEta++) { //0 to 7
164 const EMBHVModule& hvMod = hvManager_EMB.getHVModule(iSide,iEta,iPhi,iSector);
165 float eta=0.5*(hvMod.getEtaMin()+hvMod.getEtaMax());
166 for (unsigned int ielec=0;ielec<32;ielec++) { //use hvMod->getNumElectrodes when bug is corrected
167 const EMBHVElectrode& electrode = hvMod.getElectrode(ielec);
168 for (unsigned int iGap=0;iGap<2;iGap++) { // EMB : 2, TRY TO FIND AUTOMATICALLY NB OF GAPS
169 float hv = hvdata_EMB.voltage (electrode, iGap);
170 float current = hvdata_EMB.current (electrode, iGap);
171 float phi = electrode.getPhi();
172
173 m_bec=0;
175 m_eta=eta;
176 m_phi=phi;
177 m_electrode = ielec;
178 m_gap = iGap;
179 m_hv = hv;
181 m_hvline = hvdata_EMB.hvLineNo (electrode, iGap);
182
183 if(m_addcells) {
184 for(unsigned i=0; i<m_hvonlId_map[m_hvline].size(); ++i) {
185 m_barrelec=m_onlId->barrel_ec(m_hvonlId_map[m_hvline][i]);
186 m_posneg=m_onlId->pos_neg(m_hvonlId_map[m_hvline][i]);
187 m_FT=m_onlId->feedthrough(m_hvonlId_map[m_hvline][i]);
188 m_slot=m_onlId->slot(m_hvonlId_map[m_hvline][i]);
189 m_channel=m_onlId->channel(m_hvonlId_map[m_hvline][i]);
190 m_tree->Fill();
191 }
192 } else m_tree->Fill();
193
194 } //end for iGap
195 }
196 }
197 }
198 }
199 } //EMBHVManager
200
201 for (unsigned int iSide=EMBPresamplerHVManager::beginSideIndex();iSide<EMBPresamplerHVManager::endSideIndex();iSide++) { // loop over HV modules
202 for (unsigned int iPhi=hvManager_EMBPS.beginPhiIndex();iPhi<hvManager_EMBPS.endPhiIndex();iPhi++) {
203 for (unsigned int iEta=hvManager_EMBPS.beginEtaIndex();iEta<hvManager_EMBPS.endEtaIndex();iEta++) { //0 to 7
204 const EMBPresamplerHVModule& hvMod = hvManager_EMBPS.getHVModule(iSide,iEta,iPhi);
205 for (int iGap=0;iGap<2;iGap++) {
206 float hv = hvdata_EMBPS.voltage (hvMod, iGap);
207 float current = hvdata_EMBPS.current (hvMod, iGap);
208 float eta = 0.5*(hvMod.getEtaMin()+hvMod.getEtaMax());
209 float phi= 0.5*(hvMod.getPhiMin()+hvMod.getPhiMax());
210
211 m_bec=0;
213 m_eta=eta;
214 m_phi=phi;
215 m_electrode = 0;
216 m_gap = iGap;
217 m_hv = hv;
219 m_hvline = hvdata_EMBPS.hvLineNo (hvMod, iGap);
220
221 if(m_addcells) {
222 for(unsigned i=0; i<m_hvonlId_map[m_hvline].size(); ++i) {
223 m_barrelec=m_onlId->barrel_ec(m_hvonlId_map[m_hvline][i]);
224 m_posneg=m_onlId->pos_neg(m_hvonlId_map[m_hvline][i]);
225 m_FT=m_onlId->feedthrough(m_hvonlId_map[m_hvline][i]);
226 m_slot=m_onlId->slot(m_hvonlId_map[m_hvline][i]);
227 m_channel=m_onlId->channel(m_hvonlId_map[m_hvline][i]);
228 m_tree->Fill();
229 }
230 } else m_tree->Fill();
231
232 } //end for iGap
233 }
234 }
235 } //EMBPresampler
236
237 for (unsigned int iSide=EMECPresamplerHVManager::beginSideIndex();iSide<EMECPresamplerHVManager::endSideIndex();iSide++) { // loop over HV modules
238 for (unsigned int iPhi=hvManager_EMECPS.beginPhiIndex();iPhi<hvManager_EMECPS.endPhiIndex();iPhi++) {
239 const EMECPresamplerHVModule& hvMod = hvManager_EMECPS.getHVModule(iSide,iPhi);
240 for (int iGap=0;iGap<2;iGap++) {
241 float hv = hvdata_EMECPS.voltage (hvMod, iGap);
242 float current = hvdata_EMECPS.current (hvMod, iGap);
243 float eta = 0.5*(hvMod.getEtaMin()+hvMod.getEtaMax());
244 float phi=0.5*(hvMod.getPhiMin()+hvMod.getPhiMax());
245
246 m_bec=1;
248 m_eta=eta;
249 m_phi=phi;
250 m_electrode = 0;
251 m_gap = iGap;
252 m_hv = hv;
254 m_hvline = hvdata_EMECPS.hvLineNo (hvMod, iGap);
255
256 if(m_addcells) {
257 for(unsigned i=0; i<m_hvonlId_map[m_hvline].size(); ++i) {
258 m_barrelec=m_onlId->barrel_ec(m_hvonlId_map[m_hvline][i]);
259 m_posneg=m_onlId->pos_neg(m_hvonlId_map[m_hvline][i]);
260 m_FT=m_onlId->feedthrough(m_hvonlId_map[m_hvline][i]);
261 m_slot=m_onlId->slot(m_hvonlId_map[m_hvline][i]);
262 m_channel=m_onlId->channel(m_hvonlId_map[m_hvline][i]);
263 m_tree->Fill();
264 }
265 } else m_tree->Fill();
266
267 } //end for iGap
268 }
269 }//EMECPresampler
270
271
272
273 for (unsigned int iSide=EMECHVManager::beginSideIndex();iSide<EMECHVManager::endSideIndex();iSide++) { // loop over HV modules
274 for (unsigned int iPhi=hvManager_EMEC_OUT.beginPhiIndex();iPhi<hvManager_EMEC_OUT.endPhiIndex();iPhi++) {
275 for (unsigned int iSector=hvManager_EMEC_OUT.beginSectorIndex();iSector<hvManager_EMEC_OUT.endSectorIndex();iSector++) {
276 for (unsigned int iEta=hvManager_EMEC_OUT.beginEtaIndex();iEta<hvManager_EMEC_OUT.endEtaIndex();iEta++) {
277 const EMECHVModule& hvMod=hvManager_EMEC_OUT.getHVModule(iSide,iEta,iPhi,iSector);
278 float eta=0.5*(hvMod.getEtaMin()+hvMod.getEtaMax());
279 for (unsigned int ielec=0;ielec<hvMod.getNumElectrodes();ielec++) { //use hvMod.getNumElectrodes when bug is corrected
280 const EMECHVElectrode& electrode = hvMod.getElectrode(ielec);
281 for (unsigned int iGap=0;iGap<2;iGap++) { //EMEC : 2 gaps, TRY TO FIND AUTOMATICALLY NB OF GAPS
282 float hv = hvdata_EMEC_OUT.voltage (electrode, iGap);
283 float current = hvdata_EMEC_OUT.current (electrode, iGap);
284 float phi = electrode.getPhi();
285
286 m_bec=1;
288 m_eta=eta;
289 m_phi=phi;
290 m_electrode = ielec;
291 m_gap = iGap;
292 m_hv = hv;
294 m_hvline = hvdata_EMEC_OUT.hvLineNo (electrode, iGap);
295
296 if(m_addcells) {
297 for(unsigned i=0; i<m_hvonlId_map[m_hvline].size(); ++i) {
298 m_barrelec=m_onlId->barrel_ec(m_hvonlId_map[m_hvline][i]);
299 m_posneg=m_onlId->pos_neg(m_hvonlId_map[m_hvline][i]);
300 m_FT=m_onlId->feedthrough(m_hvonlId_map[m_hvline][i]);
301 m_slot=m_onlId->slot(m_hvonlId_map[m_hvline][i]);
302 m_channel=m_onlId->channel(m_hvonlId_map[m_hvline][i]);
303 m_tree->Fill();
304 }
305 } else m_tree->Fill();
306
307 } //end for iGap
308 }
309 }
310 }
311 }
312 }//EMEC Outer
313
314 for (unsigned int iSide=EMECHVManager::beginSideIndex();iSide<EMECHVManager::endSideIndex();iSide++) { // loop over HV modules
315 for (unsigned int iPhi=hvManager_EMEC_IN.beginPhiIndex();iPhi<hvManager_EMEC_IN.endPhiIndex();iPhi++) {
316 for (unsigned int iSector=hvManager_EMEC_IN.beginSectorIndex();iSector<hvManager_EMEC_IN.endSectorIndex();iSector++) {
317 for (unsigned int iEta=hvManager_EMEC_IN.beginEtaIndex();iEta<hvManager_EMEC_IN.endEtaIndex();iEta++) {
318 const EMECHVModule& hvMod=hvManager_EMEC_IN.getHVModule(iSide,iEta,iPhi,iSector);
319 float eta=0.5*(hvMod.getEtaMin()+hvMod.getEtaMax());
320 for (unsigned int ielec=0;ielec<hvMod.getNumElectrodes();ielec++) { //use hvMod.getNumElectrodes when bug is corrected
321 const EMECHVElectrode& electrode = hvMod.getElectrode(ielec);
322 for (unsigned int iGap=0;iGap<2;iGap++) { //EMEC : 2 gaps, TRY TO FIND AUTOMATICALLY NB OF GAPS
323 float hv = hvdata_EMEC_IN.voltage (electrode, iGap);
324 float current = hvdata_EMEC_IN.current (electrode, iGap);
325 float phi = electrode.getPhi();
326
327 m_bec=2;
329 m_eta=eta;
330 m_phi=phi;
331 m_electrode = ielec;
332 m_gap = iGap;
333 m_hv = hv;
335 m_hvline = hvdata_EMEC_IN.hvLineNo (electrode, iGap);
336
337 if(m_addcells) {
338 for(unsigned i=0; i<m_hvonlId_map[m_hvline].size(); ++i) {
339 m_barrelec=m_onlId->barrel_ec(m_hvonlId_map[m_hvline][i]);
340 m_posneg=m_onlId->pos_neg(m_hvonlId_map[m_hvline][i]);
341 m_FT=m_onlId->feedthrough(m_hvonlId_map[m_hvline][i]);
342 m_slot=m_onlId->slot(m_hvonlId_map[m_hvline][i]);
343 m_channel=m_onlId->channel(m_hvonlId_map[m_hvline][i]);
344 m_tree->Fill();
345 }
346 } else m_tree->Fill();
347
348 } //end for iGap
349 }
350 }
351 }
352 }
353 }// EMEC Inner
354
355 float etamax_layer[4]={3.3,3.1,3.1,3.3};
356 float etamin_layer[4]={1.5,1.5,1.6,1.7};
357
358
359 for (unsigned int iSide=HECHVManager::beginSideIndex();iSide<HECHVManager::endSideIndex();iSide++) { // loop over HV modules
360 for (unsigned int iPhi=HECHVManager::beginPhiIndex();iPhi<HECHVManager::endPhiIndex();iPhi++) {
361 for (unsigned int iSampling=HECHVManager::beginSamplingIndex();iSampling<HECHVManager::endSamplingIndex();iSampling++) {
362 float eta_min,eta_max;
363 if (iSide==1) {
364 eta_min = etamin_layer[iSampling];
365 eta_max = etamax_layer[iSampling];
366 } else {
367 eta_min = -1.*etamax_layer[iSampling];
368 eta_max = -1.*etamin_layer[iSampling];
369 }
370 float eta = 0.5*(eta_min+eta_max);
371 const HECHVModule& hvMod = hvManager_HEC.getHVModule(iSide,iPhi,iSampling);
372 float phi = 0.5*(hvMod.getPhiMin()+hvMod.getPhiMax());
373
374 for (unsigned int iGap=0;iGap<HECHVModule::getNumSubgaps();iGap++) {//HEC : 4 gaps, TRY TO FIND AUTOMATICALLY NB OF GAPS
375 const HECHVSubgap& subgap=hvMod.getSubgap(iGap);
376 float hv = hvdata_HEC.voltage (subgap);
377 float current = hvdata_HEC.current (subgap);
378 m_bec = 10+iSampling;
380 m_eta=eta;
381 m_phi=phi;
382 m_electrode = 0;
383 m_gap = iGap;
384 m_hv=hv;
386 m_hvline = hvdata_HEC.hvLineNo (subgap);
387 if(m_addcells) {
388 for(unsigned i=0; i<m_hvonlId_map[m_hvline].size(); ++i) {
389 m_barrelec=m_onlId->barrel_ec(m_hvonlId_map[m_hvline][i]);
390 m_posneg=m_onlId->pos_neg(m_hvonlId_map[m_hvline][i]);
391 m_FT=m_onlId->feedthrough(m_hvonlId_map[m_hvline][i]);
392 m_slot=m_onlId->slot(m_hvonlId_map[m_hvline][i]);
393 m_channel=m_onlId->channel(m_hvonlId_map[m_hvline][i]);
394 m_tree->Fill();
395 }
396 } else m_tree->Fill();
397 }// end for iGap
398 }
399 }
400 }//HECHVManager
401
402 for (unsigned int iSide=FCALHVManager::beginSideIndex();iSide<FCALHVManager::endSideIndex();iSide++) { // loop over HV modules
403 float eta_min=3.1,eta_max=4.9;
404 if (iSide==0) { eta_min=-4.9; eta_max=-3.1; }
405
406 float eta = 0.5*(eta_min+eta_max);
407 for (unsigned int iSampling=FCALHVManager::beginSamplingIndex();iSampling<FCALHVManager::endSamplingIndex();iSampling++) {
408 for (unsigned int iSector=FCALHVManager::beginSectorIndex(iSampling);iSector<FCALHVManager::endSectorIndex(iSampling);iSector++) {
409
410 const FCALHVModule& hvMod = hvManager_FCAL.getHVModule(iSide,iSector,iSampling);
411
412 float dphi=CaloPhiRange::twopi()/16;
413 if (iSampling==1) dphi=CaloPhiRange::twopi()/8.;
414 if (iSampling==2) dphi=CaloPhiRange::twopi()/4.;
415 float phi_min = ((float)(iSector))*dphi;
416 phi_min = CaloPhiRange::fix(phi_min);
417 float phi_max = CaloPhiRange::fix(dphi+phi_min);
418 float phi = 0.5*(phi_min+phi_max);
419
420 for (unsigned int iLine=0;iLine<FCALHVModule::getNumHVLines();iLine++) {
421 const FCALHVLine& hvline = hvMod.getHVLine(iLine);
422 float hv = hvdata_FCAL.voltage (hvline);
423 float current = hvdata_FCAL.current (hvline);
424 m_bec = 14+iSampling;
426 m_eta=eta;
427 m_phi=phi;
428 m_electrode = iSector;
429 m_gap = iLine;
430 m_hv=hv;
432 m_hvline = hvdata_FCAL.hvLineNo (hvline);
433 if(m_addcells) {
434 for(unsigned i=0; i<m_hvonlId_map[m_hvline].size(); ++i) {
435 m_barrelec=m_onlId->barrel_ec(m_hvonlId_map[m_hvline][i]);
436 m_posneg=m_onlId->pos_neg(m_hvonlId_map[m_hvline][i]);
437 m_FT=m_onlId->feedthrough(m_hvonlId_map[m_hvline][i]);
438 m_slot=m_onlId->slot(m_hvonlId_map[m_hvline][i]);
439 m_channel=m_onlId->channel(m_hvonlId_map[m_hvline][i]);
440 m_tree->Fill();
441 }
442 } else m_tree->Fill();
443 }
444 } //iSector
445 }//iSampling
446 }//iSide
447
448 return StatusCode::SUCCESS;
449 }
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_ERROR(x,...)
id_iterator cell_begin() const
begin iterator over full set of Identifiers (LAr + Tiles)
id_iterator cell_end() const
end iterator over full set of Identifiers (LAr + Tiles)
bool is_tile(const Identifier id) const
test if the id belongs to the Tiles
static double twopi()
static double fix(double phi)
double getPhi() const
int hvLineNo(const EMBHVElectrode &electrode, const int &iGap) const
double voltage(const EMBHVElectrode &electrode, const int &iGap) const
double current(const EMBHVElectrode &electrode, const int &iGap) const
This class provides direct access to information on the HV electrodes within the barrels.
unsigned int beginPhiIndex() const
unsigned int endEtaIndex() const
static unsigned int endSectorIndex()
unsigned int beginEtaIndex() const
static unsigned int beginSectorIndex()
const EMBHVModule & getHVModule(unsigned int iSide, unsigned int iEta, unsigned int iPhi, unsigned int iSector) const
EMBHVData getData(const LArHVIdMapping &hvIdMapping, const std::vector< const CondAttrListCollection * > &attrLists) const
unsigned int endPhiIndex() const
static unsigned int beginSideIndex()
static unsigned int endSideIndex()
const EMBHVElectrode & getElectrode(unsigned int iElectrode) const
double getEtaMin() const
double getEtaMax() const
double voltage(const EMBPresamplerHVModule &module, const int &iGap) const
double current(const EMBPresamplerHVModule &module, const int &iGap) const
int hvLineNo(const EMBPresamplerHVModule &module, const int &iGap) const
This class provides direct access to information on the HV electrodes within the barrels.
const EMBPresamplerHVModule & getHVModule(unsigned int iSide, unsigned int iEta, unsigned int iPhi) const
EMBPresamplerHVData getData(const LArHVIdMapping &hvIdMapping, const std::vector< const CondAttrListCollection * > &attrLists) const
static unsigned int beginSideIndex()
unsigned int beginPhiIndex() const
static unsigned int endSideIndex()
unsigned int beginEtaIndex() const
double getPhi() const
double current(const EMECHVElectrode &electrode, const int &iGap) const
double voltage(const EMECHVElectrode &electrode, const int &iGap) const
int hvLineNo(const EMECHVElectrode &electrode, const int &iGap) const
This class provides direct access to information on the HV electrodes within the EMEC.
unsigned int beginEtaIndex() const
const EMECHVModule & getHVModule(unsigned int iSide, unsigned int iEta, unsigned int iPhi, unsigned int iSector) const
unsigned int beginSectorIndex() const
unsigned int endPhiIndex() const
static unsigned int beginSideIndex()
static unsigned int endSideIndex()
unsigned int endEtaIndex() const
unsigned int endSectorIndex() const
unsigned int beginPhiIndex() const
EMECHVData getData(const LArHVIdMapping &hvIdMapping, const std::vector< const CondAttrListCollection * > &attrLists) const
double getEtaMax() const
const EMECHVElectrode & getElectrode(unsigned int iElectrode) const
unsigned int getNumElectrodes() const
double getEtaMin() const
double voltage(const EMECPresamplerHVModule &module, const int &iGap) const
double current(const EMECPresamplerHVModule &module, const int &iGap) const
int hvLineNo(const EMECPresamplerHVModule &module, const int &iGap) const
This class provides direct access to information on the HV electrodes within the EMEC.
EMECPresamplerHVData getData(const LArHVIdMapping &hvIdMapping, const std::vector< const CondAttrListCollection * > &attrLists) const
const EMECPresamplerHVModule & getHVModule(unsigned int iSide, unsigned int iPhi) const
static unsigned int beginSideIndex()
double current(const FCALHVLine &line) const
double voltage(const FCALHVLine &line) const
int hvLineNo(const FCALHVLine &line) const
This class provides direct access to information on the HV electrodes within the barrels.
static unsigned int beginSideIndex()
static unsigned int endSamplingIndex()
static unsigned int endSideIndex()
static unsigned int beginSectorIndex(unsigned int iSampling)
static unsigned int beginSamplingIndex()
const FCALHVModule & getHVModule(unsigned int iSide, unsigned int iSector, unsigned int iSampling) const
static unsigned int endSectorIndex(unsigned int iSampling)
FCALHVData getData(const LArHVIdMapping &hvIdMapping, const std::vector< const CondAttrListCollection * > &attrLists) const
const FCALHVLine & getHVLine(unsigned int iLine) const
static unsigned int getNumHVLines()
double current(const HECHVSubgap &subgap) const
int hvLineNo(const HECHVSubgap &subgap) const
double voltage(const HECHVSubgap &subgap) const
This class provides direct access to information on the HV electrodes within the barrels.
static unsigned int beginPhiIndex()
static unsigned int endSamplingIndex()
const HECHVModule & getHVModule(unsigned int iSide, unsigned int iPhi, unsigned int iSampling) const
static unsigned int endSideIndex()
HECHVData getData(const LArHVIdMapping &hvIdMapping, const std::vector< const CondAttrListCollection * > &attrLists) const
static unsigned int beginSideIndex()
static unsigned int beginSamplingIndex()
static unsigned int endPhiIndex()
const HECHVSubgap & getSubgap(unsigned int iElectrode) const
double getPhiMin() const
static unsigned int getNumSubgaps()
double getPhiMax() const
std::vector< int > GetHVLines(const EMBHVManager::EMBHVData &hvdata_EMB, const EMBPresamplerHVManager::EMBPresamplerHVData &hvdata_EMBPS, const EMECHVManager::EMECHVData &hvdata_EMEC_OUT, const EMECHVManager::EMECHVData &hvdata_EMEC_IN, const EMECPresamplerHVManager::EMECPresamplerHVData &hvdata_EMECPS, const HECHVManager::HECHVData &hvdata_HEC, const FCALHVManager::FCALHVData &hvdata_FCAL, const Identifier &id, const CaloDetDescrManager *calodetdescrmgr)
TTree * m_tree
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
std::map< int, std::vector< HWIdentifier > > m_hvonlId_map
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
const CaloCell_ID * m_caloId
const LArOnlineID * m_onlId
This class provides access to the High Voltage throughout the LAr.
int feedthrough(const HWIdentifier id) const
Return the feedthrough of a hardware cell identifier : feedthrough = [0,31] Barrel - A/C side or H/...
int slot(const HWIdentifier id) const
Return the slot number of a hardware cell identifier: slot = [1,15] Slot-ID in top part of the crat...
int barrel_ec(const HWIdentifier id) const
Return the position barrel or endcap of a hardware cell identifier: barrel_ec = [0,...
int channel(const HWIdentifier id) const
Return the channel number of a hardware cell identifier channel = [0,127] in all FEB.
int pos_neg(const HWIdentifier id) const
Return the side of a hardware cell identifier pos_neg = [0,1] positive-side or negative-side Barrel...
const std::string & key() const
Return the StoreGate ID for the referenced object.
@ iPhi
Definition ParamDefs.h:47

◆ 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 & AthCommonAlgorithm< 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 89 of file AthCommonAlgorithm.cxx.

54{
55 // If we didn't find any symlinks to add, just return the collection
56 // from the base class. Otherwise, return the extended collection.
57 if (!m_extendedExtraObjects.empty()) {
59 }
61}
Common base class for algorithms.

◆ filterPassed()

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

Get filter decision:

Definition at line 93 of file AthCommonAlgorithm.h.

93 {
94 return execState( ctx ).filterPassed();
95 }
virtual bool filterPassed(const EventContext &ctx) const
Get filter decision:

◆ GetHVLines()

std::vector< int > LArHV2Ntuple::GetHVLines ( const EMBHVManager::EMBHVData & hvdata_EMB,
const EMBPresamplerHVManager::EMBPresamplerHVData & hvdata_EMBPS,
const EMECHVManager::EMECHVData & hvdata_EMEC_OUT,
const EMECHVManager::EMECHVData & hvdata_EMEC_IN,
const EMECPresamplerHVManager::EMECPresamplerHVData & hvdata_EMECPS,
const HECHVManager::HECHVData & hvdata_HEC,
const FCALHVManager::FCALHVData & hvdata_FCAL,
const Identifier & id,
const CaloDetDescrManager * calodetdescrmgr )
private

Definition at line 451 of file LArHV2Ntuple.cxx.

459 {
460
461 std::set<int> hv;
462
463 // LAr EMB
464 if (m_caloId->is_em(id) && m_caloId->sampling(id)>0) {
465 if (abs(m_caloId->em_idHelper()->barrel_ec(id))==1) {
466 const EMBDetectorElement* embElement = dynamic_cast<const EMBDetectorElement*>(calodetdescrmgr->get_element(id));
467 if (!embElement) std::abort();
468 const EMBCellConstLink cell = embElement->getEMBCell();
469 unsigned int nelec = cell->getNumElectrodes();
470 for (unsigned int i=0;i<nelec;i++) {
471 const EMBHVElectrode& electrode = cell->getElectrode(i);
472 for (unsigned int igap=0;igap<2;igap++) hv.insert(hvdata_EMB.hvLineNo(electrode, igap));
473 }
474 } else { // LAr EMEC
475 const EMECDetectorElement* emecElement = dynamic_cast<const EMECDetectorElement*>(calodetdescrmgr->get_element(id));
476 if (!emecElement) std::abort();
477 const EMECCellConstLink cell = emecElement->getEMECCell();
478 unsigned int nelec = cell->getNumElectrodes();
479 for (unsigned int i=0;i<nelec;i++) {
480 const EMECHVElectrode& electrode = cell->getElectrode(i);
481 const EMECHVModule& module = electrode.getModule();
482 const EMECHVManager::EMECHVData& hvdata =
483 module.getWheelIndex() == EMECHVModule::INNER ?
484 hvdata_EMEC_IN :
485 hvdata_EMEC_OUT;
486 for (unsigned int igap=0;igap<2;igap++) hv.insert(hvdata.hvLineNo (electrode, igap));
487 }
488 }
489 } else if (m_caloId->is_hec(id)) { // LAr HEC
490 const HECDetectorElement* hecElement = dynamic_cast<const HECDetectorElement*>(calodetdescrmgr->get_element(id));
491 if (!hecElement) std::abort();
492 const HECCellConstLink cell = hecElement->getHECCell();
493 unsigned int nsubgaps = cell->getNumSubgaps();
494 for (unsigned int igap=0;igap<nsubgaps;igap++) {
495 const HECHVSubgap& subgap = cell->getSubgap(igap);
496 hv.insert(hvdata_HEC.hvLineNo (subgap));
497 }
498 } else if (m_caloId->is_fcal(id)) { // LAr FCAL
499 const FCALDetectorElement* fcalElement = dynamic_cast<const FCALDetectorElement*>(calodetdescrmgr->get_element(id));
500 if (!fcalElement) std::abort();
501 const FCALTile* tile = fcalElement->getFCALTile();
502 unsigned int nlines = FCALTile::getNumHVLines();
503 for (unsigned int i=0;i<nlines;i++) {
504 const FCALHVLine* line = tile->getHVLine(i);
505 if (line) hv.insert(hvdata_FCAL.hvLineNo (*line));
506 }
507 } else if (m_caloId->is_em(id) && m_caloId->sampling(id)==0) { // Presamplers
508 if (abs(m_caloId->em_idHelper()->barrel_ec(id))==1) {
509 const EMBDetectorElement* embElement = dynamic_cast<const EMBDetectorElement*>(calodetdescrmgr->get_element(id));
510 if (!embElement) std::abort();
511 const EMBCellConstLink cell = embElement->getEMBCell();
512 const EMBPresamplerHVModule& hvmodule = cell->getPresamplerHVModule();
513 for (unsigned int igap=0;igap<2;igap++) hv.insert(hvdata_EMBPS.hvLineNo (hvmodule, igap));
514 } else {
515 const EMECDetectorElement* emecElement = dynamic_cast<const EMECDetectorElement*>(calodetdescrmgr->get_element(id));
516 if (!emecElement) std::abort();
517 const EMECCellConstLink cell = emecElement->getEMECCell();
518 const EMECPresamplerHVModule& hvmodule = cell->getPresamplerHVModule ();
519 for (unsigned int igap=0;igap<2;igap++) hv.insert(hvdata_EMECPS.hvLineNo (hvmodule, igap));
520 }
521 }
522
523 std::vector<int> hvlines;
524 for (std::set<int>::iterator i=hv.begin();i!=hv.end();++i) hvlines.push_back(*i);
525 return hvlines;
526 }
bool is_fcal(const Identifier id) const
test if the id belongs to the FCAL - true also for MiniFCAL
int sampling(const Identifier id) const
LAr field values (NOT_VALID == invalid request).
bool is_hec(const Identifier id) const
test if the id belongs to the HEC
bool is_em(const Identifier id) const
test if the id belongs to LArEM
const LArEM_ID * em_idHelper() const
access to EM idHelper
Definition CaloCell_ID.h:63
const CaloDetDescrElement * get_element(const Identifier &cellId) const
get element by its identifier
LAr EMB Detector Element.
EMBCellConstLink getEMBCell() const
EMB Cell description from LArReadoutGeometry.
EMECCellConstLink getEMECCell() const
EMEC Cell description from LArReadoutGeometry.
const EMECHVModule & getModule() const
const FCALTile * getFCALTile() const
FCAL Tile description from LArReadoutGeometry.
static unsigned int getNumHVLines()
Get num hvlines.
Definition FCALTile.cxx:81
HECCellConstLink getHECCell() const
HEC Cell description from LArReadoutGeometry.
int barrel_ec(const Identifier id) const
return barrel_ec according to :

◆ initialize()

StatusCode LArHV2Ntuple::initialize ( )
overridevirtual

standard Athena-Algorithm method

Definition at line 57 of file LArHV2Ntuple.cxx.

58 {
59 ATH_CHECK( m_thistSvc.retrieve() );
60
61 ATH_CHECK( m_cablingKey.initialize() );
62 ATH_CHECK( m_caloMgrKey.initialize() );
63 ATH_CHECK( detStore()->retrieve(m_caloId, "CaloCell_ID") );
64
65 m_tree = new TTree("mytree","Calo Noise ntuple");
66 m_tree->Branch("bec",&m_bec,"bec/I");
67 m_tree->Branch("isPresampler",&m_isPresampler,"isPresampler/I");
68 m_tree->Branch("eta",&m_eta,"eta/F");
69 m_tree->Branch("phi",&m_phi,"phi/F");
70 m_tree->Branch("HVline",&m_hvline,"HVline/I");
71 m_tree->Branch("electrode",&m_electrode,"electrode/I");
72 m_tree->Branch("gap",&m_gap,"gap/I");
73 m_tree->Branch("hv",&m_hv,"hv/F");
74 m_tree->Branch("current",&m_current,"current/F");
75 if(m_addcells) {
76 m_tree->Branch("barrel_ec",&m_barrelec,"barrel_ec/I");
77 m_tree->Branch("side",&m_posneg,"side/I");
78 m_tree->Branch("FT",&m_FT,"FT/I");
79 m_tree->Branch("slot",&m_slot,"slot/I");
80 m_tree->Branch("channel",&m_channel,"channel/I");
81 ATH_CHECK( detStore()->retrieve(m_onlId, "LArOnlineID") );
82 }
83
84 ATH_CHECK( m_hvCablingKey.initialize() );
85 ATH_CHECK( m_DCSFolderKeys.initialize() );
86
87 ATH_CHECK( m_thistSvc->regTree("/file1/hv/mytree",m_tree) );
88 return StatusCode::SUCCESS;
89
90 }
const ServiceHandle< StoreGateSvc > & detStore() const
StatusCode initialize(bool used=true)

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

virtual bool AthCommonAlgorithm< Gaudi::Algorithm >::isClonable ( ) const
inlineoverridevirtualinherited

Specify if the algorithm is clonable.

Only relevant for non-reentrant algorithms. Actual number of clones needs to be set via the "Cardinality" property.

Reimplemented in AFP_DigiTop, AlgB, AlgT, BCM_Digitization, CscDigitBuilder, CscDigitToCscRDO, G4AtlasAlg, G4RunAlg, HGTD_Digitization, HiveAlgBase, InDet::GNNSeedingTrackMaker, InDet::SCT_Clusterization, InDet::SiSPGNNTrackMaker, InDet::SiSPSeededTrackFinder, InDet::SiTrackerSpacePointFinder, ISF::SimKernelMT, ITk::StripDigitization, ITkPixelCablingAlg, ITkStripCablingAlg, LArHitEMapMaker, LArTTL1Maker, LUCID_DigiTop, LVL1::L1TopoSimulation, MergeCalibHits, MergeGenericMuonSimHitColl, MergeHijingPars, MergeMcEventCollection, MergeTrackRecordCollection, MergeTruthJets, MergeTruthParticles, MuonDigitizer, PileUpMTAlg, PixelDigitization, RoIBResultToxAOD, SCT_ByteStreamErrorsTestAlg, SCT_CablingCondAlgFromCoraCool, SCT_CablingCondAlgFromText, SCT_ConditionsParameterTestAlg, SCT_ConditionsSummaryTestAlg, SCT_ConfigurationConditionsTestAlg, SCT_Digitization, SCT_FlaggedConditionTestAlg, SCT_LinkMaskingTestAlg, SCT_MajorityConditionsTestAlg, SCT_ModuleVetoTestAlg, SCT_MonitorConditionsTestAlg, SCT_PrepDataToxAOD, SCT_RawDataToxAOD, SCT_ReadCalibChipDataTestAlg, SCT_ReadCalibDataTestAlg, SCT_RODVetoTestAlg, SCT_SensorsTestAlg, SCT_SiliconConditionsTestAlg, SCT_StripVetoTestAlg, SCT_TdaqEnabledTestAlg, SCT_TestCablingAlg, SCTEventFlagWriter, SCTRawDataProvider, SCTSiLorentzAngleTestAlg, SCTSiPropertiesTestAlg, SGInputLoader, Simulation::BeamEffectsAlg, TileHitVecToCnt, TileMuonFitter, TilePulseForTileMuonReceiver, TileRawChannelMaker, TRTDigitization, and ZDC_DigiTop.

Definition at line 68 of file AthCommonAlgorithm.h.

68 {
69 return true;
70 }

◆ isReEntrant()

virtual bool AthAlgorithm::isReEntrant ( ) const
inlinefinaloverrideprotectedvirtualinherited

Legacy algorithms are not thread-safe.

Definition at line 47 of file AthAlgorithm.h.

47{ 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 368 of file AthCommonDataStore.h.

369 {
370 h.renounce();
372 }
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 352 of file AthCommonDataStore.h.

352 {
354 }

◆ setFilterPassed()

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

Set filter decision:

Definition at line 99 of file AthCommonAlgorithm.h.

99 {
101 }
virtual void setFilterPassed(bool state, const EventContext &ctx) const
Set filter decision:

◆ sysExecute()

StatusCode AthCommonAlgorithm< 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.

Reimplemented in AthAnalysisAlgorithm.

Definition at line 80 of file AthCommonAlgorithm.cxx.

41{
42 return BaseAlg::sysExecute (ctx);
43}

◆ sysInitialize()

StatusCode AthCommonAlgorithm< 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 AthAnalysisAlgorithm, AthHistogramAlgorithm, HypoBase, InputMakerBase, and PyAthena::Alg.

Definition at line 60 of file AthCommonAlgorithm.cxx.

71 {
73
74 if (sc.isFailure()) {
75 return sc;
76 }
77
78 ServiceHandle<ICondSvc> cs("CondSvc",name());
79 for (auto h : outputHandles()) {
80 if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
81 // do this inside the loop so we don't create the CondSvc until needed
82 if ( cs.retrieve().isFailure() ) {
83 ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
85 }
86 if (cs->regHandle(this,*h).isFailure()) {
88 ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
89 << " with CondSvc");
90 }
91 }
92 }
93 return sc;
94}
#define ATH_MSG_WARNING(x,...)
virtual StatusCode sysInitialize() override
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 298 of file AthCommonDataStore.h.

298 {
299 for (auto &a : m_vhka) {
301 for (auto k : keys) {
302 k->setOwner(this);
303 }
304 }
305 }

Member Data Documentation

◆ args

LArHV2Ntuple.args = parser.parse_args()

Definition at line 19 of file LArHV2Ntuple.py.

◆ AtlasVersion

LArHV2Ntuple.AtlasVersion

Definition at line 30 of file LArHV2Ntuple.py.

◆ cfg

LArHV2Ntuple.cfg = MainServicesCfg(flags)

Definition at line 58 of file LArHV2Ntuple.py.

◆ DatabaseInstance

LArHV2Ntuple.DatabaseInstance

Definition at line 42 of file LArHV2Ntuple.py.

◆ default

LArHV2Ntuple.default

Definition at line 14 of file LArHV2Ntuple.py.

◆ dest

LArHV2Ntuple.dest

Definition at line 14 of file LArHV2Ntuple.py.

◆ doAlign

LArHV2Ntuple.doAlign

Definition at line 36 of file LArHV2Ntuple.py.

◆ Files

LArHV2Ntuple.Files

Definition at line 32 of file LArHV2Ntuple.py.

◆ flags

LArHV2Ntuple.flags = initConfigFlags()

Definition at line 26 of file LArHV2Ntuple.py.

◆ GlobalTag

LArHV2Ntuple.GlobalTag

Definition at line 48 of file LArHV2Ntuple.py.

◆ help

LArHV2Ntuple.help

Definition at line 14 of file LArHV2Ntuple.py.

◆ isMC

LArHV2Ntuple.isMC

Definition at line 34 of file LArHV2Ntuple.py.

◆ m_addcells

bool LArHV2Ntuple::m_addcells
private

Definition at line 70 of file LArHV2Ntuple.h.

◆ m_barrelec

int LArHV2Ntuple::m_barrelec
private

Definition at line 83 of file LArHV2Ntuple.h.

◆ m_bec

int LArHV2Ntuple::m_bec
private

Definition at line 73 of file LArHV2Ntuple.h.

◆ m_cablingKey

SG::ReadCondHandleKey<LArOnOffIdMapping> LArHV2Ntuple::m_cablingKey {this, "OnOffMap", "LArOnOffIdMap", "SG key for mapping object"}
private

Definition at line 53 of file LArHV2Ntuple.h.

53{this, "OnOffMap", "LArOnOffIdMap", "SG key for mapping object"};

◆ m_caloId

const CaloCell_ID* LArHV2Ntuple::m_caloId
private

Definition at line 90 of file LArHV2Ntuple.h.

◆ m_caloMgrKey

SG::ReadCondHandleKey<CaloDetDescrManager> LArHV2Ntuple::m_caloMgrKey
private
Initial value:
{ this
, "CaloDetDescrManager"
, "CaloDetDescrManager"
, "SG Key for CaloDetDescrManager in the Condition Store" }

Definition at line 58 of file LArHV2Ntuple.h.

58 { this
59 , "CaloDetDescrManager"
60 , "CaloDetDescrManager"
61 , "SG Key for CaloDetDescrManager in the Condition Store" };

◆ m_channel

int LArHV2Ntuple::m_channel
private

Definition at line 87 of file LArHV2Ntuple.h.

◆ m_current

float LArHV2Ntuple::m_current
private

Definition at line 81 of file LArHV2Ntuple.h.

◆ m_DCSFolderKeys

SG::ReadCondHandleKeyArray<CondAttrListCollection> LArHV2Ntuple::m_DCSFolderKeys { this, "DCSFolderNames", {"/LAR/DCS/HV/BARREl/I16", "/LAR/DCS/HV/BARREL/I8"}, "DCS folders with HV values"}
private

Definition at line 56 of file LArHV2Ntuple.h.

57{ this, "DCSFolderNames", {"/LAR/DCS/HV/BARREl/I16", "/LAR/DCS/HV/BARREL/I8"}, "DCS folders with HV values"};

◆ m_detStore

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

Pointer to StoreGate (detector store by default).

Definition at line 381 of file AthCommonDataStore.h.

◆ m_electrode

int LArHV2Ntuple::m_electrode
private

Definition at line 77 of file LArHV2Ntuple.h.

◆ m_eta

float LArHV2Ntuple::m_eta
private

Definition at line 75 of file LArHV2Ntuple.h.

◆ m_evtStore

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

Pointer to StoreGate (event store by default).

Definition at line 378 of file AthCommonDataStore.h.

◆ m_extendedExtraObjects

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

Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.

Empty if no symlinks were found.

Definition at line 108 of file AthCommonAlgorithm.h.

◆ m_FT

int LArHV2Ntuple::m_FT
private

Definition at line 85 of file LArHV2Ntuple.h.

◆ m_gap

int LArHV2Ntuple::m_gap
private

Definition at line 78 of file LArHV2Ntuple.h.

◆ m_hv

float LArHV2Ntuple::m_hv
private

Definition at line 80 of file LArHV2Ntuple.h.

◆ m_hvCablingKey

SG::ReadCondHandleKey<LArHVIdMapping> LArHV2Ntuple::m_hvCablingKey {this, "LArHVIdMapping", "LArHVIdMap", "SG key for HV ID mapping"}
private

Definition at line 54 of file LArHV2Ntuple.h.

55{this, "LArHVIdMapping", "LArHVIdMap", "SG key for HV ID mapping"};

◆ m_hvline

int LArHV2Ntuple::m_hvline
private

Definition at line 79 of file LArHV2Ntuple.h.

◆ m_hvonlId_map

std::map<int, std::vector<HWIdentifier> > LArHV2Ntuple::m_hvonlId_map
private

Definition at line 92 of file LArHV2Ntuple.h.

◆ m_isPresampler

int LArHV2Ntuple::m_isPresampler
private

Definition at line 74 of file LArHV2Ntuple.h.

◆ m_onlId

const LArOnlineID* LArHV2Ntuple::m_onlId
private

Definition at line 91 of file LArHV2Ntuple.h.

◆ m_phi

float LArHV2Ntuple::m_phi
private

Definition at line 76 of file LArHV2Ntuple.h.

◆ m_posneg

int LArHV2Ntuple::m_posneg
private

Definition at line 84 of file LArHV2Ntuple.h.

◆ m_slot

int LArHV2Ntuple::m_slot
private

Definition at line 86 of file LArHV2Ntuple.h.

◆ m_thistSvc

ServiceHandle<ITHistSvc> LArHV2Ntuple::m_thistSvc {this,"THistSvc","THistSvc"}
private

Definition at line 67 of file LArHV2Ntuple.h.

67{this,"THistSvc","THistSvc"};

◆ m_tree

TTree* LArHV2Ntuple::m_tree
private

Definition at line 68 of file LArHV2Ntuple.h.

◆ m_varHandleArraysDeclared

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

Definition at line 387 of file AthCommonDataStore.h.

◆ m_vhka

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

Definition at line 386 of file AthCommonDataStore.h.

◆ None

LArHV2Ntuple.None

Definition at line 16 of file LArHV2Ntuple.py.

◆ parser

LArHV2Ntuple.parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter)

Definition at line 13 of file LArHV2Ntuple.py.

◆ rootfile

LArHV2Ntuple.rootfile = args.out

Definition at line 77 of file LArHV2Ntuple.py.

◆ Run

LArHV2Ntuple.Run

Definition at line 41 of file LArHV2Ntuple.py.

◆ RunNumbers

LArHV2Ntuple.RunNumbers

Definition at line 28 of file LArHV2Ntuple.py.

◆ type

LArHV2Ntuple.type

Definition at line 14 of file LArHV2Ntuple.py.


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