|
ATLAS Offline Software
|
Go to the documentation of this file.
14 const std::string&
name,
25 return StatusCode::SUCCESS;
30 const EventContext& ctx)
const
33 return StatusCode::SUCCESS;
40 if (!caloMgrHandle.isValid()) {
46 ATH_MSG_DEBUG(
"Executing start calo size=" <<theCellContainer->
size()<<
" Event="<<ctx.evt());
47 bool check_exist=
false;
48 if(theCellContainer->
size()>0) {
50 ATH_MSG_DEBUG(
" CaloCells do already exist: check required when creating!");
67 if (check_exist) { theCaloCell = (
CaloCell*)(theCellContainer->
findCell(theDDE->calo_hash())); }
71 E_tot += theCaloCell->
energy();
72 Et_tot += theCaloCell->
energy() / cosh(theCaloCell->
eta());
94 ATH_MSG_DEBUG(ncreate<<
" cells created, "<<nfound<<
" cells already found: size="<<theCellContainer->
size()<<
" e="<<E_tot<<
" ; et="<<Et_tot<<
". Now initialize and order calo...");
99 if (theCellContainer->
size() < hashMax) {
100 ATH_MSG_DEBUG(
"CaloCellContainer size " << theCellContainer->
size() <<
" smaller than hashMax: " << hashMax);
102 else if (theCellContainer->
size() == hashMax) {
103 ATH_MSG_DEBUG(
"CaloCellContainer size " << theCellContainer->
size() <<
" correspond to hashMax : " << hashMax);
108 <<
" larger than hashMax ! Too many cells ! " << hashMax);
118 ATH_MSG_DEBUG(
"CaloCellContainer not ordered or incomplete");
calo_element_range element_range() const
Range over element vector.
virtual void setCaloDDE(const CaloDetDescrElement *caloDDE)
set pointer to CaloDetDescrElement
bool checkOrderedAndComplete() const
verify one by one the container is complete (i.e.
void setHasTotalSize(const bool)
If @ flag is true, then the container size equals the maximum hash.
virtual void setTime(float time)
set time
void setIsOrdered(const bool ordered)
indicates that the container is ordered
This class groups all DetDescr information related to a CaloCell. Provides a generic interface for al...
bool isOrdered() const
tell wether container is ordered
virtual void setEnergy(float energy)
set energy
double energy() const
get energy (data member)
pointer nextElementPtr()
obtain the next available element in pool by pointer pool is resized if its limit has been reached On...
unsigned int capacity()
return capacity of pool OK
virtual void setQuality(uint16_t quality)
set quality
::StatusCode StatusCode
StatusCode definition for legacy code.
SUBCALO
enumeration of sub calorimeters
Helper class for offline cell identifiers.
void setGain(CaloGain::CaloGain gain=CaloGain::INVALIDGAIN)
set gain
const CaloCell * findCell(const IdentifierHash theHash) const
fast find method given identifier hash.
bool checkOrdered() const
verify one by one the container is ordered
void order()
order container
StatusCode initialize(bool used=true)
Container class for CaloCell.
This class provides the client interface for accessing the detector description information common to...
Data object for each calorimeter readout cell.
#define ATH_MSG_WARNING(x)
void push_back(CaloCell *)
reimplementation of const push_back
a typed memory pool that saves time spent allocation small object. This is typically used by containe...
const CaloCell_ID * getCaloCell_ID() const
get calo cell ID helper
unsigned int allocated()
return size already allocated OK
size_type size() const noexcept
Returns the number of elements in the collection.
void setIsOrderedAndComplete(const bool ordered)
indicate that the container is complete and in order
virtual double eta() const override final
get eta (through CaloDetDescrElement)
size_type calo_cell_hash_max(void) const
cell 'global' hash table max size