ATLAS Offline Software
Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
LVL1::SCEmulation Class Reference

#include <SCEmulation.h>

Inheritance diagram for LVL1::SCEmulation:
Collaboration diagram for LVL1::SCEmulation:

Public Member Functions

 SCEmulation (const std::string &name, ISvcLocator *pSvcLocator)
 
virtual ~SCEmulation () override
 
virtual StatusCode initialize () override
 
virtual StatusCode execute (const EventContext &ctx) const override
 
virtual StatusCode sysInitialize () override
 Override sysInitialize. More...
 
virtual bool isClonable () const override
 Specify if the algorithm is clonable. More...
 
virtual unsigned int cardinality () const override
 Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant. More...
 
virtual StatusCode sysExecute (const EventContext &ctx) override
 Execute an algorithm. More...
 
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies. More...
 
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. More...
 
const ServiceHandle< StoreGateSvc > & evtStore () const
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. More...
 
virtual StatusCode sysStart () override
 Handle START transition. More...
 
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles. More...
 
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles. More...
 
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T > &t)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc="none")
 Declare a new Gaudi property. More...
 
void updateVHKA (Gaudi::Details::PropertyBase &)
 
MsgStream & msg () const
 
MsgStream & msg (const MSG::Level lvl) const
 
bool msgLvl (const MSG::Level lvl) const
 

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution More...
 
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. More...
 

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

std::size_t getEtaIndex (CaloSampling::CaloSample sample, float eta) const
 
std::size_t getEtIndex (CaloSampling::CaloSample sample, float et) const
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &)
 specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &)
 specialization for handling Gaudi::Property<SG::VarHandleBase> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &)
 specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
 

Private Attributes

SG::ReadHandleKey< CaloCellContainerm_inputCellsKey
 
SG::ReadHandleKey< xAOD::EventInfom_evtInfoKey
 
SG::ReadHandleKey< CaloBCIDAveragem_caloBCIDAverageKey
 
SG::ReadCondHandleKey< CaloNoiseSigmaDiffm_caloNoiseSigmaDiffKey
 
SG::ReadCondHandleKey< CaloSuperCellDetDescrManagerm_caloSuperCellMgrKey
 Super cell manager key. More...
 
SG::WriteHandleKey< CaloCellContainerm_outputSuperCellsKey
 
ToolHandle< ICaloSuperCellIDToolm_scidTool {"CaloSuperCellIDTool"}
 Offline<->supercell mapping tool. More...
 
bool m_useNoise
 Use noise values. More...
 
bool m_useBCID
 Compensate for BCIDs. More...
 
std::string m_cellTimingFile
 The cell timing file. More...
 
std::map< CaloSampling::CaloSample, std::vector< float > > m_etaBins
 eta binning read from timing file More...
 
std::map< CaloSampling::CaloSample, std::vector< float > > m_etBins
 Et binning read from timing file. More...
 
std::map< std::tuple< CaloSampling::CaloSample, std::size_t, std::size_t >, std::map< float, float > > m_timingSamples
 Timing distributions. More...
 
const CaloIdManagerm_caloIdMgr {nullptr}
 Calo ID helpers. More...
 
DataObjIDColl m_extendedExtraObjects
 Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks. More...
 
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default) More...
 
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default) More...
 
std::vector< SG::VarHandleKeyArray * > m_vhka
 
bool m_varHandleArraysDeclared
 

Detailed Description

Definition at line 28 of file SCEmulation.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

◆ SCEmulation()

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

Definition at line 74 of file SCEmulation.cxx.

75  : AthReentrantAlgorithm(name, pSvcLocator)
76  {
77  declareProperty("InputCells", m_inputCellsKey = "AllCalo");
78  declareProperty("OutputSuperCells", m_outputSuperCellsKey = "SCEmulationNoBCId");
79  declareProperty("EventInfo", m_evtInfoKey = "EventInfo");
80  declareProperty("SCIDTool", m_scidTool);
81  declareProperty("CompensateForNoise", m_useNoise = true);
82  declareProperty("CompensateForBCID", m_useBCID = true);
83  declareProperty("CellTimingFile", m_cellTimingFile = "Run3L1CaloSimulation/SuperCells/CellTimingDistributions.MiddleTrain.r11881.20210211.root");
84  }

◆ ~SCEmulation()

LVL1::SCEmulation::~SCEmulation ( )
overridevirtual

Definition at line 86 of file SCEmulation.cxx.

86 {}

Member Function Documentation

◆ cardinality()

unsigned int AthReentrantAlgorithm::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.

Override this to return 0 for reentrant algorithms.

Definition at line 55 of file AthReentrantAlgorithm.cxx.

56 {
57  return 0;
58 }

◆ declareGaudiProperty() [1/4]

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

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

Definition at line 170 of file AthCommonDataStore.h.

172  {
173  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
174  hndl.value(),
175  hndl.documentation());
176 
177  }

◆ declareGaudiProperty() [2/4]

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

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

Definition at line 156 of file AthCommonDataStore.h.

158  {
159  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
160  hndl.value(),
161  hndl.documentation());
162 
163  }

◆ declareGaudiProperty() [3/4]

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

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

