LDMX Software
RawSiStripHit.cxx
1
2#include "Tracking/Event/RawSiStripHit.h"
3
4ClassImp(ldmx::RawSiStripHit);
5
6namespace ldmx {
7
8RawSiStripHit::RawSiStripHit(uint8_t channel, std::vector<short> samples,
9 long time)
10 : SiStripHit(samples, time), channel_(channel) {}
11
13 clearBase();
14 channel_ = 0;
15 apv_id_ = 0;
16 hybrid_id_ = 0;
17 feb_id_ = 0;
18 apv_trigger_ = 0;
19 read_error_ = 0;
20 head_ = 0;
21 tail_ = 0;
22 filter_ = 0;
23}
24
25std::ostream& operator<<(std::ostream& output, const RawSiStripHit& hit) {
26 output << "[ RawSiStripHit ]: Samples: { ";
27 for (auto isample{0}; isample < (hit.samples_.size() - 1); ++isample)
28 output << hit.samples_[isample] << ", ";
29 output << hit.samples_[hit.samples_.size() - 1] << " } "
30 << "Time: " << hit.time_ << " Ch: " << static_cast<int>(hit.channel_)
31 << " APV: " << static_cast<int>(hit.apv_id_)
32 << " Hybrid: " << static_cast<int>(hit.hybrid_id_)
33 << " FEB: " << static_cast<int>(hit.feb_id_)
34 << " Trig: " << hit.apv_trigger_
35 << " Err: " << static_cast<int>(hit.read_error_) << std::endl;
36
37 return output;
38}
39
40} // namespace ldmx
Implementation of a raw digitized hit from a silicon strip detector.
RawSiStripHit()=default
Default constructor.
void clear() override
Clear the samples, time stamp and electronics/quality fields.
Abstract base class for a silicon strip detector hit.
Definition SiStripHit.h:27
long time_
The hit time stamp in units of ns.
Definition SiStripHit.h:103
void clearBase()
Clear the fields owned by the base class.
Definition SiStripHit.h:94
std::vector< short > samples_
16 bit ADC samples associated with this hit.
Definition SiStripHit.h:100