LDMX Software
TestBeamHit.cxx
Go to the documentation of this file.
1
9
10/*~~~~~~~~~~~~~~~~*/
11/* C++ StdLib */
12/*~~~~~~~~~~~~~~~~*/
13#include <iostream>
14
16
17 namespace trigscint {
18 void TestBeamHit::Clear(Option_t * option) {
19 earlyPedestal_ = -999;
20 pedestal_ = -999;
21 pulseQ_ = -999;
22 startSample_ = -1;
23 pulseWidth_ = -1;
24 sampAboveThr_ = -1;
25 }
26
27 void TestBeamHit::Print(Option_t * option) const {
28 std::cout << "TestBeamHit { "
29 << "Total charge: " << getQ()
30 << " fC, start time sample: " << getStartSample()
31 << ", bar: " << getBarID() << ", pulseWidth: " << getPulseWidth()
32 << "}" << std::endl;
33 }
34} // 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
void Print() const
Print out the object.
Definition HcalHit.cxx:15
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.