Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
20 #ifndef TILESIMEVENT_TILEHIT_H
21 #define TILESIMEVENT_TILEHIT_H
97 std::string
whoami (
void)
const {
return "TileHit"; }
99 void print (
void)
const;
102 operator std::string()
const;
106 const std::string &
label,
107 std::ostringstream &
text);
119 #endif //TILESIMEVENT_TILEHIT_H
void scale(float coeff)
Scale energy of all sub-hits in a hit
Identifier identify(void) const
Return logical ID of the pmt.
int frag_ID(void) const
Return frag ID (like in BS file)
Identifier mt_ID(void) const
Return muon trigger ID
~TileHit()
Default destructor.
TileHit()
Default constructor needed for POOL.
static void print_to_stream(const std::vector< float > &val, const std::string &label, std::ostringstream &text)
Print contents of one vector to output stream.
int size(void) const
Return length of energy/time vectors
void reserve(int len)
Reserve length of energy and time vectors in a hit
void resize(int len)
Resize energy and time vectors in a hit
int add(float energy, float time)
Add sub-hit to a given hit.
void setEnergy(float e, int ind=0)
Set energy of ind-th sub-hit in a hit
void print(void) const
Dump contents of the hit to std::out
void addEnergy(float e)
Add energy to the first sub-hit in a hit
std::string whoami(void) const
Return name of this object
Identifier tt_ID(void) const
Return trigger tower ID
constexpr double coeff(const unsigned l, const unsigned k)
Calculates the n-th coefficient of the legendre polynomial series.
Identifier m_pmt_id
Logical ID of the pmt
HWIdentifier pmt_HWID(void) const
Return pmt hardware ID (== channel ID)
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
std::vector< float > m_time
Time of the energy deposition relative to BC
void setZero()
Resize energy/time vectors in a hit to one and set energy/time to zero
Identifier pmt_ID(void) const
Return logical ID of the pmt.
std::vector< float > m_energy
Energy deposited in scint, as seen by pmt in sepatate time bins