Class Reference for E1039 Core & Analysis Software
Fun4AllDummyInputManager.cc
Go to the documentation of this file.
1
#include "
Fun4AllDummyInputManager.h
"
2
#include "
Fun4AllSyncManager.h
"
3
#include <
phool/recoConsts.h
>
4
5
#include <iostream>
6
7
using namespace
std;
8
9
Fun4AllDummyInputManager::Fun4AllDummyInputManager
(
const
string
&name,
const
string
&nodename):
10
Fun4AllInputManager
(name, nodename),
11
numevents(0)
12
{
13
filename
=
"NOFILE-0000000000-0000.root"
;
14
return
;
15
}
16
17
void
18
Fun4AllDummyInputManager::setSyncManager
(
Fun4AllSyncManager
*master)
19
{
20
// set the runnumber in Fun4All if rc flag is set
21
// so InitRun is triggered.
22
// This setSyncManager is executed during Fun4AllServer::registerInputManager()
23
// normally the runnumber is set in Fun4AllInputManager::fileopen() but since it
24
// would be kind of ridicolous to call this for a dummy input manager
25
// we set the runnumber here
26
Fun4AllInputManager::setSyncManager
(master);
27
recoConsts
*rc =
recoConsts::instance
();
28
int
runnumber = rc->
get_IntFlag
(
"RUNNUMBER"
,0);
29
mySyncManager
->
CurrentRun
(runnumber);
30
return
;
31
}
32
33
int
34
Fun4AllDummyInputManager::run
(
const
int
nevents
)
35
{
36
numevents
+=
nevents
;
37
if
(
verbosity
>0)
38
{
39
cout <<
"Event No: "
<<
numevents
<< endl;
40
}
41
return
Fun4AllReturnCodes::EVENT_OK
;
42
}
Fun4AllDummyInputManager.h
Fun4AllSyncManager.h
Fun4AllBase::verbosity
int verbosity
The verbosity level. 0 means not verbose at all.
Definition:
Fun4AllBase.h:75
Fun4AllDummyInputManager::Fun4AllDummyInputManager
Fun4AllDummyInputManager(const std::string &name="DUMMY", const std::string &nodename="DST")
Definition:
Fun4AllDummyInputManager.cc:9
Fun4AllDummyInputManager::setSyncManager
void setSyncManager(Fun4AllSyncManager *master)
Definition:
Fun4AllDummyInputManager.cc:18
Fun4AllDummyInputManager::run
int run(const int)
Definition:
Fun4AllDummyInputManager.cc:34
Fun4AllDummyInputManager::numevents
int numevents
Definition:
Fun4AllDummyInputManager.h:28
Fun4AllInputManager
Definition:
Fun4AllInputManager.h:17
Fun4AllInputManager::mySyncManager
Fun4AllSyncManager * mySyncManager
Definition:
Fun4AllInputManager.h:58
Fun4AllInputManager::setSyncManager
virtual void setSyncManager(Fun4AllSyncManager *master)
Definition:
Fun4AllInputManager.h:41
Fun4AllInputManager::filename
std::string filename
Definition:
Fun4AllInputManager.h:53
Fun4AllSyncManager
Definition:
Fun4AllSyncManager.h:17
Fun4AllSyncManager::CurrentRun
int CurrentRun()
Definition:
Fun4AllSyncManager.h:35
PHFlag::get_IntFlag
virtual int get_IntFlag(const std::string &name) const
Definition:
PHFlag.cc:117
recoConsts
Definition:
recoConsts.h:18
recoConsts::instance
static recoConsts * instance()
Definition:
recoConsts.cc:7
Fun4AllReturnCodes::EVENT_OK
@ EVENT_OK
Definition:
Fun4AllReturnCodes.h:8
submit_bnl.nevents
nevents
Definition:
submit_bnl.py:11
recoConsts.h
e1039-core
framework
fun4all
Fun4AllDummyInputManager.cc
Built by
Haiwang Yu
. updated:
Thu Jan 30 2025 10:15:15
using
1.9.1 with
SeaQuest GitHub integration