ATLAS Offline Software
Loading...
Searching...
No Matches
GlobalSim::Egamma1_LArStrip_Fex_RowAware Class Reference

#include <Egamma1_LArStrip_Fex_RowAware.h>

Inheritance diagram for GlobalSim::Egamma1_LArStrip_Fex_RowAware:
Collaboration diagram for GlobalSim::Egamma1_LArStrip_Fex_RowAware:

Public Member Functions

 Egamma1_LArStrip_Fex_RowAware (const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode initialize () override
virtual StatusCode execute (const EventContext &) const override
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

StatusCode findNeighborhoods_RowAware (const std::vector< const xAOD::eFexEMRoI * > &, const std::vector< const CaloCell * > &, IOBitwise::eEmNbhoodTOBContainer &, const CaloNoise &) const
StatusCode findNeighborhood_RowAware (const xAOD::eFexEMRoI *, const std::vector< const CaloCell * > &, IOBitwise::eEmNbhoodTOBContainer &, const CaloNoise &) const
StatusCode findClosestCellToRoI (const xAOD::eFexEMRoI *, const std::vector< const CaloCell * > &, const CaloCell *&) const
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

SG::ReadHandleKey< xAOD::EventInfom_eventInfoKey
ToolHandle< ICaloCellsProducerm_cellProducer
ToolHandle< eFexRoIAlgToolm_roiAlgTool
SG::ReadCondHandleKey< CaloNoisem_totalNoiseKey
 Key to the total noise used for each CaloCell.
Gaudi::Property< bool > m_dump
Gaudi::Property< bool > m_dumpTerse
SG::WriteHandleKey< IOBitwise::eEmNbhoodTOBContainerm_neighKey
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 30 of file Egamma1_LArStrip_Fex_RowAware.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

◆ Egamma1_LArStrip_Fex_RowAware()

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

Definition at line 46 of file Egamma1_LArStrip_Fex_RowAware.cxx.

46 :
47 AthReentrantAlgorithm(name, pSvcLocator){
48 }

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.

62{
63 return 0;
64}

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

Definition at line 64 of file Egamma1_LArStrip_Fex_RowAware.cxx.

64 {
65 // Read in a CaloCell container. Ask producers to create
66 // vectors of CaloCells to be examined.
67
68 ATH_MSG_DEBUG ("Executing");
69
70 SG::ReadHandle<xAOD::EventInfo> eventInfo(m_eventInfoKey, ctx);
71 if(!eventInfo.isValid()) {
72 ATH_MSG_ERROR ("Error obtaining EventInfo object");
73 return StatusCode::FAILURE;
74 }
75
76 SG::ReadCondHandle<CaloNoise> totalNoiseHdl{m_totalNoiseKey, ctx};
77 if (!totalNoiseHdl.isValid()) {return StatusCode::FAILURE;}
78 const CaloNoise* totalNoiseCDO = *totalNoiseHdl;
79
80 std::vector<const CaloCell*> cells;
81 CHECK(m_cellProducer->cells(cells, ctx));
82 ATH_MSG_DEBUG(cells.size() <<"Cells read in");
83
84 std::vector<const xAOD::eFexEMRoI*> rois;
85 CHECK(m_roiAlgTool->RoIs(rois, ctx));
86 ATH_MSG_DEBUG(rois.size() << " RoI(s) read in");
87
88 // find cells in the neighborhood of RoIs.
89 // A neighborhood is a collection of CellData objects which
90 // contain cell eta, phi and Et.
91
92 auto neighborhoodTOBs = std::make_unique<IOBitwise::eEmNbhoodTOBContainer>();
93
94 CHECK(findNeighborhoods_RowAware(rois, cells, *neighborhoodTOBs, *totalNoiseCDO));
95
96 SG::WriteHandle<GlobalSim::IOBitwise::eEmNbhoodTOBContainer> h_neighborhoodTOBs(m_neighKey, ctx);
97
98 auto dumper = GlobalSim::LArStripNeighborhoodDumper();
99 if(m_dump || m_dumpTerse){
100 if (m_dump) {
101 CHECK(dumper.dump(name(), *eventInfo, *neighborhoodTOBs));
102 }
103
104 if (m_dumpTerse) {
105 CHECK(dumper.dumpTerse(name(), *eventInfo, *neighborhoodTOBs));
106 }
107 }
108
109 CHECK(h_neighborhoodTOBs.record(std::move(neighborhoodTOBs)));
110
111 return StatusCode::SUCCESS;
112 }
#define ATH_MSG_ERROR(x)
#define ATH_MSG_DEBUG(x)
#define CHECK(...)
Evaluate an expression and check for errors.
SG::ReadCondHandleKey< CaloNoise > m_totalNoiseKey
Key to the total noise used for each CaloCell.
SG::WriteHandleKey< IOBitwise::eEmNbhoodTOBContainer > m_neighKey
StatusCode findNeighborhoods_RowAware(const std::vector< const xAOD::eFexEMRoI * > &, const std::vector< const CaloCell * > &, IOBitwise::eEmNbhoodTOBContainer &, const CaloNoise &) const
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey

◆ 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.

88{
89 // If we didn't find any symlinks to add, just return the collection
90 // from the base class. Otherwise, return the extended collection.
91 if (!m_extendedExtraObjects.empty()) {
93 }
95}
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

◆ findClosestCellToRoI()

StatusCode GlobalSim::Egamma1_LArStrip_Fex_RowAware::findClosestCellToRoI ( const xAOD::eFexEMRoI * ,
const std::vector< const CaloCell * > & ,
const CaloCell *&  ) const
private

◆ findNeighborhood_RowAware()

StatusCode GlobalSim::Egamma1_LArStrip_Fex_RowAware::findNeighborhood_RowAware ( const xAOD::eFexEMRoI * roi,
const std::vector< const CaloCell * > & cells,
IOBitwise::eEmNbhoodTOBContainer & neighborhoodTOBs,
const CaloNoise & noise ) const
private

Definition at line 130 of file Egamma1_LArStrip_Fex_RowAware.cxx.

133 {
134
135 // this member function constructs an LArStripNeighborhood.
136 //
137 // A neighourhood is constructed from StripData objects constructed
138 // from CalCells (strips) in the vicinity of an EM RoI the following manner:
139 //
140 // - the cell in the vicinity of the RoI is identified. The neighboorhood
141 // strips are the strups centered on the maximum energy strip.
142 //
143 // In more detail:
144 // A rectangular eta-phi subset of all strips is made.
145 // This subset constains the cells needed for the maximum energy search
146 // and for any subsequent neigborhood strip selection.
147 //
148 // The eta window for the initial selection ismade with half-width of
149 // 0.05 + 8.5* DeltaEta where DeltaEta = 0.003125, the nominal strip width
150 // in eta. A cut-oof off eta = +-1.4 is applied in the selection.
151 //
152 // Phi selection consists of calculating a phi index for the the RoI,
153 // then requiring selected strips to be have a phi indix within +=1 of
154 // the RoI phi index.
155 //
156 // The strips used to identigy the max energy strip the are within +-1 of the
157 // as the phi index of the RoI, and eta that lies within 0.1 in eta to the RoI.
158 //
159 // The strips selected for the Neighborhood have eta within +- 8.5 DeltaEta
160 // of the max energy strip, and +- 1 of the max RoI strip phi Index.
161
162 auto cells_near_roi = std::vector<const CaloCell*>();
163
164 ATH_MSG_DEBUG("roi eta " << roi->eta() << " phi " << roi->phi());
165
166 // lambda function to calculate the phi index of a eta-phi point
167 auto phi_ind = [](const auto& c) {
168 constexpr double dphi = std::numbers::pi/32;
169 std::size_t iphi = 32 + int(std::floor(c->phi()/dphi));
170 return iphi > 63 ?
171 std::optional<std::size_t>() : std::make_optional(iphi);
172 };
173
174 const std::optional<std::size_t> roi_phi_index_opt = phi_ind(roi);
175 if (not roi_phi_index_opt.has_value()) {
176 return StatusCode::FAILURE;
177 }
178 const std::size_t roi_phi_index = *roi_phi_index_opt;
179
180 // obtain adjacent phi indices
181 auto roi_phi_indices = *wrap5(roi_phi_index);
182
183 // container for strips close to RoI in eta
184 auto close = std::deque<std::vector<const CaloCell*>>(5);
185 for (auto& v :close) {v.reserve(100);}
186
187 //One ROI is 0.1 wide in eta, this is the half width
188 constexpr double half_deta_roi{0.05};
189 //One cell in the barrel is 0.003125, this is the half width of the 17 cell window
190 constexpr double half_deta_neigh{8.5*0.003125};
191 //To define the ±eta limit of our window, we need to sum the above
192 constexpr double half_deta_fid{half_deta_roi + half_deta_neigh};
193
194
195 double etalim_low = std::max(roi->eta()-half_deta_fid, -1.4);
196 double etalim_high = std::min(roi->eta()+half_deta_fid, 1.4);
197
198
199 // double loop. outer: all strips. inner: adjacent roi indices.
200 for (const auto& cell : cells) {
201 auto icell = *phi_ind(cell);
202 std::size_t pos{0};
203 for(const auto& iroi : roi_phi_indices) {
204 auto c_eta = cell->eta();
205 if (iroi == icell and c_eta >= etalim_low and c_eta < etalim_high) {
206 float totalNoise = noise.getNoise(cell->ID(), cell->gain());
207 if(totalNoise <= 0.0) totalNoise = 0.001;
208 float sigma = cell->energy() / totalNoise;
209 if(sigma >= 2){
210 close[pos].push_back(cell);
211 } else {
212 close[pos].push_back(new CaloCell(cell->caloDDE(), 0.0, cell->time(), cell->quality(), cell->provenance(), cell->gain()));
213 }
214 break;
215 }
216 ++pos;
217 }
218 }
219
220 // select the cells within a a tower width of the RoI. Then find the
221 // cell in this selction with the highest energy
222 auto roi_cells = std::deque<std::vector<const CaloCell*>>(5);
223 auto roi_max_it = std::vector<std::vector<const CaloCell*>::iterator>();
224
225 for (std::size_t i{0ul}; i != close.size(); ++i) {
226 roi_cells[i].reserve(close[i].size());
227 std::copy_if(std::begin(close[i]),
228 std::end(close[i]),
229 std::back_inserter(roi_cells[i]),
230 [&roi](const auto& c) {
231 return std::abs(c->eta() - roi->eta()) < half_deta_roi;
232 });
233 //Work out where the max is in the central block.
234 if(i > 0 && i < 4){
235 auto it = std::max_element(std::begin(roi_cells[i]),
236 std::end(roi_cells[i]),
237 [](const auto& l,const auto& r) {
238 return l->e() < r->e();
239 });
240 ATH_MSG_DEBUG("max cell row "
241 << i << " position "
242 << std::distance(std::begin(roi_cells[i]), it)
243 << " :" << **it);
244 roi_max_it.push_back(it);
245 }
246 }
247
248 auto max_row = std::max_element(std::begin(roi_max_it),
249 std::end(roi_max_it),
250 [](const auto& l,const auto& r) {
251 return (*l)->e() < (*r)->e();
252 });
253
254 int max_row_pos = std::distance( roi_max_it.begin(), max_row );
255
256 ATH_MSG_DEBUG("max cell row "
257 << ' ' << std::distance( roi_max_it.begin(), max_row )+1);
258
259 //If the maximum is not in the centre row, we need to re-seed
260 switch(max_row_pos)
261 {
262 case 0:
263 {
264 close.pop_back();
265 close.pop_back();
266 break;
267 }
268 case 1:
269 {
270 close.pop_front();
271 close.pop_back();
272 break;
273 }
274 case 2:
275 {
276 close.pop_front();
277 close.pop_front();
278 break;
279 }
280 }
281
282 ATH_MSG_DEBUG("popped ");
283
284 // set up Cell containers for the neighborhood. One container
285 // per adjacent RoI phi indices.
286 auto neigh_cells = std::vector<std::vector<const CaloCell*>>(3);
287
288 ATH_MSG_DEBUG("Window: " << neigh_cells.size());
289
290 const CaloCell* max_cell{*(*max_row)};
291 const auto max_cell_eta = max_cell->eta();
292
293 ATH_MSG_DEBUG("Got the max cell");
294
295 for (std::size_t iv{0ul}; iv != close.size(); ++iv) {
296 std::copy_if(std::begin(close[iv]),
297 std::end(close[iv]),
298 std::back_inserter(neigh_cells[iv]),
299 [&max_cell_eta, &half_deta_neigh](const auto& c){
300 return abs(c->eta()-max_cell_eta) < half_deta_neigh;
301 });
302 }
303
304 ATH_MSG_DEBUG("Made our neighbourhood");
305
306 auto max_neigh_cell_it = std::find(std::begin(neigh_cells[1]),
307 std::end(neigh_cells[1]),
308 max_cell);
309 if (max_neigh_cell_it == std::end(neigh_cells[1])){
310 ATH_MSG_ERROR("Lost the max cell");
311 return StatusCode::FAILURE;
312 }
313
314 auto max_neigh_cell_pos{std::distance(std::begin(neigh_cells[1]),
315 max_neigh_cell_it)};
316
317 ATH_MSG_DEBUG("Rediscovered our neighbourhood max");
318
319 auto toStripData = [](const auto& fromCells){
320 auto stripdata = std::vector<StripData>();
321 stripdata.reserve(fromCells.size());
322 std::transform(std::begin(fromCells),
323 std::end(fromCells),
324 back_inserter(stripdata),
325 [](const auto& c) {
326 return StripData(c->eta(),
327 c->phi(),
328 c->e());});
329 return stripdata;
330 };
331
332 auto low = toStripData(neigh_cells[0]);
333 auto center = toStripData(neigh_cells[1]);
334 auto high = toStripData(neigh_cells[2]);
335
336 Coords roi_c{roi->eta(), roi->phi()};
337 Coords cell_c{max_cell->eta(), max_cell->phi()};
338
339 ATH_MSG_DEBUG("Fill with strip data");
340
341 LArStripNeighborhood neighborhood = LArStripNeighborhood(low, center, high, roi_c, cell_c, max_neigh_cell_pos);
342
343 neighborhoodTOBs.push_back(std::make_unique<IOBitwise::eEmNbhoodTOB>(*roi, neighborhood));
344
345 return StatusCode::SUCCESS;
346 }
size_t size() const
Number of registered mappings.
virtual double phi() const override final
get phi (through CaloDetDescrElement)
Definition CaloCell.h:375
virtual double eta() const override final
get eta (through CaloDetDescrElement)
Definition CaloCell.h:382
float eta() const
setter for the above
float phi() const
Seed supercell index within central tower (0 -> 3).
int r
Definition globals.cxx:22
std::optional< std::vector< std::size_t > > wrap5(std::size_t center)
std::pair< double, double > Coords
l
Printing final latex table to .tex output file.
unsigned long ul

◆ findNeighborhoods_RowAware()

StatusCode GlobalSim::Egamma1_LArStrip_Fex_RowAware::findNeighborhoods_RowAware ( const std::vector< const xAOD::eFexEMRoI * > & rois,
const std::vector< const CaloCell * > & cells,
IOBitwise::eEmNbhoodTOBContainer & neighborhoodTOBs,
const CaloNoise & noise ) const
private

Definition at line 115 of file Egamma1_LArStrip_Fex_RowAware.cxx.

118 {
119
120 for (const auto& roi : rois) {
121 ATH_MSG_DEBUG("roi et " << roi->et());
122 CHECK(findNeighborhood_RowAware(roi, cells, neighborhoodTOBs, noise));
123 }
124
125 return StatusCode::SUCCESS;
126 }
StatusCode findNeighborhood_RowAware(const xAOD::eFexEMRoI *, const std::vector< const CaloCell * > &, IOBitwise::eEmNbhoodTOBContainer &, const CaloNoise &) const

◆ initialize()

StatusCode GlobalSim::Egamma1_LArStrip_Fex_RowAware::initialize ( )
overridevirtual

Definition at line 51 of file Egamma1_LArStrip_Fex_RowAware.cxx.

51 {
52 ATH_MSG_INFO ("Initializing " << name());
53
54 CHECK(m_cellProducer.retrieve());
55 CHECK(m_roiAlgTool.retrieve());
56 CHECK(m_totalNoiseKey.initialize());
57 CHECK(m_neighKey.initialize());
58 CHECK(m_eventInfoKey.initialize());
59
60 return StatusCode::SUCCESS;
61 }
#define ATH_MSG_INFO(x)

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

◆ 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.

75{
76 return BaseAlg::sysExecute (ctx);
77}

◆ 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.

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

ToolHandle<ICaloCellsProducer> GlobalSim::Egamma1_LArStrip_Fex_RowAware::m_cellProducer
private
Initial value:
{this,
"caloCellProducer",
"GlobalSim::EMBE1CellsFromCaloCells",
"AlgTool to provide a vector of CaloCells"
}

Definition at line 48 of file Egamma1_LArStrip_Fex_RowAware.h.

48 {this,
49 "caloCellProducer",
50 "GlobalSim::EMBE1CellsFromCaloCells",
51 "AlgTool to provide a vector of CaloCells"
52 };

◆ 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_dump

Gaudi::Property<bool> GlobalSim::Egamma1_LArStrip_Fex_RowAware::m_dump
private
Initial value:
{
this,
"dump",
false,
"flag to enable dumps"}

Definition at line 69 of file Egamma1_LArStrip_Fex_RowAware.h.

69 {
70 this,
71 "dump",
72 false,
73 "flag to enable dumps"};

◆ m_dumpTerse

Gaudi::Property<bool> GlobalSim::Egamma1_LArStrip_Fex_RowAware::m_dumpTerse
private
Initial value:
{
this,
"dumpTerse",
false,
"flag to enable terse dumps"}

Definition at line 75 of file Egamma1_LArStrip_Fex_RowAware.h.

75 {
76 this,
77 "dumpTerse",
78 false,
79 "flag to enable terse dumps"};

◆ m_eventInfoKey

SG::ReadHandleKey<xAOD::EventInfo> GlobalSim::Egamma1_LArStrip_Fex_RowAware::m_eventInfoKey
private
Initial value:
{
this,
"EventInfo",
"EventInfo",
"EventInfo name"}

Definition at line 41 of file Egamma1_LArStrip_Fex_RowAware.h.

41 {
42 this,
43 "EventInfo",
44 "EventInfo",
45 "EventInfo name"};

◆ 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_neighKey

SG::WriteHandleKey<IOBitwise::eEmNbhoodTOBContainer> GlobalSim::Egamma1_LArStrip_Fex_RowAware::m_neighKey
private
Initial value:
{
this,
"stripNeighborhoodTOBKey",
"stripNeighborhoodTOBContainer",
"location to write strip neighborhoods of EFex RoIs, with the associated TOBs"}

Definition at line 82 of file Egamma1_LArStrip_Fex_RowAware.h.

82 {
83 this,
84 "stripNeighborhoodTOBKey",
85 "stripNeighborhoodTOBContainer",
86 "location to write strip neighborhoods of EFex RoIs, with the associated TOBs"};

◆ m_roiAlgTool

ToolHandle<eFexRoIAlgTool> GlobalSim::Egamma1_LArStrip_Fex_RowAware::m_roiAlgTool
private
Initial value:
{this,
"roiAlgTool",
"GlobalSim::eFexRoIAlgTool",
"AlgTool to provide a vector<const xAOD::eFexEMRoI*>"}

Definition at line 56 of file Egamma1_LArStrip_Fex_RowAware.h.

56 {this,
57 "roiAlgTool",
58 "GlobalSim::eFexRoIAlgTool",
59 "AlgTool to provide a vector<const xAOD::eFexEMRoI*>"};

◆ m_totalNoiseKey

SG::ReadCondHandleKey<CaloNoise> GlobalSim::Egamma1_LArStrip_Fex_RowAware::m_totalNoiseKey
private
Initial value:
{
this,
"totalNoiseKey",
"totalNoise",
"SG Key of CaloNoise data object"}

Key to the total noise used for each CaloCell.

Definition at line 63 of file Egamma1_LArStrip_Fex_RowAware.h.

63 {
64 this,
65 "totalNoiseKey",
66 "totalNoise",
67 "SG Key of CaloNoise data object"};

◆ 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: