EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
PndEventCounterTask.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PndEventCounterTask.h
1
2
#ifndef PNDEVENTCOUNTERTASK_H
3
#define PNDEVENTCOUNTERTASK_H
4
5
#include "
FairTask.h
"
6
#include "TStopwatch.h"
7
8
class
TClonesArray;
9
10
class
PndEventCounterTask
:
public
FairTask
11
{
12
public
:
13
PndEventCounterTask
(
const
char
*
name
=
"Event Counter"
, Int_t nev=1, Int_t talk=1);
14
virtual
~PndEventCounterTask
();
15
virtual
void
SetParContainers
() {
return
;}
16
virtual
InitStatus
Init
(){
return
kSUCCESS
;}
17
virtual
InitStatus
ReInit
(){
return
kSUCCESS
;}
18
virtual
void
Exec
(Option_t* opt);
19
void
SetVerbose
(Int_t iVerbose) {
fVerbose
=iVerbose;}
20
void
SetAnnounce
(Int_t iann) {
fEvtTalk
=iann;}
21
void
SetNEvts
(Int_t
n
){
fNEvts
=
n
;};
22
Int_t
GetEventCount
()
const
{
return
fEvtCounter
;}
23
Double_t
GetTime
() {
return
fTimer
.RealTime();
fTimer
.Continue();}
24
25
private
:
26
void
StartTimer
();
27
Bool_t
fInitialiezed
;
28
Int_t
fEvtCounter
;
29
Int_t
fEvtTalk
;
30
Int_t
fNEvts
;
31
Double_t
fTimeOffset
;
32
TStopwatch
fTimer
;
33
ClassDef
(
PndEventCounterTask
,1);
34
35
};
36
37
#endif
EicRoot
blob
master
PndTools
generalTools
PndEventCounterTask.h
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:37
using
1.8.2 with
EIC GitHub integration