Hall C ROOT/C++ Analyzer (hcana)
|
A mock detector to hold trigger related data.
This class behaves as a detector, but it does not correspond to any physical detector in the hall. Its purpose is to gather all the trigger related data comming from a specific source, like HMS.
Can hold up to 100 ADC and TDC channels, though the limit can be changed if needed. It just seemed like a reasonable starting value.
Only outputs the first hit for each channel to the Root tree leaf.
For ADC channels it defines:
var_adcPedRaw
var_adcPulseIntRaw
var_adcPulseAmpRaw
var_adcPulseTimeRaw
var_adcPed
var_adcPulseInt
var_adcPulseAmp
var_adcMult
For TDC channels it defines:
var_tdcTimeRaw
var_tdcTime
var_tdcMult
The names and number of channels is defined in a parameter file. The detector looks for next variables:
prefix_numAdc = number_of_ADC_channels
prefix_numTdc = number_of_TDC_channels
prefix_adcNames = "varName1 varName2 ... varNameNumAdc"
prefix_tdcNames = "varName1 varName2 ... varNameNumTdc"
ADC channels must be assigned plane 1
and signal 0
while TDC channels must be assigned plane 2
and signal 1
.
Each channel within a plane must be assigned a consecutive "bar" number, which is then used to get the correct variable name from parameter file.
Use only with THcTrigApp class.
Definition at line 16 of file THcTrigDet.h.
Public Member Functions | |
virtual void | AddEvtType (int evtype) |
virtual void | Clear (Option_t *opt="") |
Clears variables before next event. More... | |
Int_t | Decode (const THaEvData &evData) |
Decodes and processes events. More... | |
Int_t | End (THaRunBase *run) |
Double_t | Get_CT_Trigtime (Int_t ii) |
Double_t | Get_RF_TrigTime (Int_t ii) |
virtual Bool_t | HaveIgnoreList () const |
virtual EStatus | Init (const TDatime &date) |
Initializes the detector variables. More... | |
virtual Bool_t | IsIgnoreType (Int_t evtype) const |
virtual void | SetEvtType (int evtype) |
virtual void | SetSpectName (const char *name) |
THcTrigDet (const char *name, const char *description="", THaApparatus *app=NULL) | |
A constructor. More... | |
~THcTrigDet () | |
A destructor. More... | |
Public Member Functions inherited from THcHitList | |
void | CreateMissReportParms (const char *prefix) |
virtual Int_t | DecodeToHitList (const THaEvData &evdata, Bool_t suppress=kFALSE) |
Populate the hitlist from the raw event data. More... | |
void | DisableSlipCorrection () |
TClonesArray * | GetHitList () const |
void | InitHitList (THaDetMap *detmap, const char *hitclass, Int_t maxhits, Int_t tdcref_cut=0, Int_t adcref_cut=0) |
Save the electronics module to detector mapping and initialize a hit array of hits of class hitclass. More... | |
void | MissReport (const char *name) |
THcHitList () | |
virtual | ~THcHitList () |
Protected Member Functions | |
virtual Int_t | DefineVariables (EMode mode=kDefine) |
virtual Int_t | ReadDatabase (const TDatime &date) |
void | Setup (const char *name, const char *description) |
Protected Member Functions inherited from THcHitList | |
ClassDef (THcHitList, 0) | |
Static Protected Attributes | |
static const int | fMaxAdcChannels = 200 |
static const int | fMaxTdcChannels = 200 |
Private Member Functions | |
ClassDef (THcTrigDet, 0) | |
THcTrigDet () | |
Additional Inherited Members | |
Public Attributes inherited from THcHitList | |
Bool_t | fADC_RefTimeBest |
Int_t | fADC_RefTimeCut |
THaDetMap * | fdMap |
Int_t | fNMaxRawHits |
UInt_t | fNRawHits |
TClass * | fRawHitClass |
TClonesArray * | fRawHitList |
Bool_t | fTDC_RefTimeBest |
Int_t | fTDC_RefTimeCut |
#include <THcTrigDet.h>
THcTrigDet::THcTrigDet | ( | const char * | name, |
const char * | description = "" , |
||
THaApparatus * | app = NULL |
||
) |
A constructor.
[in] | name | Name of the apparatus. Is typically named after spectrometer whose trigger data is collecting; like "HMS". |
[in] | description | Description of the apparatus. |
[in] | app | The parent apparatus pointer. |
Definition at line 122 of file THcTrigDet.cxx.
THcTrigDet::~THcTrigDet | ( | ) |
A destructor.
Definition at line 139 of file THcTrigDet.cxx.
|
private |
Definition at line 119 of file THcTrigDet.cxx.
|
virtual |
Definition at line 558 of file THcTrigDet.cxx.
|
private |
Clears variables before next event.
[in] | opt | Maybe used in base clas... Not sure. |
Definition at line 210 of file THcTrigDet.cxx.
Decodes and processes events.
[in] | evData | Raw data to decode. |
Definition at line 234 of file THcTrigDet.cxx.
|
protectedvirtual |
Definition at line 404 of file THcTrigDet.cxx.
Int_t THcTrigDet::End | ( | THaRunBase * | run | ) |
Definition at line 583 of file THcTrigDet.cxx.
Definition at line 36 of file THcTrigDet.h.
Definition at line 39 of file THcTrigDet.h.
|
virtual |
Definition at line 577 of file THcTrigDet.cxx.
|
virtual |
Initializes the detector variables.
[in] | date | Time of the current run. |
Definition at line 148 of file THcTrigDet.cxx.
Definition at line 568 of file THcTrigDet.cxx.
Definition at line 318 of file THcTrigDet.cxx.
|
virtual |
Definition at line 562 of file THcTrigDet.cxx.
|
virtual |
Definition at line 553 of file THcTrigDet.cxx.
|
protected |
Definition at line 310 of file THcTrigDet.cxx.
|
protected |
Definition at line 90 of file THcTrigDet.h.
|
protected |
Definition at line 68 of file THcTrigDet.h.
|
protected |
Definition at line 86 of file THcTrigDet.h.
|
protected |
Definition at line 57 of file THcTrigDet.h.
|
protected |
Definition at line 80 of file THcTrigDet.h.
|
protected |
Definition at line 75 of file THcTrigDet.h.
|
protected |
Definition at line 82 of file THcTrigDet.h.
|
protected |
Definition at line 77 of file THcTrigDet.h.
|
protected |
Definition at line 81 of file THcTrigDet.h.
|
protected |
Definition at line 76 of file THcTrigDet.h.
|
protected |
Definition at line 83 of file THcTrigDet.h.
|
protected |
Definition at line 78 of file THcTrigDet.h.
|
protected |
Definition at line 53 of file THcTrigDet.h.
|
protected |
Definition at line 71 of file THcTrigDet.h.
|
protected |
Definition at line 70 of file THcTrigDet.h.
|
protected |
Definition at line 46 of file THcTrigDet.h.
|
staticprotected |
Definition at line 62 of file THcTrigDet.h.
|
staticprotected |
Definition at line 63 of file THcTrigDet.h.
|
protected |
Definition at line 48 of file THcTrigDet.h.
|
protected |
Definition at line 49 of file THcTrigDet.h.
|
protected |
Definition at line 91 of file THcTrigDet.h.
|
protected |
Definition at line 51 of file THcTrigDet.h.
|
protected |
Definition at line 60 of file THcTrigDet.h.
|
protected |
Definition at line 89 of file THcTrigDet.h.
|
protected |
Definition at line 67 of file THcTrigDet.h.
|
protected |
Definition at line 55 of file THcTrigDet.h.
|
protected |
Definition at line 85 of file THcTrigDet.h.
|
protected |
Definition at line 58 of file THcTrigDet.h.
|
protected |
Definition at line 54 of file THcTrigDet.h.
|
protected |
Definition at line 87 of file THcTrigDet.h.
|
protected |
Definition at line 66 of file THcTrigDet.h.
|
protected |
Definition at line 65 of file THcTrigDet.h.
|
protected |
Definition at line 73 of file THcTrigDet.h.
|
protected |
Definition at line 72 of file THcTrigDet.h.
|
protected |
Definition at line 50 of file THcTrigDet.h.
|
protected |
Definition at line 59 of file THcTrigDet.h.