Hall C ROOT/C++ Analyzer (hcana)
|
Event handler for Hall C scalers.
This class does the following
For a particular set of event types (here, event type 0) decode the scalers and put some variables into global variables. The global variables can then appear in the Podd output tree T. In addition, a tree "TS" is created by this class; it contains just the scaler data by itself. Note, the "fName" is concatenated with "TS" to ensure the tree is unqiue; further, "fName" is concatenated with the name of the global variables, for uniqueness. The list of global variables and how they are tied to the scaler module and channels is defined here; eventually this will be modified to use a scaler.map file
NOTE: if you don't have the scaler map file (e.g. Leftscalevt.map) there will be no variable output to the Trees.
To use in the analyzer, your setup script needs something like this
To enable debugging you may try this in the setup script
Definition at line 34 of file THcScalerEvtHandler.h.
Public Member Functions | |
Int_t | Analyze (THaEvData *evdata) |
Int_t | AnalyzeBuffer (UInt_t *rdata, Bool_t onlysync) |
virtual Int_t | End (THaRunBase *r=0) |
virtual EStatus | Init (const TDatime &run_time) |
virtual Int_t | ReadDatabase (const TDatime &date) |
virtual void | SetDelayedType (int evtype) |
virtual void | SetOnlyBanks (Bool_t b=kFALSE) |
virtual void | SetOnlyUseSyncEvents (Bool_t b=kFALSE) |
virtual void | SetUseFirstEvent (Bool_t b=kFALSE) |
THcScalerEvtHandler (const char *, const char *) | |
virtual | ~THcScalerEvtHandler () |
Private Member Functions | |
void | AddVars (TString name, TString desc, UInt_t iscal, UInt_t ichan, UInt_t ikind) |
void | DefVars () |
THcScalerEvtHandler & | operator= (const THcScalerEvtHandler &fh) |
THcScalerEvtHandler (const THcScalerEvtHandler &fh) | |
Static Private Member Functions | |
static size_t | FindNoCase (const std::string &sdata, const std::string &skey) |
#include <THcScalerEvtHandler.h>
THcScalerEvtHandler::THcScalerEvtHandler | ( | const char * | name, |
const char * | description | ||
) |
Definition at line 77 of file THcScalerEvtHandler.cxx.
|
virtual |
Definition at line 93 of file THcScalerEvtHandler.cxx.
|
private |
|
private |
Definition at line 865 of file THcScalerEvtHandler.cxx.
Definition at line 204 of file THcScalerEvtHandler.cxx.
Definition at line 276 of file THcScalerEvtHandler.cxx.
|
private |
Definition at line 877 of file THcScalerEvtHandler.cxx.
|
virtual |
Definition at line 117 of file THcScalerEvtHandler.cxx.
|
staticprivate |
Definition at line 904 of file THcScalerEvtHandler.cxx.
|
virtual |
Definition at line 632 of file THcScalerEvtHandler.cxx.
|
private |
Definition at line 142 of file THcScalerEvtHandler.cxx.
|
virtual |
Delay analysis of this event type to end.
Final scaler events generated in readout list end routines may not come in order in the data stream. If the event type of a end routine scaler event is set, then the event contents will be saved and analyzed at the end of the analysis so that time ordering of scaler events is preserved.
Definition at line 192 of file THcScalerEvtHandler.cxx.
Definition at line 48 of file THcScalerEvtHandler.h.
Definition at line 49 of file THcScalerEvtHandler.h.
Definition at line 46 of file THcScalerEvtHandler.h.
|
private |
Definition at line 77 of file THcScalerEvtHandler.h.
|
private |
Definition at line 78 of file THcScalerEvtHandler.h.
|
private |
Definition at line 82 of file THcScalerEvtHandler.h.
|
private |
Definition at line 72 of file THcScalerEvtHandler.h.
|
private |
Definition at line 73 of file THcScalerEvtHandler.h.
|
private |
Definition at line 74 of file THcScalerEvtHandler.h.
|
private |
Definition at line 75 of file THcScalerEvtHandler.h.
|
private |
Definition at line 68 of file THcScalerEvtHandler.h.
|
private |
Definition at line 70 of file THcScalerEvtHandler.h.
|
private |
Definition at line 64 of file THcScalerEvtHandler.h.
|
private |
Definition at line 60 of file THcScalerEvtHandler.h.
|
private |
Definition at line 71 of file THcScalerEvtHandler.h.
|
private |
Definition at line 61 of file THcScalerEvtHandler.h.
|
private |
Definition at line 62 of file THcScalerEvtHandler.h.
|
private |
Definition at line 63 of file THcScalerEvtHandler.h.
|
private |
Definition at line 88 of file THcScalerEvtHandler.h.
|
private |
Definition at line 69 of file THcScalerEvtHandler.h.
|
private |
Definition at line 90 of file THcScalerEvtHandler.h.
|
private |
Definition at line 91 of file THcScalerEvtHandler.h.
|
private |
Definition at line 87 of file THcScalerEvtHandler.h.
|
private |
Definition at line 66 of file THcScalerEvtHandler.h.
|
private |
Definition at line 89 of file THcScalerEvtHandler.h.
|
private |
Definition at line 93 of file THcScalerEvtHandler.h.
|
private |
Definition at line 76 of file THcScalerEvtHandler.h.
|
private |
Definition at line 76 of file THcScalerEvtHandler.h.
|
private |
Definition at line 59 of file THcScalerEvtHandler.h.
|
private |
Definition at line 86 of file THcScalerEvtHandler.h.
|
private |
Definition at line 85 of file THcScalerEvtHandler.h.
|
private |
Definition at line 67 of file THcScalerEvtHandler.h.
|
private |
Definition at line 92 of file THcScalerEvtHandler.h.
|
private |
Definition at line 83 of file THcScalerEvtHandler.h.
|
private |
Definition at line 65 of file THcScalerEvtHandler.h.
|
private |
Definition at line 84 of file THcScalerEvtHandler.h.
|
private |
Definition at line 76 of file THcScalerEvtHandler.h.
|
private |
Definition at line 76 of file THcScalerEvtHandler.h.
|
private |
Definition at line 76 of file THcScalerEvtHandler.h.
|
private |
Definition at line 81 of file THcScalerEvtHandler.h.
|
private |
Definition at line 80 of file THcScalerEvtHandler.h.
|
private |
Definition at line 79 of file THcScalerEvtHandler.h.
|
private |
Definition at line 58 of file THcScalerEvtHandler.h.
|
private |
Definition at line 57 of file THcScalerEvtHandler.h.