Definition at line 184 of file AthCommonDataStore.h.

186  {
187  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
188  hndl.value(),
189  hndl.documentation());
190  }

◆ declareGaudiProperty() [4/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareGaudiProperty ( Gaudi::Property< T > &  t,
const SG::NotHandleType  
)
inlineprivateinherited

specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray>

Definition at line 199 of file AthCommonDataStore.h.

200  {
201  return PBASE::declareProperty(t);
202  }

◆ declareProperty() [1/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( const std::string &  name,
SG::VarHandleBase hndl,
const std::string &  doc,
const SG::VarHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleBase. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 245 of file AthCommonDataStore.h.

249  {
250  this->declare(hndl.vhKey());
251  hndl.vhKey().setOwner(this);
252 
253  return PBASE::declareProperty(name,hndl,doc);
254  }

◆ declareProperty() [2/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( const std::string &  name,
SG::VarHandleKey hndl,
const std::string &  doc,
const SG::VarHandleKeyType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleKey. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 221 of file AthCommonDataStore.h.

225  {
226  this->declare(hndl);
227  hndl.setOwner(this);
228 
229  return PBASE::declareProperty(name,hndl,doc);
230  }

◆ declareProperty() [3/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( const std::string &  name,
SG::VarHandleKeyArray hndArr,
const std::string &  doc,
const SG::VarHandleKeyArrayType  
)
inlineinherited

Definition at line 259 of file AthCommonDataStore.h.

263  {
264 
265  // std::ostringstream ost;
266  // ost << Algorithm::name() << " VHKA declareProp: " << name
267  // << " size: " << hndArr.keys().size()
268  // << " mode: " << hndArr.mode()
269  // << " vhka size: " << m_vhka.size()
270  // << "\n";
271  // debug() << ost.str() << endmsg;
272 
273  hndArr.setOwner(this);
274  m_vhka.push_back(&hndArr);
275 
276  Gaudi::Details::PropertyBase* p = PBASE::declareProperty(name, hndArr, doc);
277  if (p != 0) {
278  p->declareUpdateHandler(&AthCommonDataStore<PBASE>::updateVHKA, this);
279  } else {
280  ATH_MSG_ERROR("unable to call declareProperty on VarHandleKeyArray "
281  << name);
282  }
283 
284  return p;
285 
286  }

◆ declareProperty() [4/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc,
const SG::NotHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This is the generic version, for types that do not derive from SG::VarHandleKey. It just forwards to the base class version of declareProperty.

Definition at line 333 of file AthCommonDataStore.h.

337  {
338  return PBASE::declareProperty(name, property, doc);
339  }

◆ declareProperty() [5/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc = "none" 
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This dispatches to either the generic declareProperty or the one for VarHandle/Key/KeyArray.

Definition at line 352 of file AthCommonDataStore.h.

355  {
356  typedef typename SG::HandleClassifier<T>::type htype;
357  return declareProperty (name, property, doc, htype());
358  }

◆ declareProperty() [6/6]

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

Definition at line 145 of file AthCommonDataStore.h.

145  {
146  typedef typename SG::HandleClassifier<T>::type htype;
148  }

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

95 { return m_detStore; }

◆ evtStore() [1/2]

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.

85 { return m_evtStore; }

◆ evtStore() [2/2]

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

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

Definition at line 90 of file AthCommonDataStore.h.

90 { return m_evtStore; }

◆ execute()

StatusCode LVL1::SCEmulation::execute ( const EventContext &  ctx) const
overridevirtual

Definition at line 207 of file SCEmulation.cxx.

208  {
209  // Prepare output container
210  auto superCells = std::make_unique<CaloCellContainer>();
211  // Get input
212  auto cells = SG::makeHandle(m_inputCellsKey, ctx);
213  if (!cells.isValid())
214  {
215  ATH_MSG_ERROR("Failed to retrieve input cells " << m_inputCellsKey.key());
216  return StatusCode::FAILURE;
217  }
218 
219  const CaloBCIDAverage *caloBCIDAvg = nullptr;
220  const CaloNoiseSigmaDiff *caloNoiseSigmaDiff = nullptr;
221  if (m_useBCID)
222  {
223  auto handle = SG::makeHandle(m_caloBCIDAverageKey, ctx);
224  if (!handle.isValid())
225  {
226  ATH_MSG_ERROR("Failed to retrieve " << m_caloBCIDAverageKey);
227  return StatusCode::FAILURE;
228  }
229  caloBCIDAvg = handle.cptr();
230  }
231  if (m_useNoise)
232  {
234  if (!handle.isValid())
235  {
236  ATH_MSG_ERROR("Failed to retrieve " << m_caloNoiseSigmaDiffKey);
237  return StatusCode::FAILURE;
238  }
239  caloNoiseSigmaDiff = handle.cptr();
240  }
241 
243  const CaloSuperCellDetDescrManager* scellMgr = *caloSuperCellMgrHandle;
244 
245  auto evtInfo = SG::makeHandle(m_evtInfoKey, ctx);
246  if (!evtInfo.isValid())
247  {
248  ATH_MSG_ERROR("Failed to retrieve " << m_evtInfoKey.key());
249  return StatusCode::FAILURE;
250  }
251  std::mt19937_64 generator;
252  // seed the generator for the whole event
253  generator.seed(evtInfo->eventNumber() * evtInfo->runNumber());
254 
255  const CaloCell_SuperCell_ID *superCellIDHelper = m_caloIdMgr->getCaloCell_SuperCell_ID();
256  const TileID *tileCellID = m_caloIdMgr->getTileID();
257  const Tile_SuperCell_ID *tileSuperCellID = m_caloIdMgr->getTile_SuperCell_ID();
258  const CaloCell_ID *caloCellID = m_caloIdMgr->getCaloCell_ID();
259 
260  // Prepare the output values
261  std::size_t nSuperCells = superCellIDHelper->calo_cell_hash_max();
262  std::vector<float> energies(nSuperCells, 0.0);
263  std::vector<float> enTime(nSuperCells, 0.0);
264  std::vector<float> enForTime(nSuperCells, 0.0);
265  std::vector<char> timeDef(nSuperCells, false);
266  std::vector<uint16_t> qualities(nSuperCells, 0);
267  std::vector<float> sigmaNoisePerSuperCell(nSuperCells, 0.0);
268 
269  for (const CaloCell *cell : *cells)
270  {
271  Identifier cellID = cell->ID();
272  IdentifierHash cellIDHash = caloCellID->calo_cell_hash(cellID);
273  // map to super cell ID
274  Identifier superCellID = m_scidTool->offlineToSuperCellID(cellID);
275  const CaloDetDescrElement *cdde = cell->caloDDE();
276  if (!superCellID.is_valid())
277  {
278  continue;
279  }
280  IdentifierHash scIDHash = superCellIDHelper->calo_cell_hash(superCellID);
281  float energy = cell->energy();
282  if (m_useBCID)
283  energy += caloBCIDAvg->average(cellID);
284  energies[scIDHash] += energy;
285  if (m_useNoise && !cdde->is_tile() && cell->gain() == CaloGain::LARHIGHGAIN)
286  sigmaNoisePerSuperCell[scIDHash] += (*caloNoiseSigmaDiff)[cellIDHash];
287 
288  // This is a bad definition, but it's needed to be consistent with the other code (for now...)
289  CaloSampling::CaloSample s = cell->caloDDE()->getSampling();
290  bool isTile_BAD = s >= 9 && s < 21;
291  if (cell->provenance() & 0x2000)
292  {
293  if (cell->energy() > 256)
294  {
295  // We have the timing values correctly for above 256
296  timeDef[scIDHash] |= true;
297  enForTime[scIDHash] += cell->energy();
298  enTime[scIDHash] += cell->energy() * cell->time();
299  }
300  else if (!isTile_BAD)
301  {
302  // Use the random sampling from timing histograms (only midtrain)
303 
304  CaloSampling::CaloSample sample = cell->caloDDE()->getSampling();
305  // Locate the correct eta/et bins
306  std::size_t iEta = getEtaIndex(sample, std::abs(cell->eta()));
307  if (iEta == SIZE_MAX)
308  {
309  ATH_MSG_ERROR("Eta value " << cell->eta() << " for sampling " << sample << " does not fall in a bin");
310  return StatusCode::FAILURE;
311  }
312  std::size_t iEt = getEtIndex(sample, cell->et());
313  if (iEt == SIZE_MAX)
314  {
315  ATH_MSG_ERROR("Et value " << cell->et() << " for sampling " << sample << " does not fall in a bin");
316  return StatusCode::FAILURE;
317  }
318  float cellTime = getRandom(m_timingSamples.at(std::make_tuple(sample, iEta, iEt)), generator);
319  timeDef.at(scIDHash) |= true;
320  enForTime.at(scIDHash) += cell->energy();
321  enTime.at(scIDHash) += cell->energy() * cellTime;
322  }
323  } //> if (provenance & 0x2000)
324  uint16_t &quality = qualities.at(scIDHash);
325  // Add the qualities such that you don't overflow the storage
326  if ((std::numeric_limits<uint16_t>::max() + 1 - quality) < cell->quality())
328  else
329  quality += cell->quality();
330  //ATH_MSG_INFO("Quality is " << quality);
331  // Special case for SAMP_D in tile. The signal is split into two SCs
332  if (cdde->is_tile() && tileCellID->sampling(cellID) == TileID::SAMP_D)
333  {
334  int section = tileCellID->section(cellID);
335  int side = tileCellID->side(cellID);
336  int module = tileCellID->module(cellID);
337  int tower = tileCellID->tower(cellID);
338 
339  // Get the parameters for the new SCs
340  int section1 = section;
341  int section2 = section;
342  int side1 = side;
343  int side2 = side;
344  int tower1 = tower;
345  int tower2 = tower - 1;
346  if (tower == 0)
347  {
348  side1 = -1;
349  side2 = 1;
350  tower1 = 0;
351  tower2 = 0;
352  }
353  else if (tower == 10)
354  {
355  section1 = TileID::EXTBAR;
356  section2 = TileID::BARREL;
357  }
358 
359  Identifier scID1 = tileSuperCellID->cell_id(section1, side1, module, tower1, 0);
360  Identifier scID2 = tileSuperCellID->cell_id(section2, side2, module, tower2, 0);
361 
362  // Split the energy between the SCs
363  energies.at(superCellIDHelper->calo_cell_hash(scID1)) += cell->energy() * 0.5;
364  energies.at(superCellIDHelper->calo_cell_hash(scID2)) += cell->energy() * 0.5;
365  }
366  } //> end loop over cells
367 
368  for (std::size_t idx = 0; idx < energies.size(); ++idx)
369  {
370  const CaloDetDescrElement *dde = scellMgr->get_element(idx);
371  if (!dde)
372  {
373  ATH_MSG_WARNING("Invalid DDE for hash index " << idx);
374  continue;
375  }
376  // Only push LAr supercells
378  bool isTile_BAD = s >= 9 && s < 21;
379  if (isTile_BAD)
380  continue;
381  float energy = energies.at(idx);
382  float sigmaNoise = sigmaNoisePerSuperCell.at(dde->calo_hash());
383  if (!dde->is_tile() && sigmaNoise > 0.0)
384  {
385  std::normal_distribution<double> distribution(0.0, sigmaNoise);
386  energy += distribution(generator);
387  }
388  auto superCell = std::make_unique<CaloCell>();
389  superCell->setCaloDDE(dde);
390  superCell->setEnergy(energy);
391  uint16_t prov = 0;
392  if (timeDef.at(idx) && enForTime.at(idx) != 0)
393  {
394  float time = enTime.at(idx) / enForTime.at(idx);
395  superCell->setTime(time);
396  float et = superCell->et();
397  prov = 0x2000;
398  if ((et > 10e3 && time > -8 && time < 18) || (et <= 10e3 && std::abs(time) < 8))
399  prov |= 0x200;
400  }
401  else
402  superCell->setTime(999.0);
403  superCell->setProvenance(prov);
404  superCell->setGain(CaloGain::LARHIGHGAIN);
405  superCells->push_back(superCell.release());
406  }
407  auto superCellHandle = SG::makeHandle(m_outputSuperCellsKey, ctx);
408  ATH_CHECK(superCellHandle.record(std::move(superCells)));
409  return StatusCode::SUCCESS;
410  }

◆ 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 & AthReentrantAlgorithm::extraOutputDeps ( ) const
overridevirtualinherited

Return the list of extra output dependencies.

This list is extended to include symlinks implied by inheritance relations.

Definition at line 79 of file AthReentrantAlgorithm.cxx.

80 {
81  // If we didn't find any symlinks to add, just return the collection
82  // from the base class. Otherwise, return the extended collection.
83  if (!m_extendedExtraObjects.empty()) {
85  }
86  return Algorithm::extraOutputDeps();
87 }

◆ filterPassed()

virtual bool AthReentrantAlgorithm::filterPassed ( const EventContext &  ctx) const
inlinevirtualinherited

Definition at line 135 of file AthReentrantAlgorithm.h.

135  {
136  return execState( ctx ).filterPassed();
137  }

◆ getEtaIndex()

std::size_t LVL1::SCEmulation::getEtaIndex ( CaloSampling::CaloSample  sample,
float  eta 
) const
private

Definition at line 412 of file SCEmulation.cxx.

413  {
414  return getIndex(m_etaBins.at(sample), eta);
415  }

◆ getEtIndex()

std::size_t LVL1::SCEmulation::getEtIndex ( CaloSampling::CaloSample  sample,
float  et 
) const
private

Definition at line 417 of file SCEmulation.cxx.

418  {
419  return getIndex(m_etBins.at(sample), et);
420  }

◆ initialize()

StatusCode LVL1::SCEmulation::initialize ( )
overridevirtual

Definition at line 88 of file SCEmulation.cxx.

89  {
90  ATH_MSG_INFO("Initializing " << name() << "...");
92  ATH_CHECK(m_scidTool.retrieve());
97 
100 
101  std::unique_ptr<TFile> timingFile(TFile::Open(PathResolver::find_calib_file(m_cellTimingFile).c_str()));
102  ATH_MSG_INFO("...");
103  if (!timingFile || timingFile->IsZombie())
104  {
105  ATH_MSG_ERROR("Failed to open cell timing file " << m_cellTimingFile);
106  return StatusCode::FAILURE;
107  }
108  TDirectory *tdir = timingFile->GetDirectory("CellTiming");
109  if (!tdir)
110  {
111  ATH_MSG_ERROR(m_cellTimingFile << " has no CellTiming directory!");
112  return StatusCode::FAILURE;
113  }
114 
115  // Regex pattern for histogram names
116  std::regex pattern("Layer(\\d+)_([\\d.]+)eta([\\d.]+)_([\\d.-]+)ET([\\d.-]+)_midtrain");
117  std::map<CaloSampling::CaloSample, std::set<std::pair<float, float>>> etaBins;
118  std::map<CaloSampling::CaloSample, std::set<std::pair<float, float>>> etBins;
119  std::map<CaloSampling::CaloSample, std::map<std::pair<std::pair<float, float>, std::pair<float, float>>, TH1F *>> tmpHistMap;
120  std::set<CaloSampling::CaloSample> samples;
121  for (TObject *obj : *tdir->GetListOfKeys())
122  {
123  TKey *key = dynamic_cast<TKey *>(obj);
124  if (!key)
125  {
126  ATH_MSG_ERROR(obj->GetName() << " is not a TKey");
127  return StatusCode::FAILURE;
128  }
129  std::cmatch match;
130  if (!std::regex_match(key->GetName(), match, pattern))
131  {
132  continue;
133  }
134  if (std::strcmp(key->GetClassName(), "TH1F") != 0)
135  {
136  ATH_MSG_ERROR("Object " << key->GetName() << " not histogram as expected!");
137  return StatusCode::FAILURE;
138  }
139  CaloSampling::CaloSample sample = static_cast<CaloSampling::CaloSample>(std::stoi(match.str(1)));
140  samples.insert(sample);
141 
142  auto etaBin = std::make_pair(std::stof(match.str(2)), std::stof(match.str(3)));
143  auto etBin = std::make_pair(std::stof(match.str(4)), std::stof(match.str(5)));
144 
145  etaBins[sample].insert(etaBin);
146  etBins[sample].insert(etBin);
147  tmpHistMap[sample][std::make_pair(etaBin, etBin)] = (TH1F *)key->ReadObj();
148  }
149  // Now regularise the binning
150  for (CaloSampling::CaloSample sample : samples)
151  {
152  auto itr = etaBins[sample].begin();
153  auto end = etaBins[sample].end();
154  m_etaBins[sample].reserve(std::distance(itr, end) + 1);
155  m_etaBins[sample].push_back(itr->first);
156  m_etaBins[sample].push_back(itr->second);
157  ++itr;
158  for (; itr != end; ++itr)
159  {
160  // Make sure that the bin edges match up
161  if (itr->first != m_etaBins[sample].back())
162  {
163  ATH_MSG_ERROR("Eta bins do not match up for sample " << sample << "(" << m_etaBins[sample].back() << ", " << itr->first << ")");
164  return StatusCode::FAILURE;
165  }
166  m_etaBins[sample].push_back(itr->second);
167  }
168 
169  itr = etBins[sample].begin();
170  end = etBins[sample].end();
171  m_etBins[sample].reserve(std::distance(itr, end) + 1);
172  m_etBins[sample].push_back(itr->first);
173  m_etBins[sample].push_back(itr->second);
174  ++itr;
175  for (; itr != end; ++itr)
176  {
177  // Make sure that the bin edges match up
178  if (itr->first != m_etBins[sample].back())
179  {
180  ATH_MSG_ERROR("Et bins do not match up for sample " << sample);
181  return StatusCode::FAILURE;
182  }
183  m_etBins[sample].push_back(itr->second);
184  }
185 
186  // Now copy the histograms over
187  for (const auto &p : tmpHistMap[sample])
188  {
189  // Use the lower bounds of each bins to get the index
190  std::size_t etaIndex = getEtaIndex(sample, p.first.first.first);
191  std::size_t etIndex = getEtIndex(sample, p.first.second.first);
192  auto mapKey = std::make_tuple(sample, etaIndex, etIndex);
193  std::map<float, float> &integrals = m_timingSamples[mapKey];
194  float cumulativeSum = 0;
195  TAxis *axis = p.second->GetXaxis();
196  integrals[cumulativeSum] = axis->GetBinLowEdge(1);
197  for (int idx = 1; idx < axis->GetNbins(); ++idx)
198  {
199  cumulativeSum += p.second->GetBinContent(idx);
200  integrals[cumulativeSum] = axis->GetBinUpEdge(idx);
201  }
202  }
203  }
204  return StatusCode::SUCCESS;
205  }

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

bool AthReentrantAlgorithm::isClonable ( ) const
overridevirtualinherited

◆ msg() [1/2]

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

Definition at line 24 of file AthCommonMsg.h.

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

◆ msg() [2/2]

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

Definition at line 27 of file AthCommonMsg.h.

27  {
28  return this->msgStream(lvl);
29  }

◆ 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();
383  PBASE::renounce (h);
384  }

◆ 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  {
365  handlesArray.renounce();
366  }

◆ setFilterPassed()

virtual void AthReentrantAlgorithm::setFilterPassed ( bool  state,
const EventContext &  ctx 
) const
inlinevirtualinherited

Definition at line 139 of file AthReentrantAlgorithm.h.

139  {
140  execState( ctx ).setFilterPassed( state );
141  }

◆ sysExecute()

StatusCode AthReentrantAlgorithm::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 67 of file AthReentrantAlgorithm.cxx.

68 {
69  return Gaudi::Algorithm::sysExecute (ctx);
70 }

◆ sysInitialize()

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

Definition at line 96 of file AthReentrantAlgorithm.cxx.

96  {
98 
99  if (sc.isFailure()) {
100  return sc;
101  }
102 
103  ServiceHandle<ICondSvc> cs("CondSvc",name());
104  for (auto h : outputHandles()) {
105  if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
106  // do this inside the loop so we don't create the CondSvc until needed
107  if ( cs.retrieve().isFailure() ) {
108  ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
109  return StatusCode::SUCCESS;
110  }
111  if (cs->regHandle(this,*h).isFailure()) {
112  sc = StatusCode::FAILURE;
113  ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
114  << " with CondSvc");
115  }
116  }
117  }
118  return sc;
119 }

◆ 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) {
312  std::vector<SG::VarHandleKey*> keys = a->keys();
313  for (auto k : keys) {
314  k->setOwner(this);
315  }
316  }
317  }

Member Data Documentation

◆ m_caloBCIDAverageKey

SG::ReadHandleKey<CaloBCIDAverage> LVL1::SCEmulation::m_caloBCIDAverageKey
private
Initial value:
{
this, "CaloBCIDAverage", "CaloBCIDAverage"}

Definition at line 40 of file SCEmulation.h.

◆ m_caloIdMgr

const CaloIdManager* LVL1::SCEmulation::m_caloIdMgr {nullptr}
private

Calo ID helpers.

Definition at line 68 of file SCEmulation.h.

◆ m_caloNoiseSigmaDiffKey

SG::ReadCondHandleKey<CaloNoiseSigmaDiff> LVL1::SCEmulation::m_caloNoiseSigmaDiffKey
private
Initial value:
{
this, "CaloNoiseSigmaDiff", "CaloNoiseSigmaDiff"}

Definition at line 42 of file SCEmulation.h.

◆ m_caloSuperCellMgrKey

SG::ReadCondHandleKey<CaloSuperCellDetDescrManager> LVL1::SCEmulation::m_caloSuperCellMgrKey
private
Initial value:
{
this,"CaloSuperCellDetDescrManager","CaloSuperCellDetDescrManager","SG key of the resulting CaloSuperCellDetDescrManager"}

Super cell manager key.

Definition at line 45 of file SCEmulation.h.

◆ m_cellTimingFile

std::string LVL1::SCEmulation::m_cellTimingFile
private

The cell timing file.

Definition at line 56 of file SCEmulation.h.

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

std::map<CaloSampling::CaloSample, std::vector<float> > LVL1::SCEmulation::m_etaBins
private

eta binning read from timing file

Definition at line 60 of file SCEmulation.h.

◆ m_etBins

std::map<CaloSampling::CaloSample, std::vector<float> > LVL1::SCEmulation::m_etBins
private

Et binning read from timing file.

Definition at line 62 of file SCEmulation.h.

◆ m_evtInfoKey

SG::ReadHandleKey<xAOD::EventInfo> LVL1::SCEmulation::m_evtInfoKey
private

Definition at line 39 of file SCEmulation.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 AthReentrantAlgorithm::m_extendedExtraObjects
privateinherited

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

Empty if no symlinks were found.

Definition at line 153 of file AthReentrantAlgorithm.h.

◆ m_inputCellsKey

SG::ReadHandleKey<CaloCellContainer> LVL1::SCEmulation::m_inputCellsKey
private

Definition at line 38 of file SCEmulation.h.

◆ m_outputSuperCellsKey

SG::WriteHandleKey<CaloCellContainer> LVL1::SCEmulation::m_outputSuperCellsKey
private

Definition at line 47 of file SCEmulation.h.

◆ m_scidTool

ToolHandle<ICaloSuperCellIDTool> LVL1::SCEmulation::m_scidTool {"CaloSuperCellIDTool"}
private

Offline<->supercell mapping tool.

Definition at line 50 of file SCEmulation.h.

◆ m_timingSamples

std::map<std::tuple<CaloSampling::CaloSample, std::size_t, std::size_t>, std::map<float, float> > LVL1::SCEmulation::m_timingSamples
private

Timing distributions.

Definition at line 65 of file SCEmulation.h.

◆ m_useBCID

bool LVL1::SCEmulation::m_useBCID
private

Compensate for BCIDs.

Definition at line 54 of file SCEmulation.h.

◆ m_useNoise

bool LVL1::SCEmulation::m_useNoise
private

Use noise values.

Definition at line 52 of file SCEmulation.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:
python.PyKernel.retrieve
def retrieve(aClass, aKey=None)
Definition: PyKernel.py:110
mergePhysValFiles.pattern
pattern
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:26
PathResolver::find_calib_file
static std::string find_calib_file(const std::string &logical_file_name)
Definition: PathResolver.cxx:384
RunTileCalibRec.cells
cells
Definition: RunTileCalibRec.py:271
CaloNoiseSigmaDiff
std::vector< float > CaloNoiseSigmaDiff
NAME : CaloNoiseSigmaDiff.h PACKAGE : Calorimeter/CaloConditions.
Definition: CaloNoiseSigmaDiff.h:20
et
Extra patterns decribing particle interation process.
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
CaloCell_Base_ID::calo_cell_hash
IdentifierHash calo_cell_hash(const Identifier cellId) const
create hash id from 'global' cell id
ReadCellNoiseFromCool.cell
cell
Definition: ReadCellNoiseFromCool.py:53
max
#define max(a, b)
Definition: cfImp.cxx:41
LVL1::SCEmulation::m_etBins
std::map< CaloSampling::CaloSample, std::vector< float > > m_etBins
Et binning read from timing file.
Definition: SCEmulation.h:62
SG::ReadCondHandle
Definition: ReadCondHandle.h:44
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
LVL1::SCEmulation::m_scidTool
ToolHandle< ICaloSuperCellIDTool > m_scidTool
Offline<->supercell mapping tool.
Definition: SCEmulation.h:50
CaloDetDescrElement
This class groups all DetDescr information related to a CaloCell. Provides a generic interface for al...
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:66
ConvertOldUJHistosToNewHistos.etaBins
list etaBins
Definition: ConvertOldUJHistosToNewHistos.py:145
CaloDetDescrManager_Base::get_element
const CaloDetDescrElement * get_element(const Identifier &cellId) const
get element by its identifier
Definition: CaloDetDescrManager.cxx:159
yodamerge_tmp.axis
list axis
Definition: yodamerge_tmp.py:241
AthCommonDataStore::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 > renounce(T &h)
Definition: AthCommonDataStore.h:380
Tile_Base_ID::side
int side(const Identifier &id) const
Definition: Tile_Base_ID.cxx:153
LVL1::SCEmulation::m_timingSamples
std::map< std::tuple< CaloSampling::CaloSample, std::size_t, std::size_t >, std::map< float, float > > m_timingSamples
Timing distributions.
Definition: SCEmulation.h:65
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
Tile_SuperCell_ID
Helper class for Tile offline identifiers for supercells.
Definition: Tile_SuperCell_ID.h:64
Tile_Base_ID::tower
int tower(const Identifier &id) const
Definition: Tile_Base_ID.cxx:165
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
CaloIdManager::getTile_SuperCell_ID
const Tile_SuperCell_ID * getTile_SuperCell_ID(void) const
Definition: CaloIdManager.cxx:130
SG::VarHandleKey::key
const std::string & key() const
Return the StoreGate ID for the referenced object.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:141
LVL1::SCEmulation::m_caloNoiseSigmaDiffKey
SG::ReadCondHandleKey< CaloNoiseSigmaDiff > m_caloNoiseSigmaDiffKey
Definition: SCEmulation.h:42
Tile_Base_ID::BARREL
@ BARREL
Definition: Tile_Base_ID.h:48
LVL1::SCEmulation::getEtIndex
std::size_t getEtIndex(CaloSampling::CaloSample sample, float et) const
Definition: SCEmulation.cxx:417
Identifier::is_valid
bool is_valid() const
Check if id is in a valid state.
LVL1::SCEmulation::getEtaIndex
std::size_t getEtaIndex(CaloSampling::CaloSample sample, float eta) const
Definition: SCEmulation.cxx:412
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
mergePhysValFiles.end
end
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:93
LVL1::SCEmulation::m_cellTimingFile
std::string m_cellTimingFile
The cell timing file.
Definition: SCEmulation.h:56
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::detStore
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
Definition: AthCommonDataStore.h:95
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
CaloSuperCellDetDescrManager
Definition: CaloDetDescrManager.h:490
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:27
TRT::Hit::side
@ side
Definition: HitInfo.h:83
PrepareReferenceFile.regex
regex
Definition: PrepareReferenceFile.py:43
SG::makeHandle
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
Definition: ReadCondHandle.h:270
python.PyAthena.module
module
Definition: PyAthena.py:131
Tile_Base_ID::EXTBAR
@ EXTBAR
Definition: Tile_Base_ID.h:48
CaloIdManager::getTileID
const TileID * getTileID(void) const
Definition: CaloIdManager.cxx:100
xAOD::etaBin
setSAddress setEtaMS setDirPhiMS setDirZMS setBarrelRadius setEndcapAlpha setEndcapRadius setInterceptInner setEtaMap etaBin
Definition: L2StandAloneMuon_v1.cxx:148
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
CaloDetDescrElement::calo_hash
IdentifierHash calo_hash() const
cell calo hash
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:412
AthCommonDataStore
Definition: AthCommonDataStore.h:52
AthReentrantAlgorithm::AthReentrantAlgorithm
AthReentrantAlgorithm()
Default constructor:
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
CheckAppliedSFs.e3
e3
Definition: CheckAppliedSFs.py:264
ParticleGun_FastCalo_ChargeFlip_Config.energy
energy
Definition: ParticleGun_FastCalo_ChargeFlip_Config.py:78
Tile_Base_ID::module
int module(const Identifier &id) const
Definition: Tile_Base_ID.cxx:159
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:88
FullCPAlgorithmsTest_eljob.sample
sample
Definition: FullCPAlgorithmsTest_eljob.py:116
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::outputHandles
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
CaloCell_SuperCell_ID
Helper class for offline supercell identifiers.
Definition: CaloCell_SuperCell_ID.h:48
CaloSampling::CaloSample
CaloSample
Definition: Calorimeter/CaloGeoHelpers/CaloGeoHelpers/CaloSampling.h:22
TileID
Helper class for TileCal offline identifiers.
Definition: TileID.h:68
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
LVL1::SCEmulation::m_useNoise
bool m_useNoise
Use noise values.
Definition: SCEmulation.h:52
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
CaloBCIDAverage
Definition: CaloBCIDAverage.h:16
Tile_Base_ID::sampling
int sampling(const Identifier &id) const
Definition: Tile_Base_ID.h:164
CaloCell_ID
Helper class for offline cell identifiers.
Definition: CaloCell_ID.h:34
AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
SG::VarHandleKey::initialize
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:103
AthReentrantAlgorithm::m_extendedExtraObjects
DataObjIDColl m_extendedExtraObjects
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Definition: AthReentrantAlgorithm.h:153
python.utils.AtlRunQueryTriggerUtils.getRandom
def getRandom(smk, lhcRun)
Definition: AtlRunQueryTriggerUtils.py:613
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
CaloDetDescrElement::is_tile
bool is_tile() const
cell belongs to Tile
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:442
LVL1::SCEmulation::m_outputSuperCellsKey
SG::WriteHandleKey< CaloCellContainer > m_outputSuperCellsKey
Definition: SCEmulation.h:47
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
CaloIdManager::getCaloCell_ID
const CaloCell_ID * getCaloCell_ID(void) const
Access to IdHelper.
Definition: CaloIdManager.cxx:63
AthReentrantAlgorithm::sysInitialize
virtual StatusCode sysInitialize() override
Override sysInitialize.
Definition: AthReentrantAlgorithm.cxx:96
SG::CondHandleKey::initialize
StatusCode initialize(bool used=true)
LVL1::SCEmulation::m_caloBCIDAverageKey
SG::ReadHandleKey< CaloBCIDAverage > m_caloBCIDAverageKey
Definition: SCEmulation.h:40
CaloGain::LARHIGHGAIN
@ LARHIGHGAIN
Definition: CaloGain.h:18
LVL1::SCEmulation::m_etaBins
std::map< CaloSampling::CaloSample, std::vector< float > > m_etaBins
eta binning read from timing file
Definition: SCEmulation.h:60
LVL1::SCEmulation::m_inputCellsKey
SG::ReadHandleKey< CaloCellContainer > m_inputCellsKey
Definition: SCEmulation.h:38
CaloBCIDAverage::average
float average(const Identifier &id) const
Definition: CaloBCIDAverage.h:27
Tile_Base_ID::SAMP_D
@ SAMP_D
Definition: Tile_Base_ID.h:55
mc.generator
generator
Configure Herwig7 These are the commands corresponding to what would go into the regular Herwig infil...
Definition: mc.MGH7_FxFx_H71-DEFAULT_test.py:18
a
TList * a
Definition: liststreamerinfos.cxx:10
h
CaloCell
Data object for each calorimeter readout cell.
Definition: CaloCell.h:57
CaloSwCorrections.time
def time(flags, cells_name, *args, **kw)
Definition: CaloSwCorrections.py:242
CaloDetDescrElement::getSampling
CaloCell_ID::CaloSample getSampling() const
cell sampling
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:395
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
LArNewCalib_DelayDump_OFC_Cali.idx
idx
Definition: LArNewCalib_DelayDump_OFC_Cali.py:69
CaloIdManager::getCaloCell_SuperCell_ID
const CaloCell_SuperCell_ID * getCaloCell_SuperCell_ID(void) const
Definition: CaloIdManager.cxx:110
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:623
LVL1::SCEmulation::m_evtInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_evtInfoKey
Definition: SCEmulation.h:39
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
python.TrigEgammaMonitorHelper.TH1F
def TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)
Definition: TrigEgammaMonitorHelper.py:24
LHEF::Writer
Pythia8::Writer Writer
Definition: Prophecy4fMerger.cxx:12
Tile_Base_ID::section
int section(const Identifier &id) const
Definition: Tile_Base_ID.cxx:147
IdentifierHash
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
Definition: IdentifierHash.h:25
section
void section(const std::string &sec)
Definition: TestTriggerMenuAccess.cxx:22
LVL1::SCEmulation::m_useBCID
bool m_useBCID
Compensate for BCIDs.
Definition: SCEmulation.h:54
Tile_Base_ID::cell_id
Identifier cell_id(const Identifier &any_id) const
Definition: Tile_Base_ID.cxx:581
python.PyAthena.obj
obj
Definition: PyAthena.py:132
xAOD::iEta
setScale setgFexType iEta
Definition: gFexJetRoI_v1.cxx:74
Amg::distance
float distance(const Amg::Vector3D &p1, const Amg::Vector3D &p2)
calculates the distance between two point in 3D space
Definition: GeoPrimitivesHelpers.h:54
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
LVL1::SCEmulation::m_caloIdMgr
const CaloIdManager * m_caloIdMgr
Calo ID helpers.
Definition: SCEmulation.h:68
LVL1::SCEmulation::m_caloSuperCellMgrKey
SG::ReadCondHandleKey< CaloSuperCellDetDescrManager > m_caloSuperCellMgrKey
Super cell manager key.
Definition: SCEmulation.h:45
match
bool match(std::string s1, std::string s2)
match the individual directories of two strings
Definition: hcg.cxx:356
fitman.k
k
Definition: fitman.py:528
CaloCell_Base_ID::calo_cell_hash_max
size_type calo_cell_hash_max(void) const
cell 'global' hash table max size
ServiceHandle< ICondSvc >
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37
Identifier
Definition: IdentifierFieldParser.cxx:14