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

#include <CaloCellsHandlerTool.h>

Inheritance diagram for CaloCellsHandlerTool:
Collaboration diagram for CaloCellsHandlerTool:

Public Member Functions

 CaloCellsHandlerTool (const std::string &type, const std::string &name, const IInterface *parent)
 
virtual ~CaloCellsHandlerTool ()
 
StatusCode initialize ()
 
StatusCode getGepCellMap (const CaloCellContainer &cells, pGepCellMap &, 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 sysInitialize () override
 Perform system initialization for an algorithm. 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::vector< unsigned int > getNeighbours (const CaloCellContainer &allcells, const CaloCell *acell, const EventContext &) 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::ReadCondHandleKey< CaloNoisem_electronicNoiseKey
 Key of the CaloNoise Conditions data object. More...
 
SG::ReadCondHandleKey< CaloNoisem_totalNoiseKey
 
const CaloCell_IDm_CaloCell_ID {nullptr}
 
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 25 of file CaloCellsHandlerTool.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< AlgTool > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ CaloCellsHandlerTool()

CaloCellsHandlerTool::CaloCellsHandlerTool ( const std::string &  type,
const std::string &  name,
const IInterface *  parent 
)

Definition at line 9 of file CaloCellsHandlerTool.cxx.

12 }

◆ ~CaloCellsHandlerTool()

CaloCellsHandlerTool::~CaloCellsHandlerTool ( )
virtual

Definition at line 14 of file CaloCellsHandlerTool.cxx.

14 {}

Member Function Documentation

◆ declareGaudiProperty() [1/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::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< AlgTool > >::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< AlgTool > >::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< AlgTool > >::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< AlgTool > >::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< AlgTool > >::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< AlgTool > >::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< AlgTool > >::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< AlgTool > >::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< AlgTool > >::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< AlgTool > >::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< AlgTool > >::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< AlgTool > >::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; }

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::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

◆ getGepCellMap()

StatusCode CaloCellsHandlerTool::getGepCellMap ( const CaloCellContainer cells,
pGepCellMap gepCellsMap,
const EventContext &  ctx 
) const

Definition at line 28 of file CaloCellsHandlerTool.cxx.

