Analysis Software
Documentation for sPHENIX simulation software
|
#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) | |
void | setDetectorActiveCrossings (const std::string &name, const int nbcross) |
for symmetric windows | |
void | setDetectorActiveCrossings (const std::string &name, const int min, const int max) |
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 |
virtual std::string | GetString (const std::string &) const |
const std::list< std::string > | GetFileList () const |
const std::list< std::string > | GetFileOpenedList () 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 |
std::map< std::string, std::pair< double, double > > | m_DetectorTiming |
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 = std::numeric_limits<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
References gsl_rng_set(), m_rng, and seed.
|
overridevirtual |
Reimplemented from Fun4AllInputManager.
Definition at line 214 of file Fun4AllDstPileupInputManager.cc.
View newest version in sPHENIX GitHub at line 214 of file Fun4AllDstPileupInputManager.cc
References m_branchread, and Fun4AllBase::Verbosity().
|
overridevirtual |
Reimplemented from Fun4AllInputManager.
Definition at line 200 of file Fun4AllDstPileupInputManager.cc.
View newest version in sPHENIX GitHub at line 200 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(), assert, 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.
|
inlineoverridevirtual |
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 279 of file Fun4AllDstPileupInputManager.cc.
View newest version in sPHENIX GitHub at line 279 of file Fun4AllDstPileupInputManager.cc
References m_branchread, m_IManager, Fun4AllBase::Name(), and Fun4AllInputManager::Print().
|
overridevirtual |
Reimplemented from Fun4AllInputManager.
Definition at line 316 of file Fun4AllDstPileupInputManager.cc.
View newest version in sPHENIX GitHub at line 316 of file Fun4AllDstPileupInputManager.cc
References i, m_ievent_thisfile, m_ievent_total, m_IManager, Fun4AllBase::Name(), and PHWHERE.
Referenced by NoSyncPushBackEvents().
|
overridevirtual |
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(), Fun4AllDstPileupMerger::copyDetectorActiveCrossings(), Acts::UnitConstants::e, Fun4AllInputManager::InputNode(), Fun4AllServer::instance(), Fun4AllDstPileupMerger::load_nodes(), m_collision_rate, m_DetectorTiming, m_dstNode, m_dstNodeInternal, m_ievent_thisfile, m_rng, m_time_between_crossings, m_tmax, m_tmin, CKF_timing_vs_mu::mu, runOne(), Fun4AllInputManager::TopNodeName(), and Fun4AllBase::Verbosity().
|
private |
loads one event on internal DST node
Definition at line 333 of file Fun4AllDstPileupInputManager.cc.
View newest version in sPHENIX GitHub at line 333 of file Fun4AllDstPileupInputManager.cc
References dummy, 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 252 of file Fun4AllDstPileupInputManager.cc.
View newest version in sPHENIX GitHub at line 252 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.
void Fun4AllDstPileupInputManager::setDetectorActiveCrossings | ( | const std::string & | name, |
const int | nbcross | ||
) |
for symmetric windows
Definition at line 392 of file Fun4AllDstPileupInputManager.cc.
View newest version in sPHENIX GitHub at line 392 of file Fun4AllDstPileupInputManager.cc
void Fun4AllDstPileupInputManager::setDetectorActiveCrossings | ( | const std::string & | name, |
const int | min, | ||
const int | max | ||
) |
Definition at line 397 of file Fun4AllDstPileupInputManager.cc.
View newest version in sPHENIX GitHub at line 397 of file Fun4AllDstPileupInputManager.cc
References m_DetectorTiming, m_time_between_crossings, and perf_headwind::name.
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 79 of file Fun4AllDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 79 of file Fun4AllDstPileupInputManager.h
Referenced by BranchSelect(), Print(), and setBranches().
|
private |
collision rate (Hz)
Definition at line 104 of file Fun4AllDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 104 of file Fun4AllDstPileupInputManager.h
Referenced by run(), and setCollisionRate().
|
private |
Definition at line 121 of file Fun4AllDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 121 of file Fun4AllDstPileupInputManager.h
Referenced by run(), and setDetectorActiveCrossings().
|
private |
dst node from TopNode
Definition at line 82 of file Fun4AllDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 82 of file Fun4AllDstPileupInputManager.h
Referenced by fileopen(), and run().
|
private |
internal dst node to copy background events
Definition at line 88 of file Fun4AllDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 88 of file Fun4AllDstPileupInputManager.h
Referenced by fileopen(), run(), and runOne().
|
private |
Definition at line 77 of file Fun4AllDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 77 of file Fun4AllDstPileupInputManager.h
Referenced by fileopen().
|
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(), PushBackEvents(), 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 PushBackEvents(), and runOne().
|
private |
input manager for active (trigger) events
corresponding nodes are copied directly to the topNode
Definition at line 98 of file Fun4AllDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 98 of file Fun4AllDstPileupInputManager.h
Referenced by fileclose(), fileopen(), Print(), PushBackEvents(), runOne(), and setBranches().
|
private |
Definition at line 72 of file Fun4AllDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 72 of file Fun4AllDstPileupInputManager.h
Referenced by fileopen().
|
private |
Definition at line 119 of file Fun4AllDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 119 of file Fun4AllDstPileupInputManager.h
Referenced by Fun4AllDstPileupInputManager(), and run().
|
private |
Definition at line 78 of file Fun4AllDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 78 of file Fun4AllDstPileupInputManager.h
Referenced by fileopen().
|
private |
run node from TopNode
Definition at line 85 of file Fun4AllDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 85 of file Fun4AllDstPileupInputManager.h
Referenced by fileopen().
|
private |
Definition at line 92 of file Fun4AllDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 92 of file Fun4AllDstPileupInputManager.h
Referenced by fileopen().
|
private |
Definition at line 93 of file Fun4AllDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 93 of file Fun4AllDstPileupInputManager.h
Referenced by fileopen().
|
private |
time between crossings. This is a RHIC constant (ns)
Definition at line 101 of file Fun4AllDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 101 of file Fun4AllDstPileupInputManager.h
Referenced by run(), setDetectorActiveCrossings(), and setTimeBetweenCrossings().
|
private |
max integration time for pileup in the TPC (ns)
Definition at line 110 of file Fun4AllDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 110 of file Fun4AllDstPileupInputManager.h
Referenced by run(), and setPileupTimeWindow().
|
private |
min integration time for pileup in the TPC (ns)
Definition at line 107 of file Fun4AllDstPileupInputManager.h.
View newest version in sPHENIX GitHub at line 107 of file Fun4AllDstPileupInputManager.h
Referenced by run(), and setPileupTimeWindow().