LDMX Software
RawSiStripHit.cxx
1
2#include "Tracking/Event/RawSiStripHit.h"
3
4namespace ldmx {
5
6RawSiStripHit::RawSiStripHit(std::vector<short> samples, long time)
7 : samples_(samples), time_(time) {}
8
10 samples_.clear();
11 time_ = 0;
12}
13
14std::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
Implementation of a raw digitized hit from a silicon strip detector.
long time_
The hit time stamp in units of ns.
RawSiStripHit()=default
Default constructor.
void Clear()
Clear the vector of samples and set the timestamp to 0.
std::vector< short > samples_
16 bit ADC samples associated with this hit.