8#ifndef TRIGSCINT_EVENT_EVENTREADOUT_H
9#define TRIGSCINT_EVENT_EVENTREADOUT_H
14#include "TrigScint/Event/TrigScintQIEDigis.h"
39 void Clear(Option_t *option =
"");
44 void Print(Option_t *option =
"")
const;
51 void setPedestal(
const float pedestal) { pedestal_ = pedestal; };
74 void setNoise(
const float noise) { noise_ = noise; };
99 void setQ(
const std::vector<float> q) {
qs_ = q; }
104 std::vector<float>
getQ()
const {
return qs_; }
110 void setQError(
const std::vector<float> qErr) { qErrs_ = qErr; }
122 void setTotQ(
const float totQ) { totQ_ = totQ; };
132 void setAvgQ(
const float avgQ) { avgQ_ = avgQ; };
143 void setMinQ(
const float minQ) { minQ_ = minQ; };
154 void setMaxQ(
const float maxQ) { maxQ_ = maxQ; };
165 void setMedQ(
const float medQ) { medQ_ = medQ; };
204 std::vector<float> qErrs_;
206 float pedestal_{-999.};
207 float earlyPedestal_{-999.};
This class represents the linearised QIE output from the trigger scintillator, in charge (fC).
void setMedQ(const float medQ)
Set channel (linearized, charge-equiv) median charge.
void setFiberNb(const int fiberNb)
Set channel readout fiber number.
void setTimeOffset(const int timeOffset)
Set channel readout itme offset (in units of samples)
float getEarlyPedestal() const
Get the pedestal calculated only from first N time samples.
float getPedestal() const
Get the pedestal.
void setMinQ(const float minQ)
Set channel (linearized, charge-equiv) minimum charge.
std::vector< float > getQ() const
Get charges of all time samples.
void setQError(const std::vector< float > qErr)
Store charge quantization errors of all time samples.
float getQualityFlag() const
Get the channel data quality flag.
void setNoise(const float noise)
Set channel (linearized, charge-equiv) noise.
float getNoise() const
Get the channel noise.
void setTotQ(const float totQ)
Set channel (linearized, charge-equiv) average charge.
std::vector< float > getQError() const
Get charges of all time samples.
bool operator<(const EventReadout &rhs) const
A dummy operator overloading.
float getTotQ() const
Get the channel totQ.
EventReadout()=default
Class constructor.
float getMedQ() const
Get the channel medQ.
float getMaxQ() const
Get the channel maxQ.
void setQualityFlag(const uint flag)
Set channel data quality flag.
void Print(Option_t *option="") const
Print out the object.
void setPedestal(const float pedestal)
Set channel (linearized.
void setAvgQ(const float avgQ)
Set channel (linearized, charge-equiv) average charge.
int getTimeOffset() const
Get the channel timeOffset.
float getMinQ() const
Get the channel minQ.
void setMaxQ(const float maxQ)
Set channel (linearized, charge-equiv) maximum charge.
int getFiberNb() const
Get the channel fiberNb.
void setQ(const std::vector< float > q)
Store charges of all time samples.
std::vector< float > qs_
analog to digital counts
void Clear(Option_t *option="")
Clear the data in the object.
float getAvgQ() const
Get the channel avgQ.
~EventReadout()=default
Class destructor.
void setEarlyPedestal(const float earlyPed)
Set channel (linearized.
class for storing QIE output