![]() |
ATLAS Offline Software
|
#include <TileHit.h>
Public Member Functions | |
| TileHit () | |
| Default constructor needed for POOL. More... | |
| TileHit (const TileSimHit *hitInp) | |
| Constructor which copies everything from TileSimHit. More... | |
| TileHit (const Identifier &id, float energy=0.0, float time=0.0) | |
| Constructor for single hit without time binning. More... | |
| TileHit (const Identifier &id, float energy, float time, float deltaT) | |
| Constructor with time rounding to the center of nearest deltaT bin. More... | |
| ~TileHit () | |
| Default destructor. More... | |
| int | add (float energy, float time) |
| Add sub-hit to a given hit. More... | |
| int | add (float energy, float time, float deltaT) |
| Add sub-hit to a given hit with time rounding to the center of nearest deltaT bin. More... | |
| int | add (const TileHit *hitInp, float deltaT) |
| Addi all sub-hits from another hit to a given hit. More... | |
| void | scale (float coeff) |
| Scale energy of all sub-hits in a hit More... | |
| void | addEnergy (float e) |
| Add energy to the first sub-hit in a hit More... | |
| void | setEnergy (float e, int ind=0) |
| Set energy of ind-th sub-hit in a hit More... | |
| void | setTime (float t, int ind=0) |
| Set time of ind-th sub-hit in a hit More... | |
| void | resize (int len) |
| Resize energy and time vectors in a hit More... | |
| void | reserve (int len) |
| Reserve length of energy and time vectors in a hit More... | |
| void | setZero () |
| Resize energy/time vectors in a hit to one and set energy/time to zero More... | |
| Identifier | identify (void) const |
| Return logical ID of the pmt. More... | |
| Identifier | pmt_ID (void) const |
| Return logical ID of the pmt. More... | |
| HWIdentifier | pmt_HWID (void) const |
| Return pmt hardware ID (== channel ID) More... | |
| Identifier | tt_ID (void) const |
| Return trigger tower ID More... | |
| Identifier | mt_ID (void) const |
| Return muon trigger ID More... | |
| int | frag_ID (void) const |
| Return frag ID (like in BS file) More... | |
| float | energy (int ind=0) const |
| Return energy of ind-th sub-hit More... | |
| float | time (int ind=0) const |
| Return time of ind-th sub-hit More... | |
| int | size (void) const |
| Return length of energy/time vectors More... | |
| std::string | whoami (void) const |
| Return name of this object More... | |
| void | print (void) const |
| Dump contents of the hit to std::out More... | |
| operator std::string () const | |
| Return contents of the hit in a form of string. More... | |
Static Public Member Functions | |
| 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. More... | |
Private Attributes | |
| Identifier | m_pmt_id |
| Logical ID of the pmt More... | |
| std::vector< float > | m_energy |
| Energy deposited in scint, as seen by pmt in sepatate time bins More... | |
| std::vector< float > | m_time |
| Time of the energy deposition relative to BC More... | |
Definition at line 29 of file TileSimEvent/TileSimEvent/TileHit.h.
|
inline |
Default constructor needed for POOL.
Definition at line 34 of file TileSimEvent/TileSimEvent/TileHit.h.
| TileHit::TileHit | ( | const TileSimHit * | hitInp | ) |
Constructor which copies everything from TileSimHit.
Definition at line 62 of file TileHit.cxx.
| TileHit::TileHit | ( | const Identifier & | id, |
| float | energy = 0.0, |
||
| float | time = 0.0 |
||
| ) |
| TileHit::TileHit | ( | const Identifier & | id, |
| float | energy, | ||
| float | time, | ||
| float | deltaT | ||
| ) |
Constructor with time rounding to the center of nearest deltaT bin.
Definition at line 47 of file TileHit.cxx.
|
inline |
| int TileHit::add | ( | float | energy, |
| float | time | ||
| ) |
| int TileHit::add | ( | float | energy, |
| float | time, | ||
| float | deltaT | ||
| ) |
Add sub-hit to a given hit with time rounding to the center of nearest deltaT bin.
Definition at line 81 of file TileHit.cxx.
|
inline |
Add energy to the first sub-hit in a hit
Definition at line 61 of file TileSimEvent/TileSimEvent/TileHit.h.
|
inline |
| int TileHit::frag_ID | ( | void | ) | const |
Return frag ID (like in BS file)
Definition at line 137 of file TileHit.cxx.
|
inline |
| Identifier TileHit::mt_ID | ( | void | ) | const |
Return muon trigger ID
Definition at line 133 of file TileHit.cxx.
| TileHit::operator std::string | ( | ) | const |
Return contents of the hit in a form of string.
Can be used in a cast operation : (std::string) TileHit
Definition at line 146 of file TileHit.cxx.
| HWIdentifier TileHit::pmt_HWID | ( | void | ) | const |
Return pmt hardware ID (== channel ID)
Definition at line 125 of file TileHit.cxx.
|
inline |
| void TileHit::print | ( | void | ) | const |
Dump contents of the hit to std::out
Definition at line 141 of file TileHit.cxx.
|
inline |
Reserve length of energy and time vectors in a hit
Definition at line 69 of file TileSimEvent/TileSimEvent/TileHit.h.
|
inline |
Resize energy and time vectors in a hit
Definition at line 67 of file TileSimEvent/TileSimEvent/TileHit.h.
| void TileHit::scale | ( | float | coeff | ) |
|
inline |
Set energy of ind-th sub-hit in a hit
Definition at line 63 of file TileSimEvent/TileSimEvent/TileHit.h.
|
inline |
Set time of ind-th sub-hit in a hit
Definition at line 65 of file TileSimEvent/TileSimEvent/TileHit.h.
|
inline |
|
inline |
Return length of energy/time vectors
Definition at line 94 of file TileSimEvent/TileSimEvent/TileHit.h.
|
inline |
| Identifier TileHit::tt_ID | ( | void | ) | const |
Return trigger tower ID
Definition at line 129 of file TileHit.cxx.
|
inline |
Return name of this object
Definition at line 97 of file TileSimEvent/TileSimEvent/TileHit.h.
|
private |
Energy deposited in scint, as seen by pmt in sepatate time bins
Definition at line 114 of file TileSimEvent/TileSimEvent/TileHit.h.
|
private |
Logical ID of the pmt
Definition at line 112 of file TileSimEvent/TileSimEvent/TileHit.h.
|
private |
Time of the energy deposition relative to BC
Definition at line 116 of file TileSimEvent/TileSimEvent/TileHit.h.
1.8.18