EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PndEventCounterTask Class Reference

#include <EicRoot/blob/master/PndTools/generalTools/PndEventCounterTask.h>

+ Inheritance diagram for PndEventCounterTask:
+ Collaboration diagram for PndEventCounterTask:

Public Member Functions

 PndEventCounterTask (const char *name="Event Counter", Int_t nev=1, Int_t talk=1)
 
virtual ~PndEventCounterTask ()
 
virtual void SetParContainers ()
 
virtual InitStatus Init ()
 
virtual InitStatus ReInit ()
 
virtual void Exec (Option_t *opt)
 
void SetVerbose (Int_t iVerbose)
 
void SetAnnounce (Int_t iann)
 
void SetNEvts (Int_t n)
 
Int_t GetEventCount () const
 
Double_t GetTime ()
 
- Public Member Functions inherited from FairTask
 FairTask ()
 
 FairTask (const char *name, Int_t iVerbose=1)
 
virtual ~FairTask ()
 
void InitTask ()
 
void ReInitTask ()
 
void SetParTask ()
 
virtual void FinishTask ()
 
virtual void FinishEvent ()
 
void SetVerbose (Int_t iVerbose)
 
void SetInputPersistance (Bool_t val)
 
void CheckInputPersistance (TString branchName)
 

Private Member Functions

void StartTimer ()
 
 ClassDef (PndEventCounterTask, 1)
 

Private Attributes

Bool_t fInitialiezed
 
Int_t fEvtCounter
 
Int_t fEvtTalk
 
Int_t fNEvts
 
Double_t fTimeOffset
 
TStopwatch fTimer
 

Additional Inherited Members

- Protected Member Functions inherited from FairTask
virtual void Finish ()
 
void InitTasks ()
 
void ReInitTasks ()
 
void SetParTasks ()
 
void FinishTasks ()
 
void FinishEvents ()
 
- Protected Attributes inherited from FairTask
Int_t fVerbose
 
Int_t fInputPersistance
 Indicates if input branch is persistant.
 
FairLoggerfLogger
 

Detailed Description

Definition at line 10 of file PndEventCounterTask.h.

View newest version in sPHENIX GitHub at line 10 of file PndEventCounterTask.h

Constructor & Destructor Documentation

PndEventCounterTask::PndEventCounterTask ( const char *  name = "Event Counter",
Int_t  nev = 1,
Int_t  talk = 1 
)

Definition at line 9 of file PndEventCounterTask.cxx.

View newest version in sPHENIX GitHub at line 9 of file PndEventCounterTask.cxx

References fTimer.

PndEventCounterTask::~PndEventCounterTask ( )
virtual

Definition at line 23 of file PndEventCounterTask.cxx.

View newest version in sPHENIX GitHub at line 23 of file PndEventCounterTask.cxx

Member Function Documentation

PndEventCounterTask::ClassDef ( PndEventCounterTask  ,
 
)
private
void PndEventCounterTask::Exec ( Option_t *  opt)
virtual

Definition at line 36 of file PndEventCounterTask.cxx.

View newest version in sPHENIX GitHub at line 36 of file PndEventCounterTask.cxx

References fEvtCounter, fEvtTalk, fInitialiezed, fNEvts, fTimeOffset, fTimer, FairTask::fVerbose, printf(), StartTimer(), and t.

+ Here is the call graph for this function:

Int_t PndEventCounterTask::GetEventCount ( ) const
inline

Definition at line 22 of file PndEventCounterTask.h.

View newest version in sPHENIX GitHub at line 22 of file PndEventCounterTask.h

References fEvtCounter.

Double_t PndEventCounterTask::GetTime ( )
inline

Definition at line 23 of file PndEventCounterTask.h.

View newest version in sPHENIX GitHub at line 23 of file PndEventCounterTask.h

References fTimer.

virtual InitStatus PndEventCounterTask::Init ( void  )
inlinevirtual

Intialisation at begin of run. To be implemented in the derived class. Success If not kSUCCESS, task will be set inactive.

Reimplemented from FairTask.

Definition at line 16 of file PndEventCounterTask.h.

View newest version in sPHENIX GitHub at line 16 of file PndEventCounterTask.h

References kSUCCESS.

virtual InitStatus PndEventCounterTask::ReInit ( )
inlinevirtual

Reinitialisation. To be implemented in the derived class. Success If not kSUCCESS, task will be set inactive.

Reimplemented from FairTask.

Definition at line 17 of file PndEventCounterTask.h.

View newest version in sPHENIX GitHub at line 17 of file PndEventCounterTask.h

References kSUCCESS.

void PndEventCounterTask::SetAnnounce ( Int_t  iann)
inline

Definition at line 20 of file PndEventCounterTask.h.

View newest version in sPHENIX GitHub at line 20 of file PndEventCounterTask.h

References fEvtTalk.

void PndEventCounterTask::SetNEvts ( Int_t  n)
inline

Definition at line 21 of file PndEventCounterTask.h.

View newest version in sPHENIX GitHub at line 21 of file PndEventCounterTask.h

References fNEvts, and n.

virtual void PndEventCounterTask::SetParContainers ( )
inlinevirtual

Intialise parameter containers. To be implemented in the derived class.

Reimplemented from FairTask.

Definition at line 15 of file PndEventCounterTask.h.

View newest version in sPHENIX GitHub at line 15 of file PndEventCounterTask.h

void PndEventCounterTask::SetVerbose ( Int_t  iVerbose)
inline

Definition at line 19 of file PndEventCounterTask.h.

View newest version in sPHENIX GitHub at line 19 of file PndEventCounterTask.h

References FairTask::fVerbose.

void PndEventCounterTask::StartTimer ( )
private

Definition at line 28 of file PndEventCounterTask.cxx.

View newest version in sPHENIX GitHub at line 28 of file PndEventCounterTask.cxx

References fEvtCounter, fInitialiezed, fTimeOffset, and fTimer.

Referenced by Exec().

+ Here is the caller graph for this function:

Member Data Documentation

Int_t PndEventCounterTask::fEvtCounter
private

Definition at line 28 of file PndEventCounterTask.h.

View newest version in sPHENIX GitHub at line 28 of file PndEventCounterTask.h

Referenced by Exec(), GetEventCount(), and StartTimer().

Int_t PndEventCounterTask::fEvtTalk
private

Definition at line 29 of file PndEventCounterTask.h.

View newest version in sPHENIX GitHub at line 29 of file PndEventCounterTask.h

Referenced by Exec(), and SetAnnounce().

Bool_t PndEventCounterTask::fInitialiezed
private

Definition at line 27 of file PndEventCounterTask.h.

View newest version in sPHENIX GitHub at line 27 of file PndEventCounterTask.h

Referenced by Exec(), and StartTimer().

Int_t PndEventCounterTask::fNEvts
private

Definition at line 30 of file PndEventCounterTask.h.

View newest version in sPHENIX GitHub at line 30 of file PndEventCounterTask.h

Referenced by Exec(), and SetNEvts().

Double_t PndEventCounterTask::fTimeOffset
private

Definition at line 31 of file PndEventCounterTask.h.

View newest version in sPHENIX GitHub at line 31 of file PndEventCounterTask.h

Referenced by Exec(), and StartTimer().

TStopwatch PndEventCounterTask::fTimer
private

Definition at line 32 of file PndEventCounterTask.h.

View newest version in sPHENIX GitHub at line 32 of file PndEventCounterTask.h

Referenced by Exec(), GetTime(), PndEventCounterTask(), and StartTimer().


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