ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
#include <coresoftware/blob/master/simulation/g4simulation/g4main/Fun4AllDstPileupInputManager.h>
Classes | |
class | Deleter |
random generator More... | |
Public Member Functions | |
Fun4AllDstPileupInputManager (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 Member Functions | |
int | runOne (const int nevents=0) |
loads one event on internal DST node | |
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 | |
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 Fun4AllDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 29 of file Fun4AllDstPileupInputManager.h
Fun4AllDstPileupInputManager::Fun4AllDstPileupInputManager | ( | const std::string & | name = "DUMMY" , |
const std::string & | nodename = "DST" , |
||
const std::string & | topnodename = "TOP" |
||
) |
Definition at line 31 of file Fun4AllDstPileupInputManager.cc.
View newest version in sPHENIX GitHub at line 31 of file Fun4AllDstPileupInputManager.cc
|
overridevirtual |
Reimplemented from Fun4AllInputManager.
Definition at line 213 of file Fun4AllDstPileupInputManager.cc.
View newest version in sPHENIX GitHub at line 213 of file Fun4AllDstPileupInputManager.cc
References m_branchread, and Fun4AllBase::Verbosity().
|
overridevirtual |
Reimplemented from Fun4AllInputManager.
Definition at line 199 of file Fun4AllDstPileupInputManager.cc.
View newest version in sPHENIX GitHub at line 199 of file Fun4AllDstPileupInputManager.cc
References Fun4AllInputManager::IsOpen(), m_IManager, Fun4AllBase::Name(), and Fun4AllInputManager::UpdateFileList().
Referenced by fileopen(), and runOne().
|
overridevirtual |
Reimplemented from Fun4AllInputManager.
Definition at line 41 of file Fun4AllDstPileupInputManager.cc.
View newest version in sPHENIX GitHub at line 41 of file Fun4AllDstPileupInputManager.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_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 Fun4AllDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 43 of file Fun4AllDstPileupInputManager.h
References Fun4AllReturnCodes::SYNC_NOOBJECT.
Reimplemented from Fun4AllInputManager.
Definition at line 44 of file Fun4AllDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 44 of file Fun4AllDstPileupInputManager.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 278 of file Fun4AllDstPileupInputManager.cc.
View newest version in sPHENIX GitHub at line 278 of file Fun4AllDstPileupInputManager.cc
References m_branchread, m_IManager, Fun4AllBase::Name(), and Fun4AllInputManager::Print().
Reimplemented from Fun4AllInputManager.
Definition at line 315 of file Fun4AllDstPileupInputManager.cc.
View newest version in sPHENIX GitHub at line 315 of file Fun4AllDstPileupInputManager.cc
References m_ievent_thisfile, m_ievent_total, m_IManager, Fun4AllBase::Name(), and PHWHERE.
Referenced by NoSyncPushBackEvents().
Reimplemented from Fun4AllInputManager.
Definition at line 139 of file Fun4AllDstPileupInputManager.cc.
View newest version in sPHENIX GitHub at line 139 of file Fun4AllDstPileupInputManager.cc
References Fun4AllDstPileupMerger::copy_background_event(), e, Fun4AllInputManager::InputNode(), Fun4AllServer::instance(), Fun4AllDstPileupMerger::load_nodes(), m_collision_rate, m_dstNode, m_dstNodeInternal, m_ievent_thisfile, m_rng, m_time_between_crossings, m_tmax, m_tmin, runOne(), Fun4AllInputManager::TopNodeName(), and Fun4AllBase::Verbosity().
loads one event on internal DST node
Definition at line 332 of file Fun4AllDstPileupInputManager.cc.
View newest version in sPHENIX GitHub at line 332 of file Fun4AllDstPileupInputManager.cc
References Fun4AllReturnCodes::EVENT_OK, fileclose(), Fun4AllInputManager::FileListEmpty(), Fun4AllInputManager::IsOpen(), m_dstNodeInternal, m_ievent_thisfile, m_ievent_total, m_IManager, Fun4AllBase::Name(), Fun4AllInputManager::OpenNextFile(), Fun4AllInputManager::RejectEvent(), and Fun4AllBase::Verbosity().
Referenced by run().
|
overridevirtual |
Reimplemented from Fun4AllInputManager.
Definition at line 251 of file Fun4AllDstPileupInputManager.cc.
View newest version in sPHENIX GitHub at line 251 of file Fun4AllDstPileupInputManager.cc
References m_branchread, m_IManager, Fun4AllBase::Name(), PHWHERE, and Fun4AllBase::Verbosity().
Referenced by fileopen().
|
inline |
collision rate in Hz
Definition at line 47 of file Fun4AllDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 47 of file Fun4AllDstPileupInputManager.h
References m_collision_rate.
|
inline |
set time window for pileup events (ns)
Definition at line 55 of file Fun4AllDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 55 of file Fun4AllDstPileupInputManager.h
|
inline |
time between bunch crossing in ns
Definition at line 51 of file Fun4AllDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 51 of file Fun4AllDstPileupInputManager.h
References m_time_between_crossings.
|
inlineoverridevirtual |
Reimplemented from Fun4AllInputManager.
Definition at line 42 of file Fun4AllDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 42 of file Fun4AllDstPileupInputManager.h
References Fun4AllReturnCodes::SYNC_OK.
|
private |
Definition at line 75 of file Fun4AllDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 75 of file Fun4AllDstPileupInputManager.h
Referenced by BranchSelect(), Print(), and setBranches().
|
private |
collision rate (Hz)
Definition at line 100 of file Fun4AllDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 100 of file Fun4AllDstPileupInputManager.h
Referenced by run(), and setCollisionRate().
|
private |
dst node from TopNode
Definition at line 78 of file Fun4AllDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 78 of file Fun4AllDstPileupInputManager.h
Referenced by fileopen(), and run().
|
private |
internal dst node to copy background events
Definition at line 84 of file Fun4AllDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 84 of file Fun4AllDstPileupInputManager.h
Referenced by fileopen(), run(), and runOne().
|
private |
Definition at line 73 of file Fun4AllDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 73 of file Fun4AllDstPileupInputManager.h
Referenced by fileopen().
|
private |
Definition at line 70 of file Fun4AllDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 70 of file Fun4AllDstPileupInputManager.h
Referenced by fileopen(), PushBackEvents(), run(), and runOne().
|
private |
Definition at line 69 of file Fun4AllDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 69 of file Fun4AllDstPileupInputManager.h
Referenced by PushBackEvents(), and runOne().
|
private |
input manager for active (trigger) events
corresponding nodes are copied directly to the topNode
Definition at line 94 of file Fun4AllDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 94 of file Fun4AllDstPileupInputManager.h
Referenced by fileclose(), fileopen(), Print(), PushBackEvents(), runOne(), and setBranches().
|
private |
Definition at line 68 of file Fun4AllDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 68 of file Fun4AllDstPileupInputManager.h
Referenced by fileopen().
|
private |
Definition at line 115 of file Fun4AllDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 115 of file Fun4AllDstPileupInputManager.h
Referenced by Fun4AllDstPileupInputManager(), and run().
|
private |
Definition at line 74 of file Fun4AllDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 74 of file Fun4AllDstPileupInputManager.h
Referenced by fileopen().
|
private |
run node from TopNode
Definition at line 81 of file Fun4AllDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 81 of file Fun4AllDstPileupInputManager.h
Referenced by fileopen().
|
private |
Definition at line 88 of file Fun4AllDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 88 of file Fun4AllDstPileupInputManager.h
Referenced by fileopen().
|
private |
Definition at line 89 of file Fun4AllDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 89 of file Fun4AllDstPileupInputManager.h
Referenced by fileopen().
|
private |
time between crossings. This is a RHIC constant (ns)
Definition at line 97 of file Fun4AllDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 97 of file Fun4AllDstPileupInputManager.h
Referenced by run(), and setTimeBetweenCrossings().
|
private |
max integration time for pileup in the TPC (ns)
Definition at line 106 of file Fun4AllDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 106 of file Fun4AllDstPileupInputManager.h
Referenced by run(), and setPileupTimeWindow().
|
private |
min integration time for pileup in the TPC (ns)
Definition at line 103 of file Fun4AllDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 103 of file Fun4AllDstPileupInputManager.h
Referenced by run(), and setPileupTimeWindow().