Analysis Software
Documentation for sPHENIX simulation software
|
#include <JETSCAPE/blob/main/src/framework/JetScapeWriterHepMC.h>
Public Member Functions | |
JetScapeWriterHepMC () | |
JetScapeWriterHepMC (string m_file_name_out) | |
virtual | ~JetScapeWriterHepMC () |
void | Init () |
void | Exec () |
bool | GetStatus () |
void | Close () |
void | WriteEvent () |
Gets called last, after all tasks have written themselves. | |
void | Write (weak_ptr< PartonShower > ps) |
void | Write (weak_ptr< Hadron > h) |
void | WriteHeaderToFile () |
Gets called first, before all tasks write themselves. | |
Public Member Functions inherited from Jetscape::JetScapeWriter | |
JetScapeWriter () | |
JetScapeWriter (string m_file_name_out) | |
virtual | ~JetScapeWriter () |
void | SetOutputFileName (string m_file_name_out) |
string | GetOutputFileName () |
virtual void | Open () |
virtual void | WriteInitFileXML () |
virtual void | Write (weak_ptr< Parton > p) |
virtual void | Write (weak_ptr< Jet > j) |
virtual void | Write (weak_ptr< Vertex > v) |
virtual void | Write (string s) |
virtual void | WriteComment (string s) |
virtual void | WriteWhiteSpace (string s) |
virtual void | Write (ostream *o) |
virtual JetScapeEventHeader & | GetHeader () |
Public Member Functions inherited from Jetscape::JetScapeModuleBase | |
JetScapeModuleBase () | |
JetScapeModuleBase (string m_name) | |
virtual | ~JetScapeModuleBase () |
virtual void | Clear () |
void | SetXMLMainFileName (string m_name) |
string | GetXMLMainFileName () |
void | SetXMLUserFileName (string m_name) |
string | GetXMLUserFileName () |
shared_ptr< std::mt19937 > | GetMt19937Generator () |
tinyxml2::XMLElement * | GetXMLElement (std::initializer_list< const char * > path, bool isRequired=true) |
std::string | GetXMLElementText (std::initializer_list< const char * > path, bool isRequired=true) |
int | GetXMLElementInt (std::initializer_list< const char * > path, bool isRequired=true) |
double | GetXMLElementDouble (std::initializer_list< const char * > path, bool isRequired=true) |
Public Member Functions inherited from Jetscape::JetScapeTask | |
JetScapeTask () | |
virtual | ~JetScapeTask () |
virtual void | Finish () |
virtual void | ExecuteTasks () |
virtual void | ExecuteTask () |
virtual void | InitTask () |
virtual void | InitTasks () |
virtual void | ClearTasks () |
virtual void | ClearTask () |
virtual void | FinishTask () |
virtual void | FinishTasks () |
virtual void | WriteTasks (weak_ptr< JetScapeWriter > w) |
virtual void | WriteTask (weak_ptr< JetScapeWriter > w) |
virtual void | CollectHeader (weak_ptr< JetScapeWriter > w) |
virtual void | CollectHeaders (weak_ptr< JetScapeWriter > w) |
virtual void | Add (shared_ptr< JetScapeTask > m_tasks) |
virtual const int | GetMyTaskNumber () const |
const vector< shared_ptr < JetScapeTask > > | GetTaskList () const |
shared_ptr< JetScapeTask > | GetTaskAt (int i) |
void | EraseTaskLast () |
void | EraseTaskAt (int i) |
void | ResizeTaskList (int i) |
void | ClearTaskList () |
int | GetNumberOfTasks () |
const bool | GetActive () const |
void | SetActive (bool m_active_exec) |
void | SetId (string m_id) |
const string | GetId () const |
const shared_ptr < JetScapeModuleMutex > | GetMutex () const |
void | SetMutex (shared_ptr< JetScapeModuleMutex > m_mutex) |
Public Member Functions inherited from sigslot::has_slots< sigslot::multi_threaded_local > | |
has_slots () | |
has_slots (const has_slots &hs) | |
void | signal_connect (_signal_base< sigslot::multi_threaded_local > *sender) |
void | signal_disconnect (_signal_base< sigslot::multi_threaded_local > *sender) |
virtual | ~has_slots () |
void | disconnect_all () |
Private Member Functions | |
HepMC3::GenVertexPtr | castVtxToHepMC (const shared_ptr< Vertex > vtx) const |
HepMC3::GenParticlePtr | castPartonToHepMC (const shared_ptr< Parton > pparticle) const |
HepMC3::GenParticlePtr | castPartonToHepMC (const Parton &particle) const |
HepMC3::GenParticlePtr | castHadronToHepMC (const shared_ptr< Hadron > pparticle) const |
HepMC3::GenParticlePtr | castHadronToHepMC (const Hadron &particle) const |
Private Attributes | |
HepMC3::GenEvent | evt |
vector< HepMC3::GenVertexPtr > | vertices |
HepMC3::GenVertexPtr | hadronizationvertex |
bool | hashadrons =false |
WriteEvent needs to know whether it should overwrite final partons status to 1. | |
Additional Inherited Members | |
Static Public Member Functions inherited from Jetscape::JetScapeModuleBase | |
static int | GetCurrentEvent () |
static void | IncrementCurrentEvent () |
Protected Attributes inherited from Jetscape::JetScapeWriter | |
string | file_name_out |
JetScapeEventHeader | header |
Definition at line 39 of file JetScapeWriterHepMC.h.
View newest version in sPHENIX GitHub at line 39 of file JetScapeWriterHepMC.h
|
inline |
Definition at line 42 of file JetScapeWriterHepMC.h.
View newest version in sPHENIX GitHub at line 42 of file JetScapeWriterHepMC.h
References Jetscape::JetScapeTask::SetId().
|
inline |
Definition at line 43 of file JetScapeWriterHepMC.h.
View newest version in sPHENIX GitHub at line 43 of file JetScapeWriterHepMC.h
References Jetscape::JetScapeTask::SetId().
|
virtual |
Definition at line 56 of file JetScapeWriterHepMC.cc.
View newest version in sPHENIX GitHub at line 56 of file JetScapeWriterHepMC.cc
References Close(), and Jetscape::JetScapeTask::GetActive().
|
inlineprivate |
Definition at line 100 of file JetScapeWriterHepMC.h.
View newest version in sPHENIX GitHub at line 100 of file JetScapeWriterHepMC.h
Referenced by Write().
|
inlineprivate |
Definition at line 105 of file JetScapeWriterHepMC.h.
View newest version in sPHENIX GitHub at line 105 of file JetScapeWriterHepMC.h
References Jetscape::JetScapeParticleBase::pid(), and Jetscape::JetScapeParticleBase::pstat().
|
inlineprivate |
Definition at line 88 of file JetScapeWriterHepMC.h.
View newest version in sPHENIX GitHub at line 88 of file JetScapeWriterHepMC.h
Referenced by Write().
|
inlineprivate |
Definition at line 93 of file JetScapeWriterHepMC.h.
View newest version in sPHENIX GitHub at line 93 of file JetScapeWriterHepMC.h
References Jetscape::JetScapeParticleBase::pid(), and Jetscape::JetScapeParticleBase::pstat().
|
inlineprivate |
Definition at line 77 of file JetScapeWriterHepMC.h.
View newest version in sPHENIX GitHub at line 77 of file JetScapeWriterHepMC.h
References t, ambiguity_solver_full_chain::x, y, and physmon_track_finding_ttbar::z.
Referenced by Write().
|
inlinevirtual |
Reimplemented from Jetscape::JetScapeWriter.
Definition at line 53 of file JetScapeWriterHepMC.h.
View newest version in sPHENIX GitHub at line 53 of file JetScapeWriterHepMC.h
Referenced by ~JetScapeWriterHepMC().
|
virtual |
A virtual function to define a default Exec() function for a JetScapeModuleBase. It can be overridden by different modules/tasks.
Reimplemented from Jetscape::JetScapeModuleBase.
Definition at line 336 of file JetScapeWriterHepMC.cc.
View newest version in sPHENIX GitHub at line 336 of file JetScapeWriterHepMC.cc
|
inlinevirtual |
Implements Jetscape::JetScapeWriter.
Definition at line 52 of file JetScapeWriterHepMC.h.
View newest version in sPHENIX GitHub at line 52 of file JetScapeWriterHepMC.h
|
virtual |
A virtual function for a default initialization of a JetScapeModuleBase. It also checks whether a XML file is loaded or not.
Reimplemented from Jetscape::JetScapeModuleBase.
Definition at line 329 of file JetScapeWriterHepMC.cc.
View newest version in sPHENIX GitHub at line 329 of file JetScapeWriterHepMC.cc
References Jetscape::JetScapeTask::GetActive(), Jetscape::JetScapeWriter::GetOutputFileName(), and JSINFO.
|
virtual |
Reimplemented from Jetscape::JetScapeWriter.
Definition at line 135 of file JetScapeWriterHepMC.cc.
View newest version in sPHENIX GitHub at line 135 of file JetScapeWriterHepMC.cc
References castPartonToHepMC(), castVtxToHepMC(), in, JSWARN, out, dfs::run(), dfs::scan_whole_graph(), dfs::start_node(), utils::status, topsort::top_order_begin(), topsort::top_order_end(), testSigmaEff::v, and vertices.
Reimplemented from Jetscape::JetScapeWriter.
Definition at line 292 of file JetScapeWriterHepMC.cc.
View newest version in sPHENIX GitHub at line 292 of file JetScapeWriterHepMC.cc
References castHadronToHepMC(), hadronizationvertex, hashadrons, and vertices.
|
virtual |
Gets called last, after all tasks have written themselves.
Reimplemented from Jetscape::JetScapeWriter.
Definition at line 101 of file JetScapeWriterHepMC.cc.
View newest version in sPHENIX GitHub at line 101 of file JetScapeWriterHepMC.cc
References evt, Jetscape::JetScapeModuleBase::GetCurrentEvent(), hadronizationvertex, hashadrons, JSWARN, merge_hashes::p, testSigmaEff::v, VERBOSE, and vertices.
|
virtual |
Gets called first, before all tasks write themselves.
Reimplemented from Jetscape::JetScapeWriter.
Definition at line 61 of file JetScapeWriterHepMC.cc.
View newest version in sPHENIX GitHub at line 61 of file JetScapeWriterHepMC.cc
References evt, Jetscape::JetScapeEventHeader::GetEventPlaneAngle(), Jetscape::JetScapeWriter::GetHeader(), Jetscape::JetScapeEventHeader::GetNcoll(), Jetscape::JetScapeEventHeader::GetNpart(), and xsec.
|
private |
Definition at line 69 of file JetScapeWriterHepMC.h.
View newest version in sPHENIX GitHub at line 69 of file JetScapeWriterHepMC.h
Referenced by WriteEvent(), and WriteHeaderToFile().
|
private |
Definition at line 71 of file JetScapeWriterHepMC.h.
View newest version in sPHENIX GitHub at line 71 of file JetScapeWriterHepMC.h
Referenced by Write(), and WriteEvent().
|
private |
WriteEvent needs to know whether it should overwrite final partons status to 1.
Definition at line 74 of file JetScapeWriterHepMC.h.
View newest version in sPHENIX GitHub at line 74 of file JetScapeWriterHepMC.h
Referenced by Write(), and WriteEvent().
|
private |
Definition at line 70 of file JetScapeWriterHepMC.h.
View newest version in sPHENIX GitHub at line 70 of file JetScapeWriterHepMC.h
Referenced by Write(), and WriteEvent().