|
ATLAS Offline Software
|
Go to the documentation of this file.
87 if (fabs(
dt)<delta/2.) {
110 int sizeInp = hitInp->
size();
111 for (
int i=0;
i<sizeInp; ++
i) {
126 return s_cabling->s2h_channel_id(
m_pmt_id);
130 return s_cabling->pmt2tt_id(
m_pmt_id);
134 return s_cabling->pmt2mt_id(
m_pmt_id);
143 std::cout << (std::string) (*
this) << std::endl;
146 TileHit::operator std::string()
const
148 std::ostringstream
text;
151 text <<
" Id = " + s_cabling->getTileID()->to_string(m_pmt_id,-1);
152 print_to_stream(m_energy,
" ener =",
text);
153 print_to_stream(m_time,
" time =",
text);
158 const std::string &
label,
159 std::ostringstream &
text)
163 std::vector<float>::const_iterator
it1=
val.begin();
164 std::vector<float>::const_iterator it2=
val.end();
void scale(float coeff)
Scale energy of all sub-hits in a hit
int frag_ID(void) const
Return frag ID (like in BS file)
Identifier mt_ID(void) const
Return muon trigger ID
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.
static const TileCablingService * getInstance()
get pointer to service instance
Identifier identify(const UncalibratedMeasurement *meas)
Returns the associated identifier.
int size(void) const
Return length of energy/time vectors
std::vector< HWIdentifier >::iterator it1
int add(float energy, float time)
Add sub-hit to a given hit.
double time(int ind=0) const
Return time of ind-th sub-hit
void print(void) const
Dump contents of the hit to std::out
double energy(int ind=0) const
Return energy of ind-th sub-hit
int size(void) const
Return length of energy/time vectors
constexpr double coeff(unsigned int l, unsigned int k)
Calculates the n-th coefficient of the legendre polynomial series.
Identifier tt_ID(void) const
Return trigger tower ID
Identifier m_pmt_id
Logical ID of the pmt
def time(flags, cells_name, *args, **kw)
HWIdentifier pmt_HWID(void) const
Return pmt hardware ID (== channel ID)
float energy(int ind=0) const
Return energy of ind-th sub-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
std::vector< float > m_energy
Energy deposited in scint, as seen by pmt in sepatate time bins