|
LDMX Software
|
This class represents the linearised QIE output from the trigger scintillator, in charge (fC). More...
#include <EventReadout.h>
Public Member Functions | |
| EventReadout ()=default | |
| Class constructor. | |
| ~EventReadout ()=default | |
| Class destructor. | |
| void | clear (Option_t *option="") |
| Clear the data in the object. | |
| void | print (Option_t *option="") const |
| Print out the object. | |
| void | setPedestal (const float pedestal) |
| Set channel (linearized. | |
| float | getEarlyPedestal () const |
| Get the pedestal calculated only from first N time samples. | |
| void | setEarlyPedestal (const float earlyPed) |
| Set channel (linearized. | |
| float | getPedestal () const |
| Get the pedestal. | |
| void | setNoise (const float noise) |
| Set channel (linearized, charge-equiv) noise. | |
| float | getNoise () const |
| Get the channel noise. | |
| void | setQualityFlag (const uint flag) |
| Set channel data quality flag. | |
| float | getQualityFlag () const |
| Get the channel data quality flag. | |
| void | setQ (const std::vector< float > q) |
| Store charges of all time samples. | |
| 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. | |
| std::vector< float > | getQError () const |
| Get charges of all time samples. | |
| void | setTotQ (const float totQ) |
| Set channel (linearized, charge-equiv) average charge. | |
| float | getTotQ () const |
| Get the channel totQ. | |
| void | setAvgQ (const float avgQ) |
| Set channel (linearized, charge-equiv) average charge. | |
| float | getAvgQ () const |
| Get the channel avgQ. | |
| void | setMinQ (const float minQ) |
| Set channel (linearized, charge-equiv) minimum charge. | |
| float | getMinQ () const |
| Get the channel minQ. | |
| void | setMaxQ (const float maxQ) |
| Set channel (linearized, charge-equiv) maximum charge. | |
| float | getMaxQ () const |
| Get the channel maxQ. | |
| void | setMedQ (const float medQ) |
| Set channel (linearized, charge-equiv) median charge. | |
| float | getMedQ () const |
| Get the channel medQ. | |
| void | setTimeOffset (const int timeOffset) |
| Set channel readout itme offset (in units of samples) | |
| int | getTimeOffset () const |
| Get the channel timeOffset. | |
| void | setFiberNb (const int fiberNb) |
| Set channel readout fiber number. | |
| int | getFiberNb () const |
| Get the channel fiberNb. | |
| bool | operator< (const EventReadout &rhs) const |
| A dummy operator overloading. | |
Public Member Functions inherited from trigscint::TrigScintQIEDigis | |
| TrigScintQIEDigis ()=default | |
| Default constructor. | |
| virtual | ~TrigScintQIEDigis ()=default |
| Default destructor. | |
| void | clear (Option_t *option="") |
| A dummy function. | |
| bool | operator< (const TrigScintQIEDigis &rhs) const |
| A dummy operator overloading. | |
| int | getChanID () const |
| Get channel ID. | |
| int | getElecID () const |
| Get electronics ID. | |
| std::vector< int > | getADC () const |
| Get ADCs of all time samples. | |
| std::vector< int > | getTDC () const |
| Get tdcs of all time samples. | |
| std::vector< int > | getCID () const |
| Get Cap IDs of all time samples. | |
| void | setTimeSinceSpill (const uint32_t timeSpill) |
| Store the event time since spill counter. | |
| uint32_t | getTimeSinceSpill () const |
| Store the event time since spill counter. | |
| void | setChanID (const int chanid) |
| Store the channel ID. | |
| void | setElecID (const int elecid) |
| Store the electronics ID. | |
| void | setADC (const std::vector< int > adc) |
| Store adcs of all time samples. | |
| void | setTDC (const std::vector< int > tdc) |
| Store tdcs of all time samples. | |
| void | setCID (const std::vector< int > cid) |
| Store cids of all time samples. | |
Private Member Functions | |
| ClassDef (EventReadout, 2) | |
Private Attributes | |
| std::vector< float > | qs_ |
| analog to digital counts | |
| std::vector< float > | q_errs_ |
| float | pedestal_ {-999.} |
| float | early_pedestal_ {-999.} |
| float | noise_ {-1.} |
| float | tot_q_ {-999.} |
| float | avg_q_ {-999.} |
| float | min_q_ {-999.} |
| float | max_q_ {-999.} |
| float | med_q_ {-999.} |
| int | time_offset_ {0} |
| int | fiber_nb_ {-1} |
| uint | flag_ {0} |
Additional Inherited Members | |
Protected Attributes inherited from trigscint::TrigScintQIEDigis | |
| int | chan_id_ |
| channel ID | |
| int | elec_id_ {-1} |
| channel ID | |
| std::vector< int > | adcs_ |
| analog to digital counts | |
| std::vector< int > | tdcs_ |
| Time to Digital counts. | |
| uint32_t | time_since_spill_counter_ |
| Time since spill (a counter, to be divided by 125e6 or so) | |
This class represents the linearised QIE output from the trigger scintillator, in charge (fC).
Definition at line 24 of file EventReadout.h.
| void trigscint::EventReadout::clear | ( | Option_t * | option = "" | ) |
|
inline |
|
inline |
Get the pedestal calculated only from first N time samples.
Definition at line 55 of file EventReadout.h.
|
inline |
Get the channel fiberNb.
Definition at line 191 of file EventReadout.h.
Referenced by trigscint::EventReadoutProducer::produce().
|
inline |
|
inline |
|
inline |
|
inline |
Get the channel noise.
Definition at line 78 of file EventReadout.h.
Referenced by trigscint::EventReadoutProducer::produce().
|
inline |
Get the pedestal.
Definition at line 67 of file EventReadout.h.
Referenced by trigscint::EventReadoutProducer::produce().
|
inline |
Get charges of all time samples.
Definition at line 104 of file EventReadout.h.
References qs_.
|
inline |
Get charges of all time samples.
Definition at line 115 of file EventReadout.h.
|
inline |
Get the channel data quality flag.
Definition at line 93 of file EventReadout.h.
|
inline |
Get the channel timeOffset.
Definition at line 180 of file EventReadout.h.
|
inline |
Get the channel totQ.
Definition at line 125 of file EventReadout.h.
Referenced by trigscint::EventReadoutProducer::produce().
|
inline |
A dummy operator overloading.
Definition at line 197 of file EventReadout.h.
References trigscint::TrigScintQIEDigis::chan_id_.
| void trigscint::EventReadout::print | ( | Option_t * | option = "" | ) | const |
Print out the object.
Definition at line 15 of file EventReadout.cxx.
References trigscint::TrigScintQIEDigis::adcs_, trigscint::TrigScintQIEDigis::chan_id_, and qs_.
|
inline |
Set channel (linearized, charge-equiv) average charge.
| avgQ | The (time sample) average charge of the channel |
Definition at line 132 of file EventReadout.h.
Referenced by trigscint::EventReadoutProducer::produce().
|
inline |
Set channel (linearized.
charge) pedestal calculated from beginning of readout
| pedestal | The pedestal of the first N time samples in the channel |
Definition at line 63 of file EventReadout.h.
Referenced by trigscint::EventReadoutProducer::produce().
|
inline |
Set channel readout fiber number.
| fiberNb | The channel readout fiber number |
Definition at line 187 of file EventReadout.h.
Referenced by trigscint::EventReadoutProducer::produce().
|
inline |
Set channel (linearized, charge-equiv) maximum charge.
| maxQ | The (time sample) maximum charge of the channel |
Definition at line 154 of file EventReadout.h.
Referenced by trigscint::EventReadoutProducer::produce().
|
inline |
Set channel (linearized, charge-equiv) median charge.
| medQ | The (time sample) median charge of the channel |
Definition at line 165 of file EventReadout.h.
Referenced by trigscint::EventReadoutProducer::produce().
|
inline |
Set channel (linearized, charge-equiv) minimum charge.
| minQ | The (time sample) minimum charge of the channel |
Definition at line 143 of file EventReadout.h.
Referenced by trigscint::EventReadoutProducer::produce().
|
inline |
Set channel (linearized, charge-equiv) noise.
| noise | The noise of the channel |
Definition at line 74 of file EventReadout.h.
Referenced by trigscint::EventReadoutProducer::produce().
|
inline |
Set channel (linearized.
charge) pedestal
| pedestal | The pedestal of the channel |
Definition at line 51 of file EventReadout.h.
Referenced by trigscint::EventReadoutProducer::produce().
|
inline |
Store charges of all time samples.
| q_ | array of qs |
Definition at line 99 of file EventReadout.h.
References qs_.
Referenced by trigscint::EventReadoutProducer::produce().
|
inline |
Store charge quantization errors of all time samples.
| qErr_ | array of quantization errors |
Definition at line 110 of file EventReadout.h.
Referenced by trigscint::EventReadoutProducer::produce().
|
inline |
Set channel data quality flag.
This is the binary combination of 4 flags: spike: 1 plateau: 10 long pulse: 100 (not implemented yet) oscillation: 1000
| flag | The quality flag of the channel |
Definition at line 89 of file EventReadout.h.
Referenced by trigscint::EventReadoutProducer::produce().
|
inline |
Set channel readout itme offset (in units of samples)
| timeOffset | The (time sample) offset in channel readout |
Definition at line 176 of file EventReadout.h.
Referenced by trigscint::EventReadoutProducer::produce().
|
inline |
Set channel (linearized, charge-equiv) average charge.
| totQ | The (time sample) average charge of the channel |
Definition at line 122 of file EventReadout.h.
Referenced by trigscint::EventReadoutProducer::produce().
|
private |
Definition at line 210 of file EventReadout.h.
|
private |
Definition at line 207 of file EventReadout.h.
|
private |
Definition at line 215 of file EventReadout.h.
|
private |
Definition at line 217 of file EventReadout.h.
|
private |
Definition at line 212 of file EventReadout.h.
|
private |
Definition at line 213 of file EventReadout.h.
|
private |
Definition at line 211 of file EventReadout.h.
|
private |
Definition at line 208 of file EventReadout.h.
|
private |
Definition at line 206 of file EventReadout.h.
|
private |
Definition at line 204 of file EventReadout.h.
|
private |
analog to digital counts
Definition at line 203 of file EventReadout.h.
|
private |
Definition at line 214 of file EventReadout.h.
|
private |
Definition at line 209 of file EventReadout.h.