Hall C ROOT/C++ Analyzer (hcana)
|
Class representing a single raw hit for the THcTrigDet.
signal 0
is ADCsignal 1
is TDCIt supports rich data from flash 250 ADC modules.
Definition at line 10 of file THcTrigRawHit.h.
Public Member Functions | |
virtual void | Clear (Option_t *opt="") |
Clears variables before next event. More... | |
Int_t | GetData (Int_t signal) |
Gets data for first hit of signal. More... | |
Int_t | GetNSignals () |
Returns number of signal handled by this class, i.e., 2 . More... | |
THcRawAdcHit & | GetRawAdcHit () |
Gets reference to THcRawAdcHit. More... | |
Int_t | GetRawData (Int_t signal) |
Gets raw data for first hit of signal. More... | |
THcRawTdcHit & | GetRawTdcHit () |
Gets reference to THcRawTdcHit. More... | |
Int_t | GetReference (Int_t signal) |
Returns reference time. More... | |
ESignalType | GetSignalType (Int_t signal) |
Returns the signal type. More... | |
Bool_t | HasReference (Int_t signal) |
Checks if reference time is available. More... | |
THcTrigRawHit & | operator= (const THcTrigRawHit &right) |
Assignment operator. More... | |
void | SetData (Int_t signal, Int_t data) |
Sets next data value. More... | |
void | SetDataTimePedestalPeak (Int_t signal, Int_t data, Int_t time, Int_t pedestal, Int_t peak) |
Sets multiple bits of data from flash 250 ADC modules. More... | |
void | SetF250Params (Int_t NSA, Int_t NSB, Int_t NPED) |
See THcRawAdcHit::SetF250Params. More... | |
void | SetReference (Int_t signal, Int_t reference) |
Sets reference time. More... | |
void | SetSample (Int_t signal, Int_t data) |
Sets next waveform sample value. More... | |
THcTrigRawHit (Int_t plane=0, Int_t counter=0) | |
A constructor. More... | |
virtual | ~THcTrigRawHit () |
A destructor. More... | |
Public Member Functions inherited from THcRawHit | |
virtual Int_t | Compare (const TObject *obj) const |
virtual Bool_t | IsSortable () const |
THcRawHit & | operator= (const THcRawHit &rhs) |
virtual void | SetReferenceDiff (Int_t signal, Int_t reference) |
THcRawHit (Int_t plane=0, Int_t counter=0) | |
THcRawHit (const THcRawHit &rhs) | |
virtual | ~THcRawHit () |
Public Member Functions inherited from TObject | |
void | AbstractMethod (const char *method) const |
virtual void | AppendPad (Option_t *option="") |
virtual void | Browse (TBrowser *b) |
virtual const char * | ClassName () const |
virtual TObject * | Clone (const char *newname="") 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=0) |
virtual void | Execute (TMethod *method, TObjArray *params, Int_t *error=0) |
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 |
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 Bool_t | IsEqual (const TObject *obj) const |
virtual Bool_t | IsFolder () const |
Bool_t | IsOnHeap () const |
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 *vp) |
void * | operator new[] (size_t sz) |
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 | SysError (const char *method, const char *msgfmt,...) const |
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=0, Int_t option=0, Int_t bufsize=0) |
virtual Int_t | Write (const char *name=0, Int_t option=0, Int_t bufsize=0) const |
virtual | ~TObject () |
Protected Attributes | |
THcRawAdcHit | fAdcHits [fNAdcSignals] |
THcRawTdcHit | fTdcHits [fNTdcSignals] |
Static Protected Attributes | |
static const Int_t | fNAdcSignals = 1 |
static const Int_t | fNTdcSignals = 1 |
Private Member Functions | |
ClassDef (THcTrigRawHit, 0) | |
Additional Inherited Members | |
Public Types inherited from THcRawHit | |
enum | ESignalType { kUndefined, kTDC, kADC } |
Public Types inherited from TObject | |
enum | EStatusBits |
Static Public Member Functions inherited from TObject | |
static Long_t | GetDtorOnly () |
static Bool_t | GetObjectStat () |
static void | SetDtorOnly (void *obj) |
static void | SetObjectStat (Bool_t stat) |
Public Attributes inherited from THcRawHit | |
Int_t | fCounter |
Int_t | fPlane |
Public Attributes inherited from TObject | |
kBitMask | |
kCanDelete | |
kCannotPick | |
kHasUUID | |
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 () |
#include <THcTrigRawHit.h>
A constructor.
[in] | plane | Internal plane number of the hit. Should be 1 for ADC and 2 for TDC. |
[in] | counter | Internal bar number of the hit. |
Definition at line 141 of file THcTrigRawHit.cxx.
|
virtual |
A destructor.
Definition at line 163 of file THcTrigRawHit.cxx.
|
private |
Clears variables before next event.
[in] | opt | Maybe used in base class... Not sure. |
Reimplemented from TObject.
Definition at line 166 of file THcTrigRawHit.cxx.
Gets data for first hit of signal.
[in] | signal | ADC or TDC. |
std::out_of_range | Tried to get wrong signal. |
Reimplemented from THcRawHit.
Definition at line 232 of file THcTrigRawHit.cxx.
|
virtual |
Returns number of signal handled by this class, i.e., 2
.
Reimplemented from THcRawHit.
Definition at line 289 of file THcTrigRawHit.cxx.
THcRawAdcHit & THcTrigRawHit::GetRawAdcHit | ( | ) |
Gets reference to THcRawAdcHit.
Definition at line 306 of file THcTrigRawHit.cxx.
Gets raw data for first hit of signal.
[in] | signal | ADC or TDC. |
std::out_of_range | Tried to get wrong signal. |
Reimplemented from THcRawHit.
Definition at line 247 of file THcTrigRawHit.cxx.
THcRawTdcHit & THcTrigRawHit::GetRawTdcHit | ( | ) |
Gets reference to THcRawTdcHit.
Definition at line 311 of file THcTrigRawHit.cxx.
Returns reference time.
[in] | signal | TDC. |
std::out_of_range | Tried to get wrong signal. |
Reimplemented from THcRawHit.
Definition at line 262 of file THcTrigRawHit.cxx.
|
virtual |
Returns the signal type.
[in] | signal | ADC or TDC. |
std::out_of_range | Tried to get wrong signal. |
Reimplemented from THcRawHit.
Definition at line 274 of file THcTrigRawHit.cxx.
Checks if reference time is available.
[in] | signal | TDC. |
std::out_of_range | Tried to get wrong signal. |
Reimplemented from THcRawHit.
Definition at line 294 of file THcTrigRawHit.cxx.
THcTrigRawHit & THcTrigRawHit::operator= | ( | const THcTrigRawHit & | right | ) |
Assignment operator.
[in] | right | Raw hit to be assigned. |
Definition at line 146 of file THcTrigRawHit.cxx.
Sets next data value.
[in] | signal | ADC or TDC. |
[in] | data | Value to be set. |
std::out_of_range | Tried to set wrong signal. |
Reimplemented from THcRawHit.
Definition at line 178 of file THcTrigRawHit.cxx.
|
virtual |
Sets multiple bits of data from flash 250 ADC modules.
[in] | signal | ADC. |
[in] | data | ADC sum value to be set. |
[in] | time | Time of the peak. |
[in] | pedestal | Pedestal value. |
[in] | peak | Sample ADC value at peak. |
std::out_of_range | Tried to set wrong signal. |
Reimplemented from THcRawHit.
Definition at line 205 of file THcTrigRawHit.cxx.
See THcRawAdcHit::SetF250Params.
Reimplemented from THcRawHit.
Definition at line 316 of file THcTrigRawHit.cxx.
Sets reference time.
[in] | signal | TDC. |
[in] | reference | Reference time to be set. |
std::out_of_range | Tried to set wrong signal. |
Reimplemented from THcRawHit.
Definition at line 219 of file THcTrigRawHit.cxx.
Sets next waveform sample value.
[in] | signal | ADC. |
[in] | data | Sample value to be set. |
std::out_of_range | Tried to set wrong signal. |
Reimplemented from THcRawHit.
Definition at line 193 of file THcTrigRawHit.cxx.
|
protected |
Definition at line 42 of file THcTrigRawHit.h.
|
staticprotected |
Definition at line 39 of file THcTrigRawHit.h.
|
staticprotected |
Definition at line 40 of file THcTrigRawHit.h.
|
protected |
Definition at line 43 of file THcTrigRawHit.h.