LDMX Software
TestBeamHit.cxx
Go to the documentation of this file.
1
9
10/*~~~~~~~~~~~~~~~~*/
11/* C++ StdLib */
12/*~~~~~~~~~~~~~~~~*/
13#include <iostream>
14
16
17namespace trigscint {
18void TestBeamHit::clear(Option_t* option) {
19 early_pedestal_ = -999;
20 pedestal_ = -999;
21 pulse_q_ = -999;
22 start_sample_ = -1;
23 pulse_width_ = -1;
24 samp_above_thr_ = -1;
25}
26
27std::ostream& operator<<(std::ostream& o, const TestBeamHit& c) {
28 return o << "TestBeamHit { " << "Total charge: " << c.getQ()
29 << " fC, start time sample: " << c.getStartSample()
30 << ", bar: " << c.getBarID() << ", pulseWidth: " << c.getPulseWidth()
31 << "}";
32}
33} // namespace trigscint
Class that stores full reconstructed (linearized) readout QIE sample from the TS.
void clear()
Clear the data in the object.
Definition HcalHit.cxx:9
int getBarID() const
Get the bar ID.
This class represents the linearised QIE output from the trigger scintillator, in charge (fC).
Definition TestBeamHit.h:24
int getStartSample() const
Get the pulse/hit startSample.
float getQ() const
Get hit charge.
Definition TestBeamHit.h:78
int getPulseWidth() const
Get the pulse/hit pulseWidth.