ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
#include <coresoftware/blob/master/simulation/g4simulation/g4main/Fun4AllSingleDstPileupInputManager.h>
Classes | |
class | Deleter |
random generator More... | |
Public Member Functions | |
Fun4AllSingleDstPileupInputManager (const std::string &name="DUMMY", const std::string &nodename="DST", const std::string &topnodename="TOP") | |
int | fileopen (const std::string &filenam) override |
int | fileclose () override |
int | run (const int nevents=0) override |
int | BranchSelect (const std::string &branch, const int iflag) override |
int | setBranches () override |
void | Print (const std::string &what="ALL") const override |
int | PushBackEvents (const int i) override |
int | SyncIt (const SyncObject *) override |
int | GetSyncObject (SyncObject **) override |
int | NoSyncPushBackEvents (const int nevt) override |
void | setCollisionRate (double Hz) |
collision rate in Hz | |
void | setTimeBetweenCrossings (double nsec) |
time between bunch crossing in ns | |
void | setPileupTimeWindow (double tmin, double tmax) |
set time window for pileup events (ns) | |
Public Member Functions inherited from Fun4AllInputManager | |
~Fun4AllInputManager () override | |
virtual int | ReadInRunNode (PHCompositeNode *) |
std::string | FileName () const |
void | FileName (const std::string &fn) |
virtual int | skip (const int nevt) |
int | AddFile (const std::string &filename) |
int | AddListFile (const std::string &filename, const int do_it=0) |
int | registerSubsystem (SubsysReco *subsystem) |
virtual int | RejectEvent () |
void | Repeat (const int i=-1) |
virtual void | setSyncManager (Fun4AllSyncManager *master) |
virtual int | ResetFileList () |
virtual int | ResetEvent () |
virtual void | SetRunNumber (const int runno) |
virtual int | RunNumber () const |
void | AddToFileOpened (const std::string &filename) |
std::pair< std::list < std::string > ::const_iterator, std::list < std::string > ::const_iterator > | FileOpenListBeginEnd () |
std::string | InputNode () |
void | InputNode (const std::string &innode) |
std::string | TopNodeName () const |
bool | FileListEmpty () const |
virtual int | IsOpen () const |
virtual int | SkipForThisManager (const int) |
virtual int | HasSyncObject () const |
Public Member Functions inherited from Fun4AllBase | |
virtual | ~Fun4AllBase () |
virtual const std::string | Name () const |
Returns the name of this module. | |
virtual void | Name (const std::string &name) |
Sets the name of this module. | |
virtual void | Verbosity (const int ival) |
Sets the verbosity of this module (0 by default=quiet). | |
virtual void | Verbosity (enu_Verbosity ival) |
Sets the verbosity of this module (0 by default=quiet). | |
virtual int | Verbosity () const |
Gets the verbosity of this module. | |
Private Attributes | |
std::string | m_fullfilename |
std::string | m_RunNode = "RUN" |
std::map< const std::string, int > | m_branchread |
PHCompositeNode * | m_dstNode = nullptr |
dst node from TopNode | |
PHCompositeNode * | m_runNode = nullptr |
run node from TopNode | |
std::unique_ptr< PHCompositeNode > | m_dstNodeInternal |
internal dst node to copy background events | |
std::unique_ptr< PHNodeIOManager > | m_IManager |
input manager for active (trigger) events | |
std::unique_ptr< PHNodeIOManager > | m_IManager_background |
input manager for background (pileup) events | |
double | m_time_between_crossings = 106 |
time between crossings. This is a RHIC constant (ns) | |
double | m_collision_rate = 5e4 |
collision rate (Hz) | |
double | m_tmin = -13500 |
min integration time for pileup in the TPC (ns) | |
double | m_tmax = 13500 |
max integration time for pileup in the TPC (ns) | |
std::unique_ptr< gsl_rng, Deleter > | m_rng |
event counters | |
bool | m_ReadRunTTree = true |
int | m_ievent_total = 0 |
int | m_ievent_thisfile = 0 |
internal runnodes to perform the summation over multiple runs | |
std::unique_ptr< PHCompositeNode > | m_runNodeCopy |
std::unique_ptr< PHCompositeNode > | m_runNodeSum |
Additional Inherited Members | |
Public Types inherited from Fun4AllBase | |
enum | enu_Verbosity { VERBOSITY_QUIET = 0, VERBOSITY_SOME = 1, VERBOSITY_MORE = 2, VERBOSITY_EVEN_MORE = 3, VERBOSITY_A_LOT = 4, VERBOSITY_MAX = INT_MAX - 10 } |
Protected Member Functions inherited from Fun4AllInputManager | |
Fun4AllInputManager (const std::string &name="DUMMY", const std::string &nodename="DST", const std::string &topnodename="TOP") | |
void | UpdateFileList () |
int | OpenNextFile () |
void | IsOpen (const int i) |
Fun4AllSyncManager * | MySyncManager () |
dedicated input manager that merges single events into "merged" events, containing a trigger event and a number of time-shifted pile-up events corresponding to a given pile-up rate
Definition at line 29 of file Fun4AllSingleDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 29 of file Fun4AllSingleDstPileupInputManager.h
Fun4AllSingleDstPileupInputManager::Fun4AllSingleDstPileupInputManager | ( | const std::string & | name = "DUMMY" , |
const std::string & | nodename = "DST" , |
||
const std::string & | topnodename = "TOP" |
||
) |
Definition at line 33 of file Fun4AllSingleDstPileupInputManager.cc.
View newest version in sPHENIX GitHub at line 33 of file Fun4AllSingleDstPileupInputManager.cc
|
overridevirtual |
Reimplemented from Fun4AllInputManager.
Definition at line 270 of file Fun4AllSingleDstPileupInputManager.cc.
View newest version in sPHENIX GitHub at line 270 of file Fun4AllSingleDstPileupInputManager.cc
References m_branchread, and Fun4AllBase::Verbosity().
|
overridevirtual |
Reimplemented from Fun4AllInputManager.
Definition at line 255 of file Fun4AllSingleDstPileupInputManager.cc.
View newest version in sPHENIX GitHub at line 255 of file Fun4AllSingleDstPileupInputManager.cc
References Fun4AllInputManager::IsOpen(), m_IManager, m_IManager_background, Fun4AllBase::Name(), and Fun4AllInputManager::UpdateFileList().
Referenced by fileopen(), and run().
|
overridevirtual |
Reimplemented from Fun4AllInputManager.
Definition at line 43 of file Fun4AllSingleDstPileupInputManager.cc.
View newest version in sPHENIX GitHub at line 43 of file Fun4AllSingleDstPileupInputManager.cc
References Fun4AllInputManager::AddToFileOpened(), fileclose(), Fun4AllInputManager::FileName(), PHNodeIterator::forEach(), Fun4AllInputManager::InputNode(), Fun4AllServer::instance(), Fun4AllInputManager::IsOpen(), FROG::location(), m_dstNode, m_dstNodeInternal, m_fullfilename, m_ievent_thisfile, m_IManager, m_IManager_background, m_ReadRunTTree, m_RunNode, m_runNode, m_runNodeCopy, m_runNodeSum, Fun4AllBase::Name(), PHReadOnly, PHRunTree, PHWHERE, PHNodeIOManager::read(), PHNodeIntegrate::RunNode(), PHNodeIntegrate::RunSumNode(), setBranches(), Fun4AllInputManager::SetRunNumber(), Fun4AllInputManager::TopNodeName(), and Fun4AllBase::Verbosity().
|
inlineoverridevirtual |
Reimplemented from Fun4AllInputManager.
Definition at line 43 of file Fun4AllSingleDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 43 of file Fun4AllSingleDstPileupInputManager.h
References Fun4AllReturnCodes::SYNC_NOOBJECT.
|
inlineoverridevirtual |
Reimplemented from Fun4AllInputManager.
Definition at line 44 of file Fun4AllSingleDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 44 of file Fun4AllSingleDstPileupInputManager.h
References PushBackEvents().
|
overridevirtual |
Print out some info about this module.
what | can be used to specify what to print exactly. |
Reimplemented from Fun4AllInputManager.
Definition at line 339 of file Fun4AllSingleDstPileupInputManager.cc.
View newest version in sPHENIX GitHub at line 339 of file Fun4AllSingleDstPileupInputManager.cc
References m_branchread, m_IManager, Fun4AllBase::Name(), and Fun4AllInputManager::Print().
Reimplemented from Fun4AllInputManager.
Definition at line 376 of file Fun4AllSingleDstPileupInputManager.cc.
View newest version in sPHENIX GitHub at line 376 of file Fun4AllSingleDstPileupInputManager.cc
References m_ievent_thisfile, m_ievent_total, m_IManager, Fun4AllBase::Name(), and PHWHERE.
Referenced by NoSyncPushBackEvents(), and run().
Reimplemented from Fun4AllInputManager.
Definition at line 143 of file Fun4AllSingleDstPileupInputManager.cc.
View newest version in sPHENIX GitHub at line 143 of file Fun4AllSingleDstPileupInputManager.cc
References Fun4AllDstPileupMerger::copy_background_event(), e, Fun4AllReturnCodes::EVENT_OK, fileclose(), Fun4AllInputManager::FileListEmpty(), Fun4AllInputManager::IsOpen(), Fun4AllDstPileupMerger::load_nodes(), m_collision_rate, m_dstNode, m_dstNodeInternal, m_ievent_thisfile, m_ievent_total, m_IManager, m_IManager_background, m_rng, m_time_between_crossings, m_tmax, m_tmin, Fun4AllBase::Name(), Fun4AllInputManager::OpenNextFile(), PHWHERE, PushBackEvents(), Fun4AllInputManager::RejectEvent(), and Fun4AllBase::Verbosity().
|
overridevirtual |
Reimplemented from Fun4AllInputManager.
Definition at line 308 of file Fun4AllSingleDstPileupInputManager.cc.
View newest version in sPHENIX GitHub at line 308 of file Fun4AllSingleDstPileupInputManager.cc
References m_branchread, m_IManager, m_IManager_background, Fun4AllBase::Name(), PHWHERE, and Fun4AllBase::Verbosity().
Referenced by fileopen().
|
inline |
collision rate in Hz
Definition at line 47 of file Fun4AllSingleDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 47 of file Fun4AllSingleDstPileupInputManager.h
References m_collision_rate.
|
inline |
set time window for pileup events (ns)
Definition at line 55 of file Fun4AllSingleDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 55 of file Fun4AllSingleDstPileupInputManager.h
|
inline |
time between bunch crossing in ns
Definition at line 51 of file Fun4AllSingleDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 51 of file Fun4AllSingleDstPileupInputManager.h
References m_time_between_crossings.
|
inlineoverridevirtual |
Reimplemented from Fun4AllInputManager.
Definition at line 42 of file Fun4AllSingleDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 42 of file Fun4AllSingleDstPileupInputManager.h
References Fun4AllReturnCodes::SYNC_OK.
|
private |
Definition at line 72 of file Fun4AllSingleDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 72 of file Fun4AllSingleDstPileupInputManager.h
Referenced by BranchSelect(), Print(), and setBranches().
|
private |
collision rate (Hz)
Definition at line 101 of file Fun4AllSingleDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 101 of file Fun4AllSingleDstPileupInputManager.h
Referenced by run(), and setCollisionRate().
|
private |
dst node from TopNode
Definition at line 75 of file Fun4AllSingleDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 75 of file Fun4AllSingleDstPileupInputManager.h
Referenced by fileopen(), and run().
|
private |
internal dst node to copy background events
Definition at line 81 of file Fun4AllSingleDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 81 of file Fun4AllSingleDstPileupInputManager.h
Referenced by fileopen(), and run().
|
private |
Definition at line 70 of file Fun4AllSingleDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 70 of file Fun4AllSingleDstPileupInputManager.h
Referenced by fileopen().
|
private |
Definition at line 67 of file Fun4AllSingleDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 67 of file Fun4AllSingleDstPileupInputManager.h
Referenced by fileopen(), PushBackEvents(), and run().
|
private |
Definition at line 66 of file Fun4AllSingleDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 66 of file Fun4AllSingleDstPileupInputManager.h
Referenced by PushBackEvents(), and run().
|
private |
input manager for active (trigger) events
corresponding nodes are copied directly to the topNode
Definition at line 91 of file Fun4AllSingleDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 91 of file Fun4AllSingleDstPileupInputManager.h
Referenced by fileclose(), fileopen(), Print(), PushBackEvents(), run(), and setBranches().
|
private |
input manager for background (pileup) events
corresponding nodes are copied to the internal dst node, then merged to the top node
Definition at line 95 of file Fun4AllSingleDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 95 of file Fun4AllSingleDstPileupInputManager.h
Referenced by fileclose(), fileopen(), run(), and setBranches().
|
private |
Definition at line 65 of file Fun4AllSingleDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 65 of file Fun4AllSingleDstPileupInputManager.h
Referenced by fileopen().
|
private |
Definition at line 116 of file Fun4AllSingleDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 116 of file Fun4AllSingleDstPileupInputManager.h
Referenced by Fun4AllSingleDstPileupInputManager(), and run().
|
private |
Definition at line 71 of file Fun4AllSingleDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 71 of file Fun4AllSingleDstPileupInputManager.h
Referenced by fileopen().
|
private |
run node from TopNode
Definition at line 78 of file Fun4AllSingleDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 78 of file Fun4AllSingleDstPileupInputManager.h
Referenced by fileopen().
|
private |
Definition at line 85 of file Fun4AllSingleDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 85 of file Fun4AllSingleDstPileupInputManager.h
Referenced by fileopen().
|
private |
Definition at line 86 of file Fun4AllSingleDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 86 of file Fun4AllSingleDstPileupInputManager.h
Referenced by fileopen().
|
private |
time between crossings. This is a RHIC constant (ns)
Definition at line 98 of file Fun4AllSingleDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 98 of file Fun4AllSingleDstPileupInputManager.h
Referenced by run(), and setTimeBetweenCrossings().
|
private |
max integration time for pileup in the TPC (ns)
Definition at line 107 of file Fun4AllSingleDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 107 of file Fun4AllSingleDstPileupInputManager.h
Referenced by run(), and setPileupTimeWindow().
|
private |
min integration time for pileup in the TPC (ns)
Definition at line 104 of file Fun4AllSingleDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 104 of file Fun4AllSingleDstPileupInputManager.h
Referenced by run(), and setPileupTimeWindow().