#include <TTrbAnalysis.h>
Public Member Functions | |
TTrbAnalysis () | |
TTrbAnalysis (int argc, char **argv) | |
This constructor is used. | |
virtual | ~TTrbAnalysis () |
virtual Int_t | UserPreLoop () |
virtual Int_t | UserEventFunc () |
virtual Int_t | UserPostLoop () |
Private Attributes | |
TGo4MbsEvent * | fRawEvent |
TTrbEvent * | fUnpackEvent |
TH1D * | fSize |
Int_t | fEvents |
Int_t | fLastEvent |
Definition at line 11 of file TTrbAnalysis.h.
TTrbAnalysis::TTrbAnalysis | ( | ) |
Definition at line 18 of file TTrbAnalysis.cxx.
TTrbAnalysis::TTrbAnalysis | ( | int | argc, | |
char ** | argv | |||
) |
This constructor is used.
The step definitions can be changed in the GUI. First step definitions: The name of the step can be used later to get event objects
Class name of user event source
Object name, class name
Object name, class name
Object name, class name
Disable output
Definition at line 29 of file TTrbAnalysis.cxx.
TTrbAnalysis::~TTrbAnalysis | ( | ) | [virtual] |
Definition at line 68 of file TTrbAnalysis.cxx.
Int_t TTrbAnalysis::UserEventFunc | ( | ) | [virtual] |
This function is called once for each event.
Fill histogram
Definition at line 113 of file TTrbAnalysis.cxx.
Int_t TTrbAnalysis::UserPostLoop | ( | ) | [virtual] |
Reset to avoid invalid pointer if analysis is changed in between
Definition at line 99 of file TTrbAnalysis.cxx.
References fEvents, fRawEvent, and fUnpackEvent.
Int_t TTrbAnalysis::UserPreLoop | ( | ) | [virtual] |
We update the pointers to the current event structures here:
Create histogram for UserEventFunc At this point, the histogram has been restored from autosave file if any.
No autosave read, create new and register
Reset all histograms to 0 before run Name specifies folder to clear
Definition at line 73 of file TTrbAnalysis.cxx.
References fEvents, fRawEvent, fSize, fUnpackEvent, and Trb_BUFSIZE.
Int_t TTrbAnalysis::fEvents [private] |
Definition at line 26 of file TTrbAnalysis.h.
Referenced by UserEventFunc(), UserPostLoop(), and UserPreLoop().
Int_t TTrbAnalysis::fLastEvent [private] |
Definition at line 27 of file TTrbAnalysis.h.
TGo4MbsEvent* TTrbAnalysis::fRawEvent [private] |
Definition at line 23 of file TTrbAnalysis.h.
Referenced by UserEventFunc(), UserPostLoop(), and UserPreLoop().
TH1D* TTrbAnalysis::fSize [private] |
Definition at line 25 of file TTrbAnalysis.h.
Referenced by UserEventFunc(), and UserPreLoop().
TTrbEvent* TTrbAnalysis::fUnpackEvent [private] |
Definition at line 24 of file TTrbAnalysis.h.
Referenced by UserPostLoop(), and UserPreLoop().