8#ifndef TRIGSCINT_EVENT_TESTBEAMHIT_H
9#define TRIGSCINT_EVENT_TESTBEAMHIT_H
14#include "TrigScint/Event/TrigScintHit.h"
39 void clear(Option_t *option =
"");
51 void setPedestal(
const float pedestal) { pedestal_ = pedestal; };
73 void setQ(
const float q) { pulse_q_ = q; }
78 float getQ()
const {
return pulse_q_; }
109 samp_above_ped_ = sampAbovePed;
122 samp_above_thr_ = sampAboveThr;
169 return this->pulse_q_ < rhs.pulse_q_;
173 float pedestal_{-999.};
175 float early_pedestal_{-999.};
177 float pulse_q_{-999.};
180 int start_sample_{-1};
181 int pulse_width_{-1};
182 int samp_above_ped_{-1};
184 int samp_above_thr_{-1};
188 int pass_hit_quality_{0};
void clear()
Clear the data in the object.
This class represents the linearised QIE output from the trigger scintillator, in charge (fC).
int getStartSample() const
Get the pulse/hit startSample.
float getQ() const
Get hit charge.
void setQualityFlag(const uint flag)
Set hit data quality flag.
void setHitQuality(const int isClean)
Set whether hit has been checked for and passed quality criteria.
~TestBeamHit()=default
Class destructor.
friend std::ostream & operator<<(std::ostream &o, const TestBeamHit &d)
Print out the object.
bool operator<(const TestBeamHit &rhs) const
A dummy operator overloading.
float getQualityFlag() const
Get the hit data quality flag.
TestBeamHit()=default
Class constructor.
void setSampAbovePed(const int sampAbovePed)
Set number of samples above pedestal in pulse/hit.
void setQ(const float q)
Store total charge.
void setSampAboveThr(const int sampAboveThr)
Set number of samples above threshold in pulse/hit.
int getSampAbovePed() const
Get the pulse/hit sampAbovePed.
int getHitQuality() const
Get the pulse/hit isClean.
void setPulseWidth(const int pulseWidth)
Set width used to integrate pulse/hit (in time samples)
void setPedestal(const float pedestal)
Set channel (linearized.
void setEarlyPedestal(const float earlyPed)
Set channel (linearized.
int getPulseWidth() const
Get the pulse/hit pulseWidth.
void setStartSample(const int startSample)
Store total charge.
float getEarlyPedestal() const
Get the pedestal calculated only from first N time samples.
float getPedestal() const
Get the pedestal.
int getSampAboveThr() const
Get the pulse/hit sampAboveThr.