Public Member Functions | Private Attributes

TTrbAnalysis Class Reference

#include <TTrbAnalysis.h>

Collaboration diagram for TTrbAnalysis:
Collaboration graph
[legend]

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
TTrbEventfUnpackEvent
TH1D * fSize
Int_t fEvents
Int_t fLastEvent

Detailed Description

Definition at line 11 of file TTrbAnalysis.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

Int_t TTrbAnalysis::UserEventFunc (  )  [virtual]

This function is called once for each event.

Fill histogram

Definition at line 113 of file TTrbAnalysis.cxx.

References fEvents, fRawEvent, and fSize.

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.


Field Documentation

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().

Definition at line 24 of file TTrbAnalysis.h.

Referenced by UserPostLoop(), and UserPreLoop().


The documentation for this class was generated from the following files: