AliPhysics  fe039ad (fe039ad)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
EventTimeData Struct Reference

Public Types

enum  { kBCWidth = 12, kOrbitWidth = 24, kPeriodWidth = 28 }
 

Public Member Functions

void CreateBranch (TTree *tree)
 
void ReadBranch (TTree *tree)
 
void Fill (AliESDEvent *esd, UInt_t dets, const TString &guid)
 

Static Public Member Functions

static ULong64_t EncodeFull (ULong64_t period, ULong64_t orbit, ULong64_t bc)
 

Public Attributes

ULong64_t fFull
 
UInt_t fTime
 
UInt_t fDetectors
 
UShort_t fType
 
UChar_t fGUID [42]
 

Detailed Description

Data structure to be filled by task - one for each event

Definition at line 18 of file EventTimeTask.C.

Member Enumeration Documentation

anonymous enum

Widths of field in the full timestamp

Enumerator
kBCWidth 
kOrbitWidth 
kPeriodWidth 

Definition at line 23 of file EventTimeTask.C.

Member Function Documentation

void EventTimeData::CreateBranch ( TTree tree)
inline

Create a branch in a tree

Parameters
treeTree to create the branch in

Definition at line 43 of file EventTimeTask.C.

Referenced by EventTimeTask::UserCreateOutputObjects().

static ULong64_t EventTimeData::EncodeFull ( ULong64_t  period,
ULong64_t  orbit,
ULong64_t  bc 
)
inlinestatic

Utility function to encode the full time stamp from components.

Parameters
periodPeriod counter (overflow of orbit counter)
orbitOrbit counter (period of 88us)
bcBunch crossing number (period of 25ns)
Returns
Encoded full time stamp

Definition at line 66 of file EventTimeTask.C.

Referenced by ELossTimeTask::Event(), and Fill().

void EventTimeData::Fill ( AliESDEvent esd,
UInt_t  dets,
const TString guid 
)
inline

Fill information from ESD into this data structure.

Parameters
esdEvent
detsList of active detectors in this event.
guidCurrent file GUID

Definition at line 92 of file EventTimeTask.C.

Referenced by EventTimeTask::UserExec().

void EventTimeData::ReadBranch ( TTree tree)
inline

Set the address of a branch for reading back objects from the tree

Parameters
treeTree to read back from

Definition at line 53 of file EventTimeTask.C.

Referenced by EventTimeSorter::OpenInput().

Member Data Documentation

UInt_t EventTimeData::fDetectors

Mask of detectors present in the event - FMD is 0x1000

Definition at line 33 of file EventTimeTask.C.

Referenced by Fill(), EventTimeSorter::Run(), and EventTimeSorter::Test().

ULong64_t EventTimeData::fFull

Full time stamp

Definition at line 29 of file EventTimeTask.C.

Referenced by CreateBranch(), Fill(), ReadBranch(), EventTimeSorter::Run(), and EventTimeSorter::Test().

UChar_t EventTimeData::fGUID[42]

GUID

Definition at line 37 of file EventTimeTask.C.

Referenced by Fill().

UInt_t EventTimeData::fTime

LDC creation time - standard time_t

Definition at line 31 of file EventTimeTask.C.

Referenced by Fill(), and EventTimeSorter::Run().

UShort_t EventTimeData::fType

Type of event - 7 is physics

Definition at line 35 of file EventTimeTask.C.

Referenced by Fill(), EventTimeSorter::Run(), and EventTimeSorter::Test().


The documentation for this struct was generated from the following file: