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

Concrete tool for CaloTower building in Tile. More...

#include <TileTowerBuilderTool.h>

Inheritance diagram for TileTowerBuilderTool:
Collaboration diagram for TileTowerBuilderTool:

Public Member Functions

 TileTowerBuilderTool (const std::string &name, const std::string &type, const IInterface *parent)
 AlgTool constructor.
virtual ~TileTowerBuilderTool ()
virtual StatusCode execute (const EventContext &ctx, CaloTowerContainer *theContainer, const CaloCellContainer *theCell=0, const CaloTowerSeg::SubSeg *subseg=0) const override
 Run tower building and add results to the tower container.
virtual StatusCode execute (const EventContext &ctx, CaloTowerContainer *theContainer) override
 Run tower building and add results to the tower container.
virtual void setCalos (const std::vector< CaloCell_ID::SUBCALO > &v)
virtual StatusCode initializeTool () override
virtual StatusCode initialize ATLAS_NOT_THREAD_SAFE () override
 common initialization
virtual void setTowerSeg (const CaloTowerSeg &theTowerSeg) override
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 sysInitialize () override
 Perform system initialization for an algorithm.
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

Static Public Member Functions

static const InterfaceID & interfaceID ()

Protected Member Functions

virtual std::vector< CaloCell_ID::SUBCALOparseCalos (const std::vector< std::string > &includedCalos) const override
 Convert calorimeter strings to enums.
void runTimeInit (const EventContext &ctx) const
const CaloTowerSegtowerSeg () const
 Return the tower segmentation.
const CaloCellContainergetCells () const
 Retrieve cells from StoreGate.
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.

Protected Attributes

SG::ReadHandleKey< CaloCellContainerm_cellContainerName
SG::ReadCondHandleKey< CaloDetDescrManagerm_caloMgrKey {this,"CaloDetDescrManager","CaloDetDescrManager"}

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t

Private Member Functions

virtual StatusCode checkSetup (MsgStream &log)
void iterateFull (CaloTowerContainer *towers, const ElementLink< CaloCellContainer > &cellsEL) const
void iterateSubSeg (CaloTowerContainer *towers, const ElementLink< CaloCellContainer > &cellsEL, const CaloTowerSeg::SubSeg *subseg) const
StatusCode rebuildLookup (const EventContext &ctx)
 Rebuild the cell lookup table.
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Static Private Member Functions

static void addTower (const CaloTowerStore::tower_iterator tower_it, const ElementLink< CaloCellContainer > &cellsEL, CaloTower *tower)

Private Attributes

std::vector< std::string > m_includedCalos
std::vector< CaloCell_ID::SUBCALOm_caloIndices
CaloTowerStore m_cellStore
std::once_flag m_onceFlag
CaloTowerSeg m_theTowerSeg
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

Concrete tool for CaloTower building in Tile.

TileTowerBuilderTool fills CaloCells into CaloTowers for the Tile Calorimeters.

Definition at line 21 of file TileTowerBuilderTool.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

◆ TileTowerBuilderTool()

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

AlgTool constructor.

Definition at line 17 of file TileTowerBuilderTool.cxx.

19 : CaloTowerBuilderTool(name, type, parent)
20{
21}
CaloTowerBuilderTool(const CaloTowerBuilderTool &)=delete

◆ ~TileTowerBuilderTool()

TileTowerBuilderTool::~TileTowerBuilderTool ( )
virtual

Definition at line 23 of file TileTowerBuilderTool.cxx.

23 {
24}

Member Function Documentation

◆ addTower()

void CaloTowerBuilderTool::addTower ( const CaloTowerStore::tower_iterator tower_it,
const ElementLink< CaloCellContainer > & cellsEL,
CaloTower * tower )
inlinestaticprivateinherited

Definition at line 64 of file CaloTowerBuilderTool.cxx.

