LDMX Software
Tracking
src
Tracking
Event
RawSiStripHit.cxx
1
2
#include "Tracking/Event/RawSiStripHit.h"
3
4
namespace
ldmx {
5
6
RawSiStripHit::RawSiStripHit
(std::vector<short> samples,
long
time)
7
: samples_(samples), time_(time) {}
8
9
void
RawSiStripHit::Clear
() {
10
samples_
.clear();
11
time_
= 0;
12
}
13
14
std::ostream &operator<<(std::ostream &output,
const
RawSiStripHit
&hit) {
15
output <<
"[ RawSiStripHit ]: Samples: { "
;
16
for
(
auto
isample{0}; isample < (hit.
samples_
.size() - 1); ++isample)
17
output << hit.
samples_
[isample] <<
", "
;
18
output << hit.
samples_
[hit.
samples_
.size() - 1] <<
" } "
19
<<
"Time: "
<< hit.
time_
<< std::endl;
20
21
return
output;
22
}
23
24
}
// namespace ldmx
ldmx::RawSiStripHit
Implementation of a raw digitized hit from a silicon strip detector.
Definition
RawSiStripHit.h:26
ldmx::RawSiStripHit::time_
long time_
The hit time stamp in units of ns.
Definition
RawSiStripHit.h:119
ldmx::RawSiStripHit::RawSiStripHit
RawSiStripHit()=default
Default constructor.
ldmx::RawSiStripHit::Clear
void Clear()
Clear the vector of samples and set the timestamp to 0.
Definition
RawSiStripHit.cxx:9
ldmx::RawSiStripHit::samples_
std::vector< short > samples_
16 bit ADC samples associated with this hit.
Definition
RawSiStripHit.h:116
Generated by
1.9.8