Cat
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
Event Class Reference

#include <include/Event.h>

Inheritance diagram for Event:

Public Member Functions

 Event ()
 Standard constructor. More...
 
virtual ~Event ()
 Destructor. More...
 
void setRun (unsigned long irun)
 
void Clear (Option_t *option="")
 
void newEvt ()
 
void addData (int, int, int)
 
TClonesArray * getData ()
 

Public Attributes

ClassDef(Event, 1) protected unsigned long nData
 
TClonesArray * raw
 
TRef fLastData
 

Static Public Attributes

static TClonesArray * fgData
 

Detailed Description

Author
Frédéric Machefert
Date
2004-10-04

Definition at line 23 of file Event.h.

Constructor & Destructor Documentation

◆ Event()

Event::Event ( )

Standard constructor.

◆ ~Event()

Event::~Event ( )
virtual

Destructor.

Definition at line 35 of file Event.cpp.

References Clear().

35  {
36  Clear();
37 }
void Clear(Option_t *option="")
Definition: Event.cpp:48

Member Function Documentation

◆ addData()

void Event::addData ( int  evt,
int  chl,
int  value 
)

Definition at line 40 of file Event.cpp.

References fLastData, nData, and raw.

Referenced by setRun().

40  {
41  TClonesArray &rawdata = *raw;
42  Data *val = new(rawdata[nData++]) Data( evt , chl , value );
43  //Save reference to last Data in the collection of Datas
44  fLastData = val;
45 }
TClonesArray * raw
Definition: Event.h:41
ClassDef(Event, 1) protected unsigned long nData
Definition: Event.h:35
TRef fLastData
Definition: Event.h:43
Definition: Data.h:16

◆ Clear()

void Event::Clear ( Option_t *  option = "")

Definition at line 48 of file Event.cpp.

References raw.

Referenced by setRun(), and ~Event().

49 {
50  raw->Clear("C"); //will also call Data::Clear
51 }
TClonesArray * raw
Definition: Event.h:41

◆ getData()

TClonesArray* Event::getData ( )
inline

Definition at line 34 of file Event.h.

References fgData.

34 { return fgData;}
static TClonesArray * fgData
Definition: Event.h:42

◆ newEvt()

void Event::newEvt ( )

Definition at line 54 of file Event.cpp.

Referenced by setRun().

55 {
56  EvtHdr.newEvt();
57  /*
58  data->Clear("C"); //will also call Data::Clear
59  nData = 0 ;
60  */
61 }

◆ setRun()

void Event::setRun ( unsigned long  irun)
inline

Definition at line 28 of file Event.h.

References addData(), Clear(), and newEvt().

28  {
29  EvtHdr.setRun ( irun );
30  }

Member Data Documentation

◆ fgData

TClonesArray* Event::fgData
static

Definition at line 42 of file Event.h.

Referenced by getData().

◆ fLastData

TRef Event::fLastData

Definition at line 43 of file Event.h.

Referenced by addData().

◆ nData

ClassDef (Event,1) protected unsigned long Event::nData

Definition at line 35 of file Event.h.

Referenced by addData().

◆ raw

TClonesArray* Event::raw

Definition at line 41 of file Event.h.

Referenced by addData(), and Clear().


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