|
ATLAS Offline Software
|
Go to the documentation of this file.
23 throw std::runtime_error (
"TileHit_p1 vector size mismatch");
28 for (
size_t i = 0;
i <
sz;
i++) {
39 size_t sz = transObj->
size();
42 for (
size_t i = 0;
i <
sz;
i++) {
Identifier identify(void) const
Return logical ID of the pmt.
Identifier32 get_identifier32() const
Get the 32-bit version Identifier, will be invalid if >32 bits needed.
value_type get_compact() const
Get the compact id.
int size(void) const
Return length of energy/time vectors
std::vector< float > m_time
void resize(int len)
Resize energy and time vectors in a hit
virtual void persToTrans(const TileHit_p1 *persObj, TileHit *transObj, MsgStream &log) const override
void setEnergy(float e, int ind=0)
Set energy of ind-th sub-hit in a hit
std::vector< float > m_energy
float energy(int ind=0) const
Return energy of ind-th sub-hit
void setTime(float t, int ind=0)
Set time of ind-th sub-hit in a hit
float time(int ind=0) const
Return time of ind-th sub-hit
virtual void transToPers(const TileHit *transObj, TileHit_p1 *persObj, MsgStream &log) const override