|
Int_t | Analyze (THaEvData *evdata) |
|
Int_t | AnalyzeBuffer (UInt_t *rdata, Bool_t onlysync) |
|
virtual Int_t | End (THaRunBase *r=nullptr) |
|
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 () |
|
Public Member Functions inherited from THaEvtTypeHandler |
virtual void | AddEvtType (UInt_t evtype) |
|
virtual void | EvDump (THaEvData *evdata) const |
|
virtual void | EvPrint () const |
|
virtual UInt_t | GetEvtType () |
|
virtual std::vector< UInt_t > | GetEvtTypes () |
|
virtual UInt_t | GetNumTypes () |
|
virtual Bool_t | IsMyEvent (UInt_t type) const |
|
virtual void | SetDebugFile (const char *filename) |
|
virtual void | SetDebugFile (std::ofstream *file) |
|
virtual void | SetEvtType (UInt_t evtype) |
|
| THaEvtTypeHandler (const char *name, const char *description) |
|
virtual | ~THaEvtTypeHandler () |
|
virtual Int_t | Begin (THaRunBase *r=nullptr) |
|
virtual void | Clear (Option_t *="") |
|
const char * | GetClassName () const |
|
const char * | GetConfig () const |
|
virtual const char * | GetDBFileName () const |
|
Int_t | GetDebug () const |
|
TDatime | GetInitDate () const |
|
const char * | GetPrefix () const |
|
TString | GetPrefixName () const |
|
EStatus | Init () |
|
virtual Int_t | InitOutput (THaOutput *) |
|
Bool_t | IsInit () const |
|
Bool_t | IsOK () const |
|
Bool_t | IsOKOut () const |
|
virtual FILE * | OpenFile (const TDatime &date) |
|
virtual FILE * | OpenRunDBFile (const TDatime &date) |
|
THaAnalysisObject & | operator= (const THaAnalysisObject &&)=delete |
|
THaAnalysisObject & | operator= (const THaAnalysisObject &)=delete |
|
virtual void | Print (Option_t *opt="") const |
|
void | SetConfig (const char *label) |
|
virtual void | SetDebug (Int_t level) |
|
virtual void | SetName (const char *name) |
|
virtual void | SetNameTitle (const char *name, const char *title) |
|
EStatus | Status () const |
|
| THaAnalysisObject () |
|
| THaAnalysisObject (const THaAnalysisObject &&)=delete |
|
| THaAnalysisObject (const THaAnalysisObject &)=delete |
|
virtual | ~THaAnalysisObject () |
|
void | Clear (Option_t *option="") override |
|
TObject * | Clone (const char *newname="") const override |
|
Int_t | Compare (const TObject *obj) const override |
|
void | Copy (TObject &named) const override |
|
virtual void | FillBuffer (char *&buffer) |
|
const char * | GetName () const override |
|
const char * | GetTitle () const override |
|
ULong_t | Hash () const override |
|
TClass * | IsA () const override |
|
Bool_t | IsSortable () const override |
|
void | ls (Option_t *option="") const override |
|
TNamed & | operator= (const TNamed &rhs) |
|
void | Print (Option_t *option="") const override |
|
virtual void | SetTitle (const char *title="") |
|
virtual Int_t | Sizeof () const |
|
void | Streamer (TBuffer &) override |
|
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
|
| TNamed () |
|
| TNamed (const char *name, const char *title) |
|
| TNamed (const TNamed &named) |
|
| TNamed (const TString &name, const TString &title) |
|
virtual | ~TNamed () |
|
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 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 char * | GetObjectInfo (Int_t px, Int_t py) const |
|
virtual Option_t * | GetOption () const |
|
virtual UInt_t | GetUniqueID () const |
|
virtual Bool_t | HandleTimer (TTimer *timer) |
|
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) |
|
Bool_t | IsDestructed () const |
|
virtual Bool_t | IsEqual (const TObject *obj) const |
|
virtual Bool_t | IsFolder () const |
|
R__ALWAYS_INLINE Bool_t | IsOnHeap () const |
|
R__ALWAYS_INLINE Bool_t | IsZombie () 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 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) |
|
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 () |
|
|
enum | EMode |
|
enum | EStatus |
|
enum | EType |
|
enum | EDeprecatedStatusBits |
|
enum | EStatusBits |
|
static Int_t | DefineVarsFromList (const void *list, EType type, EMode mode, const char *def_prefix, const TObject *obj, const char *prefix, const char *here, const char *comment_subst="") |
|
static void | GeoToSph (Double_t th_geo, Double_t ph_geo, Double_t &th_sph, Double_t &ph_sph) |
|
static Bool_t | IntersectPlaneWithRay (const TVector3 &xax, const TVector3 &yax, const TVector3 &org, const TVector3 &ray_start, const TVector3 &ray_vect, Double_t &length, TVector3 &intersect) |
|
static Int_t | LoadDB (FILE *file, const TDatime &date, const DBRequest *request, const char *prefix, Int_t search=0, const char *here="THaAnalysisObject::LoadDB") |
|
static void | PrintObjects (Option_t *opt="") |
|
static void | SphToGeo (Double_t th_sph, Double_t ph_sph, Double_t &th_geo, Double_t &ph_geo) |
|
static TClass * | Class () |
|
static const char * | Class_Name () |
|
static constexpr Version_t | Class_Version () |
|
static const char * | DeclFileName () |
|
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) |
|
| kDefine |
|
| kDelete |
|
| kFileError |
|
| kInitError |
|
| kNotinit |
|
| kOK |
|
| kRVarDef |
|
| kVarDef |
|
| kBitMask |
|
| kCanDelete |
|
| kCannotPick |
|
| kHasUUID |
|
| kInconsistent |
|
| kInvalidObject |
|
| kIsOnHeap |
|
| kIsReferenced |
|
| kMustCleanup |
|
| kNoContextMenu |
|
| kNotDeleted |
|
| kObjInCanvas |
|
| kOverwrite |
|
| kSingleKey |
|
| kWriteDelete |
|
| kZombie |
|
enum | EProperties |
|
Protected Member Functions inherited from THaEvtTypeHandler |
virtual void | MakePrefix () |
|
virtual const char * | ClassNameHere (const char *) const |
|
virtual Int_t | DefineVariables (EMode mode=kDefine) |
|
Int_t | DefineVarsFromList (const RVarDef *list, EMode mode, const char *def_prefix="", const char *comment_subst="") const |
|
Int_t | DefineVarsFromList (const VarDef *list, EMode mode=kDefine, const char *def_prefix="", const char *comment_subst="") const |
|
Int_t | DefineVarsFromList (const void *list, EType type, EMode mode, const char *def_prefix="", const char *comment_subst="") const |
|
virtual void | DoError (int level, const char *location, const char *fmt, va_list va) const |
|
THaAnalysisObject * | FindModule (const char *name, const char *classname, bool do_error=true) |
|
virtual const char * | Here (const char *) const |
|
Int_t | LoadDB (FILE *f, const TDatime &date, const DBRequest *req, Int_t search=0) const |
|
void | MakePrefix (const char *basename) |
|
virtual Int_t | ReadRunDatabase (const TDatime &date) |
|
Int_t | RemoveVariables () |
|
| THaAnalysisObject (const char *name, const char *description) |
|
void | MakeZombie () |
|
Protected Attributes inherited from THaEvtTypeHandler |
std::vector< UInt_t > | eventtypes |
|
std::ofstream * | fDebugFile |
|
TString | fConfig |
|
Int_t | fDebug |
|
TObject * | fExtra |
|
TDatime | fInitDate |
|
Bool_t | fIsInit |
|
Bool_t | fIsSetup |
|
std::map< std::string, UInt_t > | fMessages |
|
UInt_t | fNEventsWithWarnings |
|
Bool_t | fOKOut |
|
char * | fPrefix |
|
UInt_t | fProperties |
|
EStatus | fStatus |
|
| kConfigOverride |
|
| kNeedsRunDB |
|
TString | fName |
|
TString | fTitle |
|
| kOnlyPrepStep |
|
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
R__EXTERN class TList * gHaEvtHandlers
Event handler for Hall C scalers.
void Add(TObject *obj) override
To enable debugging you may try this in the setup script
virtual void SetDebugFile(const char *filename)
- Author
- E. Brash based on THaScalerEvtHandler by R. Michaels
Definition at line 39 of file THcScalerEvtHandler.h.