30  {
31 
32  // PS this function creates and returns a map which has Gep::GustomCells as its values
33  // The cells are made up of data which is envariant for all events, and dynamic
34  // data which varies with event.
35  // The invariant data should be setup in initialize(), and it the dynamic
36  // data should be updated here in a way which is compatible with the const-ness of this
37  // function.
38  // This will be attended to in the future.
39 
40  SG::ReadCondHandle<CaloNoise> electronicNoiseHdl{m_electronicNoiseKey, ctx};
41  if (!electronicNoiseHdl.isValid()) {return StatusCode::FAILURE;}
42  const CaloNoise* electronicNoiseCDO = *electronicNoiseHdl;
43 
45  if (!totalNoiseHdl.isValid()) {return StatusCode::FAILURE;}
46  const CaloNoise* totalNoiseCDO = *totalNoiseHdl;
47 
48  int idx = 0;
49 
50  for(const auto *cell: cells){
51  Gep::CustomCaloCell caloCell;
52 
53  caloCell.e = cell->energy();
54  caloCell.et = cell->energy() * 1.0/TMath::CosH(cell->eta());
55  caloCell.time = cell->time();
56  caloCell.quality = cell->quality();
57  caloCell.provenance = cell->provenance();
58 
59  float electronicNoise = electronicNoiseCDO->getNoise(cell->ID(), cell->gain());
60  float totalNoise = totalNoiseCDO->getNoise(cell->ID(), cell->gain());
61 
62  caloCell.totalNoise = totalNoise;
63  caloCell.electronicNoise = electronicNoise;
64  caloCell.sigma = caloCell.e / totalNoise;
65 
66  caloCell.isBad = cell->badcell();
67  caloCell.eta = cell->eta();
68  caloCell.phi = cell->phi();
69  caloCell.sinTh = cell->sinTh();
70  caloCell.cosTh = cell->cosTh();
71  caloCell.sinPhi = cell->sinPhi();
72  caloCell.cosPhi = cell->cosPhi();
73  caloCell.cotTh = cell->cotTh();
74  caloCell.x = cell->x();
75  caloCell.y = cell->y();
76  caloCell.z = cell->z();
77 
78  unsigned int samplingEnum = m_CaloCell_ID->calo_sample(cell->ID());
79 
80  bool IsEM = m_CaloCell_ID->is_em(cell->ID());
81  bool IsEM_Barrel=false;
82  bool IsEM_EndCap=false;
83  bool IsEM_BarrelPos=false;
84  bool IsEM_BarrelNeg=false;
85  if(IsEM){
86  IsEM_Barrel=m_CaloCell_ID->is_em_barrel(cell->ID());
87  if(IsEM_Barrel){
88  if(m_CaloCell_ID->pos_neg(cell->ID())>0) IsEM_BarrelPos=true;
89  }
90  IsEM_EndCap=m_CaloCell_ID->is_em_endcap(cell->ID());
91  }
92 
93  caloCell.isEM = IsEM;
94  caloCell.isEM_barrel = IsEM_Barrel;
95  caloCell.isEM_endCap = IsEM_EndCap;
96  caloCell.isEM_barrelPos = IsEM_BarrelPos;
97  caloCell.isEM_barrelNeg = IsEM_BarrelNeg; //always false?
98  caloCell.isFCAL = m_CaloCell_ID->is_fcal(cell->ID());
99  caloCell.isHEC = m_CaloCell_ID->is_hec(cell->ID());
100  caloCell.isTile = m_CaloCell_ID->is_tile(cell->ID());
101 
102  caloCell.sampling = samplingEnum;
103  caloCell.detName = CaloSampling::getSamplingName(samplingEnum);
104 
105  caloCell.neighbours = getNeighbours(cells, cell, ctx);
106  caloCell.id = (cell->ID().get_identifier32()).get_compact();
107 
108  const CaloDetDescriptor *elt = cell->caloDDE()->descriptor();
109  caloCell.layer = cell->caloDDE()->getLayer();
110 
111  float deta = elt->deta();
112  float dphi = elt->dphi();
113 
114  float etamin = caloCell.eta - (0.5*deta);
115  float etamax = caloCell.eta + (0.5*deta);
116 
117  float phimin = caloCell.phi - (0.5*dphi);
118  float phimax = caloCell.phi + (0.5*dphi);
119 
120  caloCell.etaMin = etamin;
121  caloCell.etaMax = etamax;
122  caloCell.phiMin = phimin;
123  caloCell.phiMax = phimax;
124  caloCell.etaGranularity = deta;
125  caloCell.phiGranularity = dphi;
126 
127  caloCell.index = idx;
128 
129  // store cells map
130  gepCellsMap->insert(std::pair<unsigned int, Gep::CustomCaloCell>(caloCell.id, caloCell));
131 
132  ++idx;
133  }
134 
135  return StatusCode::SUCCESS;
136 }

◆ getNeighbours()

std::vector< unsigned int > CaloCellsHandlerTool::getNeighbours ( const CaloCellContainer allcells,
const CaloCell acell,
const EventContext &   
) const
private

Definition at line 142 of file CaloCellsHandlerTool.cxx.

144  {
145 
146  // get all neighboring cells
147  std::vector<IdentifierHash> cellNeighbours;
148 
149  IdentifierHash cellHashID = m_CaloCell_ID->calo_cell_hash(acell->ID());
150  m_CaloCell_ID->get_neighbours(cellHashID,LArNeighbours::super3D,cellNeighbours);
151 
152  std::vector<unsigned int> neighbour_ids;
153  for (unsigned int iNeighbour = 0;
154  iNeighbour < cellNeighbours.size();
155  ++iNeighbour) {
156 
157  const CaloCell* neighbour = allcells.findCell(cellNeighbours[iNeighbour]);
158  if (neighbour) {
159  neighbour_ids.push_back((neighbour->ID().get_identifier32()).get_compact());
160  } else {
161  ATH_MSG_ERROR("Couldn't access neighbour #" << iNeighbour
162  << " for cell ID "
163  << (acell->ID().get_identifier32()).get_compact());
164  }
165  }
166  return neighbour_ids;
167 }

◆ initialize()

StatusCode CaloCellsHandlerTool::initialize ( )

Definition at line 16 of file CaloCellsHandlerTool.cxx.

16  {
19 
20  // CaloIndentifier
21  CHECK( detStore()->retrieve (m_CaloCell_ID, "CaloCell_ID") );
22 
23  return StatusCode::SUCCESS;
24 }

◆ inputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< AlgTool > >::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.

◆ msg() [1/2]

MsgStream& AthCommonMsg< AlgTool >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

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

◆ msg() [2/2]

MsgStream& AthCommonMsg< AlgTool >::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< AlgTool >::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< AlgTool > >::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< AlgTool > >::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< AlgTool > >::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  }

◆ sysInitialize()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysInitialize ( )
overridevirtualinherited

Perform system initialization for an algorithm.

We override this to declare all the elements of handle key arrays at the end of initialization. See comments on updateVHKA.

Reimplemented in DerivationFramework::CfAthAlgTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and asg::AsgMetadataTool.

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::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< AlgTool > >::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_CaloCell_ID

const CaloCell_ID* CaloCellsHandlerTool::m_CaloCell_ID {nullptr}
private

Definition at line 61 of file CaloCellsHandlerTool.h.

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_electronicNoiseKey

SG::ReadCondHandleKey<CaloNoise> CaloCellsHandlerTool::m_electronicNoiseKey
private
Initial value:
{this,
"electronicNoiseKey",
"totalNoise",
"SG Key of CaloNoise data object"}

Key of the CaloNoise Conditions data object.

Typical values are '"electronicNoise', 'pileupNoise', or '"totalNoise' (default)

Definition at line 48 of file CaloCellsHandlerTool.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_totalNoiseKey

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

Definition at line 55 of file CaloCellsHandlerTool.h.

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< AlgTool > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< AlgTool > >::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
Gep::CustomCaloCell::phiGranularity
float phiGranularity
Definition: CustomCaloCell.h:33
RunTileCalibRec.cells
cells
Definition: RunTileCalibRec.py:271
egammaPIDObs::IsEM
@ IsEM
cut-based identification for egamma objects (cluster and track-based)
Definition: egammaPIDdefsObs.h:55
Gep::CustomCaloCell::x
float x
Definition: CustomCaloCell.h:39
Gep::CustomCaloCell::detName
std::string detName
Definition: CustomCaloCell.h:53
Gep::CustomCaloCell::phi
float phi
Definition: CustomCaloCell.h:27
Gep::CustomCaloCell::sampling
unsigned int sampling
Definition: CustomCaloCell.h:51
Gep::CustomCaloCell::layer
int layer
Definition: CustomCaloCell.h:42
CaloCell_Base_ID::calo_cell_hash
IdentifierHash calo_cell_hash(const Identifier cellId) const
create hash id from 'global' cell id
Gep::CustomCaloCell::isEM_barrelNeg
bool isEM_barrelNeg
Definition: CustomCaloCell.h:47
ReadCellNoiseFromCool.cell
cell
Definition: ReadCellNoiseFromCool.py:53
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
Gep::CustomCaloCell::eta
float eta
Definition: CustomCaloCell.h:26
SG::ReadCondHandle
Definition: ReadCondHandle.h:44
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
CaloCell_Base_ID::is_em_endcap
bool is_em_endcap(const Identifier id) const
test if the id belongs to the EM Endcap
Gep::CustomCaloCell::isTile
bool isTile
Definition: CustomCaloCell.h:50
Gep::CustomCaloCell::y
float y
Definition: CustomCaloCell.h:40
CaloCell_Base_ID::pos_neg
int pos_neg(const Identifier id) const
LAr field values (NOT_VALID == invalid request)
Gep::CustomCaloCell::isEM_endCap
bool isEM_endCap
Definition: CustomCaloCell.h:45
Gep::CustomCaloCell::isEM_barrelPos
bool isEM_barrelPos
Definition: CustomCaloCell.h:46
CaloDetDescriptor::dphi
double dphi() const
delta phi
Definition: CaloDetDescriptor.h:593
Gep::CustomCaloCell::cotTh
float cotTh
Definition: CustomCaloCell.h:38
Gep::CustomCaloCell::id
unsigned int id
Definition: CustomCaloCell.h:52
Gep::CustomCaloCell::isHEC
bool isHEC
Definition: CustomCaloCell.h:49
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
Gep::CustomCaloCell
Definition: CustomCaloCell.h:13
CaloCellsHandlerTool::m_electronicNoiseKey
SG::ReadCondHandleKey< CaloNoise > m_electronicNoiseKey
Key of the CaloNoise Conditions data object.
Definition: CaloCellsHandlerTool.h:48
Gep::CustomCaloCell::index
int index
Definition: CustomCaloCell.h:60
CaloCell_Base_ID::calo_sample
int calo_sample(const Identifier id) const
returns an int taken from Sampling enum and describing the subCalo to which the Id belongs.
Definition: CaloCell_Base_ID.cxx:141
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
CaloCell_Base_ID::is_tile
bool is_tile(const Identifier id) const
test if the id belongs to the Tiles
CaloNoise::getNoise
float getNoise(const IdentifierHash h, const int gain) const
Accessor by IdentifierHash and gain.
Definition: CaloNoise.h:34
CaloCell_Base_ID::is_hec
bool is_hec(const Identifier id) const
test if the id belongs to the HEC
Gep::CustomCaloCell::time
float time
Definition: CustomCaloCell.h:19
Gep::CustomCaloCell::cosTh
float cosTh
Definition: CustomCaloCell.h:35
AthCommonDataStore< AthCommonMsg< AlgTool > >::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
Gep::CustomCaloCell::quality
unsigned int quality
Definition: CustomCaloCell.h:20
CaloCellsHandlerTool::m_totalNoiseKey
SG::ReadCondHandleKey< CaloNoise > m_totalNoiseKey
Definition: CaloCellsHandlerTool.h:55
Gep::CustomCaloCell::sinPhi
float sinPhi
Definition: CustomCaloCell.h:36
Gep::CustomCaloCell::electronicNoise
float electronicNoise
Definition: CustomCaloCell.h:23
Gep::CustomCaloCell::z
float z
Definition: CustomCaloCell.h:41
CaloCell_Base_ID::is_em
bool is_em(const Identifier id) const
test if the id belongs to LArEM
Gep::CustomCaloCell::provenance
unsigned int provenance
Definition: CustomCaloCell.h:21
AthCommonDataStore
Definition: AthCommonDataStore.h:52
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
CaloCell_Base_ID::is_fcal
bool is_fcal(const Identifier id) const
test if the id belongs to the FCAL - true also for MiniFCAL
Gep::CustomCaloCell::isEM
bool isEM
Definition: CustomCaloCell.h:43
Gep::CustomCaloCell::totalNoise
float totalNoise
Definition: CustomCaloCell.h:22
Gep::CustomCaloCell::e
float e
Definition: CustomCaloCell.h:17
Gep::CustomCaloCell::etaMin
float etaMin
Definition: CustomCaloCell.h:28
Gep::CustomCaloCell::phiMin
float phiMin
Definition: CustomCaloCell.h:30
Gep::CustomCaloCell::etaMax
float etaMax
Definition: CustomCaloCell.h:29
Gep::CustomCaloCell::isFCAL
bool isFCAL
Definition: CustomCaloCell.h:48
test_pyathena.parent
parent
Definition: test_pyathena.py:15
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
CHECK
#define CHECK(...)
Evaluate an expression and check for errors.
Definition: Control/AthenaKernel/AthenaKernel/errorcheck.h:422
Gep::CustomCaloCell::et
float et
Definition: CustomCaloCell.h:18
Gep::CustomCaloCell::sinTh
float sinTh
Definition: CustomCaloCell.h:34
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
CaloDetDescriptor::deta
double deta() const
delta eta
Definition: CaloDetDescriptor.h:588
LArNeighbours::super3D
@ super3D
Definition: LArNeighbours.h:29
AthAlgTool::AthAlgTool
AthAlgTool()
Default constructor:
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
CaloCellContainer::findCell
const CaloCell * findCell(const IdentifierHash theHash) const
fast find method given identifier hash.
Definition: CaloCellContainer.cxx:345
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
CaloNoise
Definition: CaloNoise.h:16
CaloCell_Base_ID::is_em_barrel
bool is_em_barrel(const Identifier id) const
test if the id belongs to the EM barrel
Gep::CustomCaloCell::etaGranularity
float etaGranularity
Definition: CustomCaloCell.h:32
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
Gep::CustomCaloCell::phiMax
float phiMax
Definition: CustomCaloCell.h:31
CaloCell_Base_ID::get_neighbours
int get_neighbours(const IdentifierHash caloHash, const LArNeighbours::neighbourOption &option, std::vector< IdentifierHash > &neighbourList) const
access to hashes for neighbours return == 0 for neighbours found
Definition: CaloCell_Base_ID.cxx:190
SG::CondHandleKey::initialize
StatusCode initialize(bool used=true)
CaloCell::ID
Identifier ID() const
get ID (from cached data member) non-virtual and inline for fast access
Definition: CaloCell.h:279
a
TList * a
Definition: liststreamerinfos.cxx:10
h
CaloCell
Data object for each calorimeter readout cell.
Definition: CaloCell.h:57
CaloDetDescriptor
This is a base class for LAr and Tile Descriptors The primary goal is to speed up loops over all the ...
Definition: CaloDetDescriptor.h:58
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
LArNewCalib_DelayDump_OFC_Cali.idx
idx
Definition: LArNewCalib_DelayDump_OFC_Cali.py:69
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:616
declareProperty
#define declareProperty(n, p, h)
Definition: BaseFakeBkgTool.cxx:15
Gep::CustomCaloCell::cosPhi
float cosPhi
Definition: CustomCaloCell.h:37
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:790
CaloCellsHandlerTool::getNeighbours
std::vector< unsigned int > getNeighbours(const CaloCellContainer &allcells, const CaloCell *acell, const EventContext &) const
Definition: CaloCellsHandlerTool.cxx:142
CaloSampling::getSamplingName
static std::string getSamplingName(CaloSample theSample)
Returns a string (name) for each CaloSampling.
Definition: Calorimeter/CaloGeoHelpers/Root/CaloSampling.cxx:18
Gep::CustomCaloCell::neighbours
std::vector< unsigned int > neighbours
Definition: CustomCaloCell.h:54
Gep::CustomCaloCell::sigma
float sigma
Definition: CustomCaloCell.h:24
IdentifierHash
Definition: IdentifierHash.h:38
Identifier::get_identifier32
Identifier32 get_identifier32(void) const
Get the 32-bit version Identifier, will be invalid if >32 bits needed.
Gep::CustomCaloCell::isBad
bool isBad
Definition: CustomCaloCell.h:25
LArCellBinning.etamin
etamin
Definition: LArCellBinning.py:137
CaloCellsHandlerTool::m_CaloCell_ID
const CaloCell_ID * m_CaloCell_ID
Definition: CaloCellsHandlerTool.h:61
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
Gep::CustomCaloCell::isEM_barrel
bool isEM_barrel
Definition: CustomCaloCell.h:44
fitman.k
k
Definition: fitman.py:528