8#ifndef TRIGSCINT_EVENT_TESTBEAMHIT_H
9#define TRIGSCINT_EVENT_TESTBEAMHIT_H
14#include "TrigScint/Event/TrigScintHit.h"
39 void Clear(Option_t *option =
"");
44 void Print(Option_t *option =
"")
const;
51 void setPedestal(
const float pedestal) { pedestal_ = pedestal; };
73 void setQ(
const float q) { pulseQ_ = q; }
78 float getQ()
const {
return pulseQ_; }
109 sampAbovePed_ = sampAbovePed;
122 sampAboveThr_ = sampAboveThr;
169 return this->pulseQ_ < rhs.pulseQ_;
175 float earlyPedestal_{
177 float pulseQ_{-999.};
180 int startSample_{-1};
182 int sampAbovePed_{-1};
184 int sampAboveThr_{-1};
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.
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.
void Clear(Option_t *option="")
Clear the data in the object.
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 Print(Option_t *option="") const
Print out the object.
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.