Hall C ROOT/C++ Analyzer (hcana)
|
Class representing a single raw ADC hit. More...
#include <THcRawAdcHit.h>
Public Member Functions | |
virtual void | Clear (Option_t *opt="") |
Clears variables before next event. | |
Double_t | GetAverage (UInt_t iSampleLow, UInt_t iSampleHigh) const |
Gets average of raw samples. In channels. | |
Double_t | GetData (UInt_t iPedLow, UInt_t iPedHigh, UInt_t iIntLow, UInt_t iIntHigh) const |
Gets pedestal subtracted integral of samples. In channels. | |
Int_t | GetF250_NPedestalSamples () const |
Int_t | GetF250_NSA () const |
Int_t | GetF250_NSB () const |
Double_t | GetF250_PeakPedestalRatio () const |
Int_t | GetIntegral (UInt_t iSampleLow, UInt_t iSampleHigh) const |
Gets integral of raw samples. In channels. | |
UInt_t | GetNPulses () const |
Gets number of set pulses. | |
UInt_t | GetNSamples () const |
Gets number of set samples. | |
UInt_t | GetNSampPulses () const |
Double_t | GetPed () const |
Gets sample pedestal. In channels. | |
Int_t | GetPedRaw () const |
Gets raw signal pedestal. In channels. | |
Double_t | GetPulseAmp (UInt_t iPulse=0) const |
Gets pedestal subtracted pulse amplitude. In channels. | |
Int_t | GetPulseAmpRaw (UInt_t iPulse=0) const |
Gets raw pulse amplitude. In channels. | |
Double_t | GetPulseInt (UInt_t iPulse=0) const |
Gets pedestal subtracted pulse integral. In channels. | |
Int_t | GetPulseIntRaw (UInt_t iPulse=0) const |
Gets raw pulse integral. In channels. | |
Double_t | GetPulseTime (UInt_t iPulse=0) const |
Int_t | GetPulseTimeRaw (UInt_t iPulse=0) const |
Gets raw pulse time. In subsamples. | |
Int_t | GetRawData (UInt_t iPulse=0) const |
Gets raw pulse integral. In channels. | |
Int_t | GetRefDiffTime () const |
Int_t | GetRefTime () const |
Double_t | GetSample (UInt_t iSample=0) const |
Double_t | GetSampleInt () const |
Gets pedestal subtracted integral of samples. In channels. | |
Int_t | GetSampleIntRaw () const |
Gets raw integral of sTimeFacamples. In channels. | |
Int_t | GetSampleRaw (UInt_t iSample=0) const |
Gets raw sample. In channels. | |
Double_t | GetSampPed () const |
Int_t | GetSampPedRaw () const |
Double_t | GetSampPulseAmp (UInt_t iPulse=0) const |
Int_t | GetSampPulseAmpRaw (UInt_t iPulse=0) const |
Double_t | GetSampPulseInt (UInt_t iPulse=0) const |
Int_t | GetSampPulseIntRaw (UInt_t iPulse=0) const |
Double_t | GetSampPulseTime (UInt_t iPulse=0) const |
Int_t | GetSampPulseTimeRaw (UInt_t iPulse=0) const |
Bool_t | HasMulti () const |
Queries whether data is from flash 250 module. | |
Bool_t | HasRefTime () const |
THcRawAdcHit & | operator= (const THcRawAdcHit &right) |
Assignment operator. | |
void | SetData (Int_t data) |
Sets raw ADC value. | |
void | SetDataTimePedestalPeak (Int_t data, Int_t time, Int_t pedestal, Int_t peak) |
Sets various bits of ADC data. | |
void | SetF250Params (Int_t NSA, Int_t NSB, Int_t NPED) |
Sets F250 parameters used for pedestal subtraction. | |
void | SetRefDiffTime (Int_t refDiffTime) |
void | SetRefTime (Int_t refTime) |
Sets reference time. In channels. | |
void | SetSampIntTimePedestalPeak () |
void | SetSample (Int_t data) |
Sets raw signal sample. | |
void | SetSampNSAT (Int_t nsat) |
void | SetSampThreshold (Double_t thres) |
THcRawAdcHit () | |
Constructor. | |
virtual | ~THcRawAdcHit () |
Destructor. | |
Public Member Functions inherited from TObject | |
void | AbstractMethod (const char *method) const |
virtual void | AppendPad (Option_t *option="") |
virtual void | Browse (TBrowser *b) |
ULong_t | CheckedHash () |
virtual const char * | ClassName () const |
virtual TObject * | Clone (const char *newname="") const |
virtual Int_t | Compare (const TObject *obj) const |
virtual void | Copy (TObject &object) const |
virtual void | Delete (Option_t *option="") |
virtual Int_t | DistancetoPrimitive (Int_t px, Int_t py) |
virtual void | Draw (Option_t *option="") |
virtual void | DrawClass () const |
virtual TObject * | DrawClone (Option_t *option="") const |
virtual void | Dump () const |
virtual void | Error (const char *method, const char *msgfmt,...) const |
virtual void | Execute (const char *method, const char *params, Int_t *error=nullptr) |
virtual void | Execute (TMethod *method, TObjArray *params, Int_t *error=nullptr) |
virtual void | ExecuteEvent (Int_t event, Int_t px, Int_t py) |
virtual void | Fatal (const char *method, const char *msgfmt,...) const |
virtual TObject * | FindObject (const char *name) const |
virtual TObject * | FindObject (const TObject *obj) const |
virtual Option_t * | GetDrawOption () const |
virtual const char * | GetIconName () const |
virtual const char * | GetName () const |
virtual char * | GetObjectInfo (Int_t px, Int_t py) const |
virtual Option_t * | GetOption () const |
virtual const char * | GetTitle () const |
virtual UInt_t | GetUniqueID () const |
virtual Bool_t | HandleTimer (TTimer *timer) |
virtual ULong_t | Hash () const |
Bool_t | HasInconsistentHash () const |
virtual void | Info (const char *method, const char *msgfmt,...) const |
virtual Bool_t | InheritsFrom (const char *classname) const |
virtual Bool_t | InheritsFrom (const TClass *cl) const |
virtual void | Inspect () const |
void | InvertBit (UInt_t f) |
virtual TClass * | IsA () const |
Bool_t | IsDestructed () const |
virtual Bool_t | IsEqual (const TObject *obj) const |
virtual Bool_t | IsFolder () const |
R__ALWAYS_INLINE Bool_t | IsOnHeap () const |
virtual Bool_t | IsSortable () const |
R__ALWAYS_INLINE Bool_t | IsZombie () const |
virtual void | ls (Option_t *option="") const |
void | MayNotUse (const char *method) const |
virtual Bool_t | Notify () |
void | Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const |
void | operator delete (void *ptr) |
void | operator delete[] (void *ptr) |
void * | operator new (size_t sz) |
void * | operator new (size_t sz, void *vp) |
void * | operator new[] (size_t sz) |
void * | operator new[] (size_t sz, void *vp) |
TObject & | operator= (const TObject &rhs) |
virtual void | Paint (Option_t *option="") |
virtual void | Pop () |
virtual void | Print (Option_t *option="") const |
virtual Int_t | Read (const char *name) |
virtual void | RecursiveRemove (TObject *obj) |
void | ResetBit (UInt_t f) |
virtual void | SaveAs (const char *filename="", Option_t *option="") const |
virtual void | SavePrimitive (std::ostream &out, Option_t *option="") |
void | SetBit (UInt_t f) |
void | SetBit (UInt_t f, Bool_t set) |
virtual void | SetDrawOption (Option_t *option="") |
virtual void | SetUniqueID (UInt_t uid) |
virtual void | Streamer (TBuffer &) |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
virtual void | SysError (const char *method, const char *msgfmt,...) const |
R__ALWAYS_INLINE Bool_t | TestBit (UInt_t f) const |
Int_t | TestBits (UInt_t f) const |
TObject () | |
TObject (const TObject &object) | |
virtual void | UseCurrentStyle () |
virtual void | Warning (const char *method, const char *msgfmt,...) const |
virtual Int_t | Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0) |
virtual Int_t | Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0) const |
virtual | ~TObject () |
Static Public Member Functions | |
static constexpr Double_t | GetAdcTomV () |
static constexpr Double_t | GetAdcTons () |
static constexpr Double_t | GetAdcTopC () |
Static Public Member Functions inherited from TObject | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
static Longptr_t | GetDtorOnly () |
static Bool_t | GetObjectStat () |
static void | SetDtorOnly (void *obj) |
static void | SetObjectStat (Bool_t stat) |
Static Protected Member Functions | |
static void | throw_bad_index (const char *loc, UInt_t i, UInt_t N) |
static void | throw_bad_range (const char *loc, UInt_t lo, UInt_t hi, UInt_t N) |
Protected Attributes | |
Bool_t | fHasMulti |
Bool_t | fHasRefTime |
Int_t | fNPeakSamples |
Int_t | fNPedestalSamples |
UInt_t | fNPulses |
Int_t | fNSA |
UInt_t | fNSamples |
UInt_t | fNSampPulses |
Int_t | fNSAT |
Int_t | fNSB |
Double_t | fPeakPedestalRatio |
Int_t | fPed |
Int_t | fPulseAmp [fMaxNPulses] |
Int_t | fPulseInt [fMaxNPulses] |
Int_t | fPulseTime [fMaxNPulses] |
Int_t | fRefDiffTime |
Int_t | fRefTime |
Int_t | fSample [fMaxNSamples] |
Int_t | fSampPed |
Int_t | fSampPulseAmp [fMaxNPulses] |
Int_t | fSampPulseInt [fMaxNPulses] |
Int_t | fSampPulseTime [fMaxNPulses] |
Double_t | fSampThreshold |
Double_t | fSubsampleToTimeFactor |
Protected Attributes inherited from TObject | |
kOnlyPrepStep | |
Static Protected Attributes | |
static constexpr Double_t | fAdcImpedence = 50.0 |
static constexpr Double_t | fAdcRange = 1.0 |
static constexpr Double_t | fAdcTimeRes = 0.0625 |
static constexpr Double_t | fAdcTimeSample = 4000.0 |
static constexpr UInt_t | fMaxNPulses = 4 |
static constexpr UInt_t | fMaxNSamples = 1024 |
static constexpr Double_t | fNAdcChan = 4096.0 |
Additional Inherited Members | |
Public Types inherited from TObject | |
enum | EDeprecatedStatusBits |
enum | EStatusBits |
Public Attributes inherited from TObject | |
kBitMask | |
kCanDelete | |
kCannotPick | |
kHasUUID | |
kInconsistent | |
kInvalidObject | |
kIsOnHeap | |
kIsReferenced | |
kMustCleanup | |
kNoContextMenu | |
kNotDeleted | |
kObjInCanvas | |
kOverwrite | |
kSingleKey | |
kWriteDelete | |
kZombie | |
Protected Member Functions inherited from TObject | |
virtual void | DoError (int level, const char *location, const char *fmt, va_list va) const |
void | MakeZombie () |
Class representing a single raw ADC hit.
It supports rich data from flash 250 ADC modules.
Definition at line 7 of file THcRawAdcHit.h.
THcRawAdcHit::THcRawAdcHit | ( | ) |
Constructor.
Definition at line 193 of file THcRawAdcHit.cxx.
|
virtualdefault |
Destructor.
Clears variables before next event.
[in] | opt | Maybe used in base clas... Not sure. |
Reimplemented from TObject.
Definition at line 250 of file THcRawAdcHit.cxx.
|
staticconstexpr |
Definition at line 120 of file THcRawAdcHit.h.
|
staticconstexpr |
Definition at line 132 of file THcRawAdcHit.h.
|
staticconstexpr |
Definition at line 126 of file THcRawAdcHit.h.
Gets average of raw samples. In channels.
[in] | iSampleLow | Sequential number of first sample to be averaged. |
[in] | iSampleHigh | Sequential number of last sample to be averaged. |
std::out_of_range | Tried to average over nonexisting sample. |
Definition at line 260 of file THcRawAdcHit.h.
|
inline |
Gets pedestal subtracted integral of samples. In channels.
[in] | iPedLow | Sequential number of first sample to be averaged for pedestal value. |
[in] | iPedHigh | Sequential number of last sample to be averaged for pedestal value. |
[in] | iIntLow | Sequential number of first sample to be integrated. |
[in] | iIntHigh | Sequential number of last sample to be integrated. |
Definition at line 285 of file THcRawAdcHit.h.
|
inline |
Definition at line 27 of file THcRawAdcHit.h.
|
inline |
Definition at line 28 of file THcRawAdcHit.h.
|
inline |
Definition at line 29 of file THcRawAdcHit.h.
|
inline |
Definition at line 26 of file THcRawAdcHit.h.
Gets integral of raw samples. In channels.
[in] | iSampleLow | Sequential number of first sample to be integrated. |
[in] | iSampleHigh | Sequential number of last sample to be integrated. |
std::out_of_range | Tried to integrate over nonexisting sample. |
Definition at line 273 of file THcRawAdcHit.h.
|
inline |
Gets number of set pulses.
Definition at line 137 of file THcRawAdcHit.h.
|
inline |
Gets number of set samples.
Definition at line 147 of file THcRawAdcHit.h.
|
inline |
Definition at line 142 of file THcRawAdcHit.h.
|
inline |
Gets sample pedestal. In channels.
Definition at line 167 of file THcRawAdcHit.h.
|
inline |
Gets raw signal pedestal. In channels.
Returns 0 if no signal pedestal is set.
Definition at line 157 of file THcRawAdcHit.h.
Gets pedestal subtracted pulse amplitude. In channels.
[in] | iPulse | Sequential number of requested pulse. |
Definition at line 188 of file THcRawAdcHit.h.
Gets raw pulse amplitude. In channels.
[in] | iPulse | Sequential number of requested pulse. |
std::out_of_range | Tried to get nonexisting pulse. |
Definition at line 303 of file THcRawAdcHit.h.
Gets pedestal subtracted pulse integral. In channels.
[in] | iPulse | Sequential number of requested pulse. |
Definition at line 177 of file THcRawAdcHit.h.
Gets raw pulse integral. In channels.
[in] | iPulse | Sequential number of requested pulse. |
std::out_of_range | Tried to get nonexisting pulse. |
Definition at line 293 of file THcRawAdcHit.h.
Definition at line 200 of file THcRawAdcHit.h.
Gets raw pulse time. In subsamples.
[in] | iPulse | Sequential number of requested pulse. |
std::out_of_range | Tried to get nonexisting pulse. |
Definition at line 313 of file THcRawAdcHit.h.
Gets raw pulse integral. In channels.
[in] | iPulse | Sequential number of requested pulse. |
std::out_of_range | Tried to get nonexisting pulse. |
Returns 0 if tried to access first pulse but no pulses are set.
Definition at line 250 of file THcRawAdcHit.h.
|
inline |
Definition at line 347 of file THcRawAdcHit.h.
|
inline |
Definition at line 339 of file THcRawAdcHit.h.
Definition at line 331 of file THcRawAdcHit.h.
|
inline |
Gets pedestal subtracted integral of samples. In channels.
Definition at line 245 of file THcRawAdcHit.h.
|
inline |
Gets raw integral of sTimeFacamples. In channels.
Definition at line 234 of file THcRawAdcHit.h.
Gets raw sample. In channels.
[in] | iSample | Sequential number of requested sample. |
std::out_of_range | Tried to get nonexisting sample. |
Definition at line 323 of file THcRawAdcHit.h.
|
inline |
Definition at line 172 of file THcRawAdcHit.h.
|
inline |
Definition at line 162 of file THcRawAdcHit.h.
Definition at line 194 of file THcRawAdcHit.h.
Definition at line 228 of file THcRawAdcHit.h.
Definition at line 182 of file THcRawAdcHit.h.
Definition at line 223 of file THcRawAdcHit.h.
Definition at line 209 of file THcRawAdcHit.h.
Definition at line 218 of file THcRawAdcHit.h.
|
inline |
Queries whether data is from flash 250 module.
Definition at line 152 of file THcRawAdcHit.h.
|
inline |
Definition at line 355 of file THcRawAdcHit.h.
THcRawAdcHit & THcRawAdcHit::operator= | ( | const THcRawAdcHit & | right | ) |
Assignment operator.
[in] | right | Raw ADC hit to be assigned. |
Definition at line 220 of file THcRawAdcHit.cxx.
Sets raw ADC value.
[in] | data | Raw ADC value. In channels. |
std::out_of_range | Tried to set too many pulses. |
Should be used for old style ADCs.
Definition at line 273 of file THcRawAdcHit.cxx.
Sets various bits of ADC data.
[in] | data | Raw pulse integral. In channels. |
[in] | time | Raw pulse time. In subsamples. |
[in] | pedestal | Raw signal pedestal. In channels. |
[in] | peak | Raw pulse amplitude. In channels. |
std::out_of_range | Tried to set too many pulses. |
Should be used for flash 250 modules.
Definition at line 409 of file THcRawAdcHit.cxx.
Sets F250 parameters used for pedestal subtraction.
[in] | NSA | NSA parameter of F250 modules. |
[in] | NSB | NSB parameter of F250 modules. |
[in] | NPED | NPED parameter of F250 modules. |
Definition at line 424 of file THcRawAdcHit.cxx.
Definition at line 288 of file THcRawAdcHit.cxx.
Sets reference time. In channels.
[in] | refTime | Reference time. In channels. |
Definition at line 283 of file THcRawAdcHit.cxx.
void THcRawAdcHit::SetSampIntTimePedestalPeak | ( | ) |
Definition at line 313 of file THcRawAdcHit.cxx.
Sets raw signal sample.
[in] | data | Raw signal sample. In channels. |
std::out_of_range | Tried to set too many samples. |
Definition at line 302 of file THcRawAdcHit.cxx.
Definition at line 297 of file THcRawAdcHit.cxx.
Definition at line 292 of file THcRawAdcHit.cxx.
Definition at line 440 of file THcRawAdcHit.cxx.
|
staticprotected |
Definition at line 445 of file THcRawAdcHit.cxx.
|
staticconstexprprotected |
Definition at line 80 of file THcRawAdcHit.h.
|
staticconstexprprotected |
Definition at line 79 of file THcRawAdcHit.h.
|
staticconstexprprotected |
Definition at line 82 of file THcRawAdcHit.h.
|
staticconstexprprotected |
Definition at line 81 of file THcRawAdcHit.h.
|
protected |
Definition at line 106 of file THcRawAdcHit.h.
|
protected |
Definition at line 107 of file THcRawAdcHit.h.
|
staticconstexprprotected |
Definition at line 74 of file THcRawAdcHit.h.
|
staticconstexprprotected |
Definition at line 75 of file THcRawAdcHit.h.
|
staticconstexprprotected |
Definition at line 78 of file THcRawAdcHit.h.
|
protected |
Definition at line 85 of file THcRawAdcHit.h.
|
protected |
Definition at line 84 of file THcRawAdcHit.h.
|
protected |
Definition at line 108 of file THcRawAdcHit.h.
|
protected |
Definition at line 90 of file THcRawAdcHit.h.
|
protected |
Definition at line 110 of file THcRawAdcHit.h.
|
protected |
Definition at line 109 of file THcRawAdcHit.h.
|
protected |
Definition at line 91 of file THcRawAdcHit.h.
|
protected |
Definition at line 92 of file THcRawAdcHit.h.
|
protected |
Definition at line 86 of file THcRawAdcHit.h.
|
protected |
Definition at line 94 of file THcRawAdcHit.h.
|
protected |
Definition at line 97 of file THcRawAdcHit.h.
|
protected |
Definition at line 96 of file THcRawAdcHit.h.
|
protected |
Definition at line 98 of file THcRawAdcHit.h.
|
protected |
Definition at line 104 of file THcRawAdcHit.h.
|
protected |
Definition at line 103 of file THcRawAdcHit.h.
|
protected |
Definition at line 102 of file THcRawAdcHit.h.
|
protected |
Definition at line 95 of file THcRawAdcHit.h.
|
protected |
Definition at line 100 of file THcRawAdcHit.h.
|
protected |
Definition at line 99 of file THcRawAdcHit.h.
|
protected |
Definition at line 101 of file THcRawAdcHit.h.
|
protected |
Definition at line 88 of file THcRawAdcHit.h.
|
protected |
Definition at line 87 of file THcRawAdcHit.h.