|
ATLAS Offline Software
|
Go to the documentation of this file.
27 #include "CaloDetDescr/CaloDetDescrElement.h"
65 ATH_MSG_INFO(
"TileHitToCell initialisation completed" );
67 return StatusCode::SUCCESS;
89 double eCellTot = 0.0;
93 std::vector<double> enePmt1;
94 std::vector<double> enePmt2;
95 enePmt1.resize(nCellMax);
96 enePmt2.resize(nCellMax);
105 for (; hitItr != lastHit; ++hitItr) {
122 double eHit = (*hitItr)->energy();
124 double eCell = eHit * fact;
134 enePmt1[cellHash_id] = eCell;
137 enePmt2[cellHash_id] = eCell;
141 <<
" nChan=" << nChan
144 <<
" nCell=" << nCell
146 <<
" eCell=" << eCell );
152 ATH_CHECK( cellContainer.
record(std::make_unique<CaloCellContainer>()) );
155 for (
unsigned int i = 0;
i < nCellMax; ++
i) {
167 <<
" eHitTot=" << eHitTot
168 <<
" nCell=" << nCell
170 <<
" eneTot=" << eCellTot <<
endmsg;
175 return StatusCode::SUCCESS;
182 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
float getSamplingFraction(unsigned int drawerIdx, unsigned int channel) const
Return Tile Calorimeter sampling fraction.
const TileDetDescrManager * m_tileMgr
Pointer to TileDetDescrManager.
const_pointer_type cptr()
Dereference the pointer.
IdContext cell_context(void) const
id for cells
int pmt(const Identifier &id) const
This class groups all DetDescr information related to a CaloCell. Provides a generic interface for al...
SG::ReadHandleKey< TileHitContainer > m_hitContainerKey
bool msgLvl(const MSG::Level lvl) const
#define ATH_MSG_VERBOSE(x)
const std::string & key() const
Return the StoreGate ID for the referenced object.
virtual StatusCode initialize() override
initialize method
int channel(const HWIdentifier &id) const
extract channel field from HW identifier
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
const TileID * m_tileID
Pointer to TileID helper.
int ros(const HWIdentifier &id) const
extract ros field from HW identifier
calo_element_vec_size tile_cell_size() const
Handle class for recording to StoreGate.
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual StatusCode execute() override
execute method
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
SG::WriteHandleKey< CaloCellContainer > m_cellContainerKey
virtual StatusCode finalize() override
finalize method
virtual bool isValid() override final
Can the handle be successfully dereferenced?
virtual int get_hash(const Identifier &id, IdentifierHash &hash_id, const IdContext *context=0) const
create hash id from compact id (return == 0 for OK)
CaloDetDescrElement * get_cell_element(unsigned int cell_hash) const
SG::ReadCondHandleKey< TileSamplingFraction > m_samplingFractionKey
Name of TileSamplingFraction in condition store.
const TileHWID * m_tileHWID
Pointer to TileHWID helper.
StatusCode initialize(bool used=true)
int drawer(const HWIdentifier &id) const
extract drawer field from HW identifier
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
std::string to_string(const Identifier &id, int level=0) const
void push_back(CaloCell *)
reimplementation of const push_back
static unsigned int getDrawerIdx(unsigned int ros, unsigned int drawer)
Returns a drawer hash.
Handle class for reading from StoreGate.
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
virtual ~TileHitToCell()
Destructor
Identifier cell_id(const Identifier &any_id) const
This class saves the "context" of an expanded identifier (ExpandedIdentifier) for compact or hash ver...
TileHitToCell(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.