BOSS 7.1.0
BESIII Offline Software System
Loading...
Searching...
No Matches
BesActionInitializer Class Reference

#include <BesActionInitializer.hh>

+ Inheritance diagram for BesActionInitializer:

Public Member Functions

 BesActionInitializer ()
 
 ~BesActionInitializer ()
 
void Build () const
 
void BuildForMaster () const
 
void SetAsciiFlag (std::string flag)
 
void SetAsciiFile (std::string file)
 
void SetRootFlag (G4bool flag)
 
void SetRootFile (std::string file)
 
void SetTuningFile (std::vector< std::string > file)
 
void SetTDSFlag (G4bool flag)
 
void SetBesGenActionFlag (G4bool flag)
 

Detailed Description

Definition at line 40 of file BesActionInitializer.hh.

Constructor & Destructor Documentation

◆ BesActionInitializer()

BesActionInitializer::BesActionInitializer ( )

Definition at line 42 of file BesActionInitializer.cc.

42 :
43 G4VUserActionInitialization()
44{;}

◆ ~BesActionInitializer()

BesActionInitializer::~BesActionInitializer ( )
inline

Definition at line 45 of file BesActionInitializer.hh.

45{;};

Member Function Documentation

◆ Build()

void BesActionInitializer::Build ( ) const

Definition at line 48 of file BesActionInitializer.cc.

49{
50 if(m_besGenActionFlag)
51 SetUserAction(new BesPrimaryGeneratorAction());
52 BesRunAction* runAction = new BesRunAction();
53 BesEventAction* eventAction = new BesEventAction(runAction);
54 runAction->SetTDSFlag(m_TDSFlag);
55 runAction->SetAsciiFlag(m_asciiFlag);
56 runAction->SetAsciiFile(m_asciiFile);
57 runAction->SetRootFlag(m_rootFlag);
58 runAction->SetRootFile(m_rootFile);
59 /*std::vector<std::string>::iterator pd;
60 for (pd = m_tuningFile.begin(); pd != m_tuningFile.end(); pd++){
61 std::cout << "tuning File: " << *pd << std::endl;
62 }*/
63 runAction->SetTuningFile(m_tuningFile);
64
65 SetUserAction(runAction);
66 SetUserAction(eventAction);
67 SetUserAction(new BesSteppingAction());
68 SetUserAction(new BesTrackingAction(runAction));
69 //SetUserAction(new BesStackingAction());
70
71}
void SetTuningFile(std::vector< std::string > file)
Definition: BesRunAction.hh:59
void SetRootFile(std::string file)
Definition: BesRunAction.hh:58
void SetTDSFlag(G4bool flag)
Definition: BesRunAction.hh:61
void SetRootFlag(G4bool flag)
Definition: BesRunAction.hh:57
void SetAsciiFlag(std::string flag)
Definition: BesRunAction.hh:55
void SetAsciiFile(std::string file)
Definition: BesRunAction.hh:56

◆ BuildForMaster()

void BesActionInitializer::BuildForMaster ( ) const

Definition at line 75 of file BesActionInitializer.cc.

76{
77 //Run action in the master
78 SetUserAction(new BesRunAction());
79}

◆ SetAsciiFile()

void BesActionInitializer::SetAsciiFile ( std::string  file)
inline

Definition at line 51 of file BesActionInitializer.hh.

51{m_asciiFile = file;}
char * file
Definition: DQA_TO_DB.cxx:15

Referenced by BesSim::initialize().

◆ SetAsciiFlag()

void BesActionInitializer::SetAsciiFlag ( std::string  flag)
inline

Definition at line 50 of file BesActionInitializer.hh.

50{m_asciiFlag = flag;}

Referenced by BesSim::initialize().

◆ SetBesGenActionFlag()

void BesActionInitializer::SetBesGenActionFlag ( G4bool  flag)
inline

Definition at line 56 of file BesActionInitializer.hh.

56{m_besGenActionFlag = flag;}

Referenced by BesSim::initialize().

◆ SetRootFile()

void BesActionInitializer::SetRootFile ( std::string  file)
inline

Definition at line 53 of file BesActionInitializer.hh.

53{m_rootFile = file;}

Referenced by BesSim::initialize().

◆ SetRootFlag()

void BesActionInitializer::SetRootFlag ( G4bool  flag)
inline

Definition at line 52 of file BesActionInitializer.hh.

52{m_rootFlag = flag;}

Referenced by BesSim::initialize().

◆ SetTDSFlag()

void BesActionInitializer::SetTDSFlag ( G4bool  flag)
inline

Definition at line 55 of file BesActionInitializer.hh.

55{m_TDSFlag = flag;}

Referenced by BesSim::initialize().

◆ SetTuningFile()

void BesActionInitializer::SetTuningFile ( std::vector< std::string >  file)
inline

Definition at line 54 of file BesActionInitializer.hh.

54{m_tuningFile = file;}

Referenced by BesSim::initialize().


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