Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Fun4AllDummyInputManager.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file Fun4AllDummyInputManager.cc
2 
3 #include "Fun4AllSyncManager.h"
4 
5 #include <phool/recoConsts.h>
6 
7 #include <iostream>
8 
10  : Fun4AllInputManager(name, nodename)
11 {
12  FileName("NOFILE-0000000000-0000.root");
13  return;
14 }
15 
17 {
18  m_NumEvents = 0;
19  return 0;
20 }
21 
23 {
24  m_NumEvents -= nevt;
25  m_SumEvents -= nevt;
26  return 0;
27 }
28 
30 {
31  // set the runnumber in Fun4All if rc flag is set
32  // so InitRun is triggered.
33  // This setSyncManager is executed during Fun4AllServer::registerInputManager()
34  // normally the runnumber is set in Fun4AllInputManager::fileopen() but since it
35  // would be kind of ridicolous to call this for a dummy input manager
36  // we set the runnumber here
39  int runnumber = rc->get_IntFlag("RUNNUMBER", 0);
40  MySyncManager()->CurrentRun(runnumber);
41  return;
42 }
43 
45 {
49  if (Verbosity() > 0)
50  {
51  std::cout << "Event No: " << m_NumEvents;
52  if (m_SumEvents != m_NumEvents)
53  {
54  std::cout << ", Event Sum: " << m_SumEvents;
55  }
56  std::cout << std::endl;
57  }
59 }