Public Member Functions | Private Member Functions | Private Attributes

ScEvent Class Reference

#include <ScEvent.h>

Public Member Functions

 ScEvent ()
virtual ~ScEvent ()
Int_t GetEpoch () const
Double_t GetTime () const
Double_t GetStartTime () const
Double_t GetStopTime () const
Double_t GetTimeRms () const
Int_t GetNDigis () const
Int_t GetNAux () const
void AddData (nxyter::Data *digi, Long64_t hitTime, Int_t epoch)
void Clear ()
Bool_t IsEmpty ()
virtual void Print (Option_t *opt="") const

Private Member Functions

 ClassDef (ScEvent, 1)

Private Attributes

Int_t fEpoch
Double_t fTstart
Double_t fTstop
Double_t fTmean
Double_t fTvar
Int_t fNDigis
Int_t fNAux
TClonesArray fDigis
TClonesArray fAux
Double_t fTsum
Double_t fT2sum

Detailed Description

Definition at line 24 of file ScEvent.h.


Constructor & Destructor Documentation

ScEvent::ScEvent (  ) 

Default constructor

Definition at line 10 of file ScEvent.cxx.

References Clear().

virtual ScEvent::~ScEvent (  )  [inline, virtual]

Destructor

Definition at line 35 of file ScEvent.h.

References Clear().


Member Function Documentation

void ScEvent::AddData ( nxyter::Data *  digi,
Long64_t  hitTime,
Int_t  epoch 
)

Add a digi to the array

Definition at line 24 of file ScEvent.cxx.

References fAux, fDigis, fEpoch, fNAux, fNDigis, fT2sum, fTmean, fTstart, fTstop, fTsum, fTvar, and IsEmpty().

ScEvent::ClassDef ( ScEvent  ,
 
) [private]

For calculation of tvar

void ScEvent::Clear (  ) 

Clear the event

Definition at line 15 of file ScEvent.cxx.

References fAux, fDigis, fEpoch, fNAux, fNDigis, fT2sum, fTmean, fTstart, fTstop, fTsum, and fTvar.

Referenced by ScEvent(), and ~ScEvent().

Int_t ScEvent::GetEpoch (  )  const [inline]

Accessors

Definition at line 39 of file ScEvent.h.

References fEpoch.

Int_t ScEvent::GetNAux (  )  const [inline]

Definition at line 45 of file ScEvent.h.

References fNAux.

Int_t ScEvent::GetNDigis (  )  const [inline]

Definition at line 44 of file ScEvent.h.

References fNDigis.

Double_t ScEvent::GetStartTime (  )  const [inline]

Definition at line 41 of file ScEvent.h.

References fTstart.

Double_t ScEvent::GetStopTime (  )  const [inline]

Definition at line 42 of file ScEvent.h.

References fTstop.

Double_t ScEvent::GetTime (  )  const [inline]

Definition at line 40 of file ScEvent.h.

References fTmean.

Double_t ScEvent::GetTimeRms (  )  const [inline]

Definition at line 43 of file ScEvent.h.

References fTvar.

Bool_t ScEvent::IsEmpty (  )  [inline]

Empty event

Definition at line 57 of file ScEvent.h.

References fNAux, and fNDigis.

Referenced by AddData().

void ScEvent::Print ( Option_t *  opt = ""  )  const [virtual]

Print

Definition at line 51 of file ScEvent.cxx.

References fEpoch, fNDigis, fTmean, fTstart, fTstop, and fTvar.


Field Documentation

TClonesArray ScEvent::fAux [private]

Array of ScDigis

Definition at line 79 of file ScEvent.h.

Referenced by AddData(), and Clear().

TClonesArray ScEvent::fDigis [private]

Number of aux signals in this event

Definition at line 78 of file ScEvent.h.

Referenced by AddData(), and Clear().

Int_t ScEvent::fEpoch [private]

Definition at line 70 of file ScEvent.h.

Referenced by AddData(), Clear(), GetEpoch(), and Print().

Int_t ScEvent::fNAux [private]

Number of hit in this event

Definition at line 76 of file ScEvent.h.

Referenced by AddData(), Clear(), GetNAux(), and IsEmpty().

Int_t ScEvent::fNDigis [private]

RMS of hit times in event

Definition at line 75 of file ScEvent.h.

Referenced by AddData(), Clear(), GetNDigis(), IsEmpty(), and Print().

Double_t ScEvent::fT2sum [private]

For calculation of tmean and tvar

Definition at line 82 of file ScEvent.h.

Referenced by AddData(), and Clear().

Double_t ScEvent::fTmean [private]

Time of last hit [ns]

Definition at line 73 of file ScEvent.h.

Referenced by AddData(), Clear(), GetTime(), and Print().

Double_t ScEvent::fTstart [private]

Epoch marker for first hit in event

Definition at line 71 of file ScEvent.h.

Referenced by AddData(), Clear(), GetStartTime(), and Print().

Double_t ScEvent::fTstop [private]

Time of first hit [ns]

Definition at line 72 of file ScEvent.h.

Referenced by AddData(), Clear(), GetStopTime(), and Print().

Double_t ScEvent::fTsum [private]

Array of ScDigis (Aux signals)

Definition at line 81 of file ScEvent.h.

Referenced by AddData(), and Clear().

Double_t ScEvent::fTvar [private]

Average event time [ns]

Definition at line 74 of file ScEvent.h.

Referenced by AddData(), Clear(), GetTimeRms(), and Print().


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