67{
68 CaloTowerStore::cell_iterator firstC = tower_it.firstCell();
69 CaloTowerStore::cell_iterator lastC = tower_it.lastCell();
70 int ts = tower_it.size();
71 double wsumE = tower->getBasicEnergy(); // this is not 0 since some towers already have cells from other calos.
72 const CaloCellContainer* cells = cellsEL.getDataPtr();
73 for (; firstC != lastC; ++firstC) {
74
75 unsigned int ci = firstC.hash();
76 double weightC = firstC.weight();
77 int cndx = cells->findIndex(ci);
78 const CaloCell* cellPtr = nullptr;
79 if (cndx >= 0)
80 cellPtr = (*cells)[cndx];
81 // get weights
82 if (cellPtr) {
83 wsumE += weightC * cellPtr->e(); // Summ up weighted energies .
84 tower->addUniqueCellNoKine(cellsEL, cndx, weightC, ts); // add cells to tower.
85 }
86 /* for debugging em+hec
87 if (t==5214) std::cout<<"N14\tc:"<<ci<<"\tw:"<<weightC<<"\te:"<<cellPtr->e()<<"\teta:"<<cellPtr->eta()<<"\td:"<<cellPtr->caloDDE()<<std::endl;
88 if (t==5279) std::cout<<"N79\tc:"<<ci<<"\tw:"<<weightC<<"\te:"<<cellPtr->e()<<"\teta:"<<cellPtr->eta()<<"\td:"<<cellPtr->caloDDE()<<std::endl;
89 */
90
91 }
92 tower->setE(wsumE); // update tower kinematics.
93}
virtual double e() const override final
get energy (data member) (synonym to method energy()
Definition CaloCell.h:333
void addUniqueCellNoKine(const CaloCellContainer *theContainer, index_type theIndex, double weight, size_t size_hint=0)
Add a cell (very fast)
cell_iterator lastCell() const
cell_iterator firstCell() const
virtual double getBasicEnergy() const override
Basic signal getter.
Definition CaloTower.cxx:51
virtual void setE(double theE)
set energy data member
Definition P4EEtaPhiM.h:114
int ts
Definition globals.cxx:24

◆ ATLAS_NOT_THREAD_SAFE()

virtual StatusCode initialize CaloTowerBuilderToolBase::ATLAS_NOT_THREAD_SAFE ( )
overridevirtualinherited

common initialization

Implements ICaloTowerBuilderToolBase.

◆ checkSetup()

StatusCode CaloTowerBuilderTool::checkSetup ( MsgStream & log)
privatevirtualinherited

Definition at line 245 of file CaloTowerBuilderTool.cxx.

245 {
246 // any calos registered
247 if (m_caloIndices.empty()) {
248 ATH_MSG_ERROR("no match in requested calorimeter ranges ("
249 << m_includedCalos.size() << " requested)");
250 // print out requested keys
251 for (unsigned int iCalos = 0; iCalos < m_includedCalos.size(); iCalos++) {
252 if (iCalos == 0) {
253 msg(MSG::ERROR) << "requested key(s): " << m_includedCalos[iCalos];
254 } else if (iCalos == m_includedCalos.size() - 1) {
255 ATH_MSG_ERROR("," << m_includedCalos[iCalos] << " all not known!");
256 } else {
257 msg(MSG::ERROR) << "," << m_includedCalos[iCalos];
258 }
259 }
260 return StatusCode::FAILURE;
261 }
262 return StatusCode::SUCCESS;
263}
#define ATH_MSG_ERROR(x)
std::vector< std::string > m_includedCalos
std::vector< CaloCell_ID::SUBCALO > m_caloIndices
MsgStream & msg
Definition testRead.cxx:32

◆ declareGaudiProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< AlgTool > >::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< AlgTool > >::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< AlgTool > >::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< AlgTool > >::evtStore ( )
inlineinherited

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

Definition at line 85 of file AthCommonDataStore.h.

◆ execute() [1/2]

StatusCode CaloTowerBuilderTool::execute ( const EventContext & ctx,
CaloTowerContainer * theContainer )
overridevirtualinherited

Run tower building and add results to the tower container.

Parameters
ctxThe current event context.
theContainerThe tower container to fill.

If the segmentation hasn't been set, take it from the tower container. This is for use by converters.

Implements CaloTowerBuilderToolBase.

Definition at line 228 of file CaloTowerBuilderTool.cxx.

230{
231 if (m_cellStore.size() == 0) {
232 setTowerSeg (theContainer->towerseg());
233 ATH_CHECK( rebuildLookup(ctx) );
234 }
235
236 return execute (ctx, theContainer, nullptr, nullptr);
237}
#define ATH_CHECK
Evaluate an expression and check for errors.
virtual void setTowerSeg(const CaloTowerSeg &theTowerSeg) override
virtual StatusCode execute(const EventContext &ctx, CaloTowerContainer *theContainer, const CaloCellContainer *theCell=0, const CaloTowerSeg::SubSeg *subseg=0) const override
Run tower building and add results to the tower container.
StatusCode rebuildLookup(const EventContext &ctx)
Rebuild the cell lookup table.
const CaloTowerSeg & towerseg() const
Return a copy of the attached CaloTowerSeg.

◆ execute() [2/2]

StatusCode CaloTowerBuilderTool::execute ( const EventContext & ctx,
CaloTowerContainer * theTowers,
const CaloCellContainer * theCells = 0,
const CaloTowerSeg::SubSeg * subseg = 0 ) const
overridevirtualinherited

Run tower building and add results to the tower container.

If a cell container is provided, use that; otherwise, fetch from SG (the key is given by a job property). If subseg is provided, then we do the building only within the rectangular region that it describes. The segmentation of the tower container must match the region over which we're running the tower building.

Parameters
ctxThe current event context.
theContainerThe tower container to fill.
theCellThe cell container to read. If null, we fetch from SG.
subsegIf provided, run tower building only within this window. The tower container segmentation must match.

Implements CaloTowerBuilderToolBase.

Definition at line 173 of file CaloTowerBuilderTool.cxx.

177{
178
179
180 //Init internal structure m_cellStore on first invocation
181 //Alignment updates are not taken into account!
182 std::call_once(m_onceFlag,&CaloTowerBuilderTool::runTimeInit,this,ctx);
183
184 // CaloCellContainer
185 if (!theCells) {
186 theCells = getCells();
187 if (!theCells) {
188 return StatusCode::SUCCESS;
189 }
190 }
191
192 const ElementLink<CaloCellContainer> cellsEL (*theCells, 0, ctx);
193 if (subseg)
194 iterateSubSeg (theTowers, cellsEL, subseg);
195 else
196 iterateFull (theTowers, cellsEL);
197
198 for (unsigned int i = 0; i < m_caloIndices.size(); i++) {
199 theTowers->setCalo(m_caloIndices[i]);
200 }
201
202 ATH_MSG_DEBUG("Number of Towers in CaloTowerContainer: "<< theTowers->size());
203
204 /* for debug purposes
205 double summ=0;
206 std::cout << " Number of Towers in CaloTowerContainer: "<< theTowers->size() << std::endl;
207 for ( unsigned int t=0; t<theTowers->size(); ++t ) { // TOWER Loop
208 CaloTower* aTower = theTowers->getTower(t); // get tower
209 double E=aTower->getBasicEnergy();
210 summ+=E;
211 std::cout<<"Tower: "<<t<<"\te:"<<E<<std::endl;
212 }
213 std::cout<<"================ SUMM\t"<<summ<<std::endl;
214 */
215
216 return StatusCode::SUCCESS;
217}
#define ATH_MSG_DEBUG(x)
const CaloCellContainer * getCells() const
Retrieve cells from StoreGate.
void runTimeInit(const EventContext &ctx) const
void iterateFull(CaloTowerContainer *towers, const ElementLink< CaloCellContainer > &cellsEL) const
void iterateSubSeg(CaloTowerContainer *towers, const ElementLink< CaloCellContainer > &cellsEL, const CaloTowerSeg::SubSeg *subseg) const
void setCalo(const CaloCell_ID::SUBCALO &nCalo)
Adds a calorimeter index to the tower.
size_type size() const noexcept
Returns the number of elements in the collection.

◆ 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

◆ getCells()

const CaloCellContainer * CaloTowerBuilderToolBase::getCells ( ) const
protectedinherited

Retrieve cells from StoreGate.

Definition at line 59 of file CaloTowerBuilderToolBase.cxx.

60{
61 const CaloCellContainer* cells = nullptr;
62 if (!m_cellContainerName.key().empty()) {
64 if (!cells) {
65 ATH_MSG_WARNING("no CaloCellContainer with key <"
66 << m_cellContainerName.key() << "> found, skip tool!");
67
68 }
69 }
70 return cells;
71}
#define ATH_MSG_WARNING(x)
SG::ReadHandleKey< CaloCellContainer > m_cellContainerName
const T * get(const ReadCondHandleKey< T > &key, const EventContext &ctx)
Convenience function to retrieve an object given a ReadCondHandleKey.

◆ initializeTool()

StatusCode CaloTowerBuilderTool::initializeTool ( )
overridevirtualinherited

Implements CaloTowerBuilderToolBase.

Definition at line 52 of file CaloTowerBuilderTool.cxx.

52 {
54 return this->checkSetup(msg());
55}
virtual StatusCode checkSetup(MsgStream &log)
virtual std::vector< CaloCell_ID::SUBCALO > parseCalos(const std::vector< std::string > &includedCalos) const
Convert calorimeter strings to enums.

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

◆ interfaceID()

const InterfaceID & ICaloTowerBuilderToolBase::interfaceID ( )
inlinestaticinherited

Definition at line 70 of file ICaloTowerBuilderToolBase.h.

70 {
71 static const InterfaceID IID("ICaloTowerBuilderToolBase", 1 , 0);
72 return IID;
73 }

◆ iterateFull()

void CaloTowerBuilderTool::iterateFull ( CaloTowerContainer * towers,
const ElementLink< CaloCellContainer > & cellsEL ) const
inlineprivateinherited

Definition at line 98 of file CaloTowerBuilderTool.cxx.

100{
101 size_t sz = towers->size();
102 assert(m_cellStore.size() == sz);
104
105 for (unsigned int t = 0; t < sz; ++t, ++tower_it) {
106 CaloTower* aTower = towers->getTower(t);
107 addTower (tower_it, cellsEL, aTower);
108 }
109}
static Double_t sz
static void addTower(const CaloTowerStore::tower_iterator tower_it, const ElementLink< CaloCellContainer > &cellsEL, CaloTower *tower)
friend class tower_iterator

◆ iterateSubSeg()

void CaloTowerBuilderTool::iterateSubSeg ( CaloTowerContainer * towers,
const ElementLink< CaloCellContainer > & cellsEL,
const CaloTowerSeg::SubSeg * subseg ) const
inlineprivateinherited

Definition at line 114 of file CaloTowerBuilderTool.cxx.

117{
118 size_t sz = towers->size();
119 assert(subseg->size() == sz);
120 CaloTowerStore::tower_subseg_iterator tower_it = m_cellStore.towers(*subseg);
121
122#if 0
123 for (unsigned int t = 0; t < sz; ++t, ++tower_it) {
124 CaloTower* aTower = towers->getTower(tower_it.itower());
125 addTower (tower_it, cellsEL, aTower);
126 }
127#endif
128 // This loop was originally written as above. However, if we increment
129 // tower_it at the end of the iteration, then it will end up doing
130 // an out-of-bounds read (in tower_iterator::operator+=).
131 // Best to just avoid incrementing it if we don't need to;
132 // that also saves a bit of useless work.
133 unsigned int t = 0;
134 while (true) {
135 CaloTower* aTower = towers->getTower(tower_it.itower());
136 addTower (tower_it, cellsEL, aTower);
137 ++t;
138 if (t >= sz) break;
139 ++tower_it;
140 }
141}
size_t itower() const
The tower index to which the iterator is referring.
size_t size() const
The number of towers in this window.
CaloTowerSeg::SubSegIterator< tower_iterator > tower_subseg_iterator

◆ msg()

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

Definition at line 24 of file AthCommonMsg.h.

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

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

◆ parseCalos()

std::vector< CaloCell_ID::SUBCALO > TileTowerBuilderTool::parseCalos ( const std::vector< std::string > & includedCalos) const
overrideprotectedvirtual

Convert calorimeter strings to enums.

Parameters
includedCalosProperty with calorimeter strings.

Reimplemented from CaloTowerBuilderTool.

Definition at line 32 of file TileTowerBuilderTool.cxx.

34{
35 // convert to enumerators
36 std::vector<CaloCell_ID::SUBCALO> indices;
37
38 for (const std::string& s : includedCalos) {
39 if (s == "TILE") {
40 indices.push_back(CaloCell_ID::TILE);
41 }
42 }
43
44 return indices;
45}
std::pair< long int, long int > indices

◆ rebuildLookup()

StatusCode CaloTowerBuilderTool::rebuildLookup ( const EventContext & ctx)
privateinherited

Rebuild the cell lookup table.

Definition at line 308 of file CaloTowerBuilderTool.cxx.

308 {
309 if (towerSeg().neta() != 0 && towerSeg().nphi() != 0) {
310 ATH_MSG_DEBUG("Building lookup table");
311 SG::ReadCondHandle<CaloDetDescrManager> caloMgrHandle(m_caloMgrKey,ctx);
312 const CaloDetDescrManager* caloDDM=*caloMgrHandle;
313 if (m_cellStore.buildLookUp(*caloDDM, towerSeg(), m_caloIndices)) {
314 return StatusCode::SUCCESS;
315 }
316 }
317 return StatusCode::FAILURE;
318}
const CaloTowerSeg & towerSeg() const
Return the tower segmentation.
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey

◆ 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();
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< AlgTool > >::renounceArray ( SG::VarHandleKeyArray & handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364 {
366 }

◆ runTimeInit()

void CaloTowerBuilderTool::runTimeInit ( const EventContext & ctx) const
protectedinherited

Definition at line 149 of file CaloTowerBuilderTool.cxx.

149 {
150 //cast alway const-ness, acceptable since this is protected under a std::call_once
152 if( thisNC->rebuildLookup(ctx)!=StatusCode::SUCCESS )
153 throw std::runtime_error("LArFCalTowerBuilderTool::runTimeInit rebuildLookup table failed");
154 }
#define ATLAS_THREAD_SAFE

◆ setCalos()

void CaloTowerBuilderTool::setCalos ( const std::vector< CaloCell_ID::SUBCALO > & v)
virtualinherited

Definition at line 265 of file CaloTowerBuilderTool.cxx.

266{
267 if (m_caloIndices != v) {
268 if (m_cellStore.size() > 0) {
269 if (rebuildLookup(Gaudi::Hive::currentContext()).isFailure()) {
270 ATH_MSG_ERROR("rebuildLookup failed.");
271 }
272 }
274 }
275}

◆ setTowerSeg()

void CaloTowerBuilderToolBase::setTowerSeg ( const CaloTowerSeg & theTowerSeg)
overridevirtualinherited

Implements ICaloTowerBuilderToolBase.

Definition at line 37 of file CaloTowerBuilderToolBase.cxx.

37 {
38
39 ATH_MSG_DEBUG(" in CaloTowerBuilderToolBase::setTowerSeg ");
40 m_theTowerSeg = theTowerSeg;
41 ATH_MSG_DEBUG(" neta,nphi,etamin,etamax " << theTowerSeg.neta()
42 << " " << theTowerSeg.nphi() << " " << theTowerSeg.etamin()
43 << " " << theTowerSeg.etamax());
44}
index_t nphi() const
Retrieve number of bins.
index_t neta() const
Retrieve number of bins.
double etamin() const
Retrieve lower boundary value range.
double etamax() const
Retrieve upper boundary value range.

◆ 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 asg::AsgMetadataTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and DerivationFramework::CfAthAlgTool.

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

◆ towerSeg()

const CaloTowerSeg & CaloTowerBuilderToolBase::towerSeg ( ) const
protectedinherited

Return the tower segmentation.

Definition at line 50 of file CaloTowerBuilderToolBase.cxx.

51{
52 return m_theTowerSeg;
53}

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

Member Data Documentation

◆ m_caloIndices

std::vector<CaloCell_ID::SUBCALO> CaloTowerBuilderTool::m_caloIndices
privateinherited

Definition at line 105 of file CaloTowerBuilderTool.h.

◆ m_caloMgrKey

SG::ReadCondHandleKey<CaloDetDescrManager> CaloTowerBuilderToolBase::m_caloMgrKey {this,"CaloDetDescrManager","CaloDetDescrManager"}
protectedinherited

Definition at line 95 of file CaloTowerBuilderToolBase.h.

95{this,"CaloDetDescrManager","CaloDetDescrManager"};

◆ m_cellContainerName

SG::ReadHandleKey<CaloCellContainer> CaloTowerBuilderToolBase::m_cellContainerName
protectedinherited

Definition at line 92 of file CaloTowerBuilderToolBase.h.

◆ m_cellStore

CaloTowerStore CaloTowerBuilderTool::m_cellStore
privateinherited

Definition at line 111 of file CaloTowerBuilderTool.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_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_includedCalos

std::vector<std::string> CaloTowerBuilderTool::m_includedCalos
privateinherited

Definition at line 99 of file CaloTowerBuilderTool.h.

◆ m_onceFlag

std::once_flag CaloTowerBuilderTool::m_onceFlag
mutableprivateinherited

Definition at line 112 of file CaloTowerBuilderTool.h.

◆ m_theTowerSeg

CaloTowerSeg CaloTowerBuilderToolBase::m_theTowerSeg
privateinherited

Definition at line 99 of file CaloTowerBuilderToolBase.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: