EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HepMCFlowAfterBurner Class Reference

#include <fun4all_coresoftware/blob/master/generators/phhepmc/HepMCFlowAfterBurner.h>

+ Inheritance diagram for HepMCFlowAfterBurner:
+ Collaboration diagram for HepMCFlowAfterBurner:

Public Member Functions

 HepMCFlowAfterBurner (const std::string &name="HEPMCFLOWAFTERBURNER")
 
 ~HepMCFlowAfterBurner () override
 
int Init (PHCompositeNode *) override
 
int process_event (PHCompositeNode *) override
 
void Print (const std::string &what="ALL") const override
 
void setAlgorithmName (const std::string &name)
 
void setMinEta (const float f)
 
void setMaxEta (const float f)
 
void setMinPt (const float f)
 
void setMaxPt (const float f)
 
void setSeed (const long il)
 
void SaveRandomState (const std::string &savefile="HepMCFlowAfterBurner.ransave")
 
void RestoreRandomState (const std::string &savefile="HepMCFlowAfterBurner.ransave")
 
- Public Member Functions inherited from SubsysReco
 ~SubsysReco () override
 
virtual int End (PHCompositeNode *)
 Called at the end of all processing.
 
virtual int EndRun (const int)
 Called at the end of each run.
 
virtual int InitRun (PHCompositeNode *)
 
virtual int Reset (PHCompositeNode *)
 Reset.
 
virtual int ResetEvent (PHCompositeNode *)
 Clean up after each event.
 
void Print (const std::string &="ALL") const override
 
- 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.
 

Protected Attributes

std::string config_filename
 
std::string algorithmName
 
float mineta
 
float maxeta
 
float minpt
 
float maxpt
 
int seedset
 
long seed
 
long randomSeed
 

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 SubsysReco
 SubsysReco (const std::string &name="NONAME")
 

Detailed Description

Definition at line 13 of file HepMCFlowAfterBurner.h.

View newest version in sPHENIX GitHub at line 13 of file HepMCFlowAfterBurner.h

Constructor & Destructor Documentation

HepMCFlowAfterBurner::HepMCFlowAfterBurner ( const std::string &  name = "HEPMCFLOWAFTERBURNER")

Definition at line 39 of file HepMCFlowAfterBurner.cc.

View newest version in sPHENIX GitHub at line 39 of file HepMCFlowAfterBurner.cc

HepMCFlowAfterBurner::~HepMCFlowAfterBurner ( )
inlineoverride

Definition at line 17 of file HepMCFlowAfterBurner.h.

View newest version in sPHENIX GitHub at line 17 of file HepMCFlowAfterBurner.h

Member Function Documentation

int HepMCFlowAfterBurner::Init ( PHCompositeNode )
overridevirtual

Called during initialization. Typically this is where you can book histograms, and e.g. register them to Fun4AllServer (so they can be output to file using Fun4AllServer::dumpHistos() method).

Reimplemented from SubsysReco.

Definition at line 52 of file HepMCFlowAfterBurner.cc.

View newest version in sPHENIX GitHub at line 52 of file HepMCFlowAfterBurner.cc

References engine, randomSeed, seed, and seedset.

void HepMCFlowAfterBurner::Print ( const std::string &  what = "ALL") const
overridevirtual

Print out some info about this module.

Parameters
whatcan be used to specify what to print exactly.

Reimplemented from Fun4AllBase.

Definition at line 128 of file HepMCFlowAfterBurner.cc.

View newest version in sPHENIX GitHub at line 128 of file HepMCFlowAfterBurner.cc

References algorithmName, maxeta, maxpt, mineta, and minpt.

int HepMCFlowAfterBurner::process_event ( PHCompositeNode )
overridevirtual

Called for each event. This is where you do the real work.

Reimplemented from SubsysReco.

Definition at line 68 of file HepMCFlowAfterBurner.cc.

View newest version in sPHENIX GitHub at line 68 of file HepMCFlowAfterBurner.cc

References Fun4AllReturnCodes::ABORTEVENT, algorithmName, engine, Fun4AllReturnCodes::EVENT_OK, flowAfterburner(), PHHepMCGenEvent::getEvent(), maxeta, maxpt, mineta, minpt, PHWHERE, PHHepMCGenEventMap::rbegin(), PHHepMCGenEventMap::rend(), and Fun4AllBase::Verbosity().

+ Here is the call graph for this function:

void HepMCFlowAfterBurner::RestoreRandomState ( const std::string &  savefile = "HepMCFlowAfterBurner.ransave")

Definition at line 118 of file HepMCFlowAfterBurner.cc.

View newest version in sPHENIX GitHub at line 118 of file HepMCFlowAfterBurner.cc

References engine, and PHWHERE.

void HepMCFlowAfterBurner::SaveRandomState ( const std::string &  savefile = "HepMCFlowAfterBurner.ransave")

Definition at line 108 of file HepMCFlowAfterBurner.cc.

View newest version in sPHENIX GitHub at line 108 of file HepMCFlowAfterBurner.cc

References engine, and PHWHERE.

void HepMCFlowAfterBurner::setAlgorithmName ( const std::string &  name)

Definition at line 139 of file HepMCFlowAfterBurner.cc.

View newest version in sPHENIX GitHub at line 139 of file HepMCFlowAfterBurner.cc

References algorithmName, algoset, and it.

void HepMCFlowAfterBurner::setMaxEta ( const float  f)
inline

Definition at line 30 of file HepMCFlowAfterBurner.h.

View newest version in sPHENIX GitHub at line 30 of file HepMCFlowAfterBurner.h

References maxeta.

void HepMCFlowAfterBurner::setMaxPt ( const float  f)
inline

Definition at line 38 of file HepMCFlowAfterBurner.h.

View newest version in sPHENIX GitHub at line 38 of file HepMCFlowAfterBurner.h

References maxpt.

void HepMCFlowAfterBurner::setMinEta ( const float  f)
inline

Definition at line 26 of file HepMCFlowAfterBurner.h.

View newest version in sPHENIX GitHub at line 26 of file HepMCFlowAfterBurner.h

References mineta.

void HepMCFlowAfterBurner::setMinPt ( const float  f)
inline

Definition at line 34 of file HepMCFlowAfterBurner.h.

View newest version in sPHENIX GitHub at line 34 of file HepMCFlowAfterBurner.h

References minpt.

void HepMCFlowAfterBurner::setSeed ( const long  il)

Definition at line 93 of file HepMCFlowAfterBurner.cc.

View newest version in sPHENIX GitHub at line 93 of file HepMCFlowAfterBurner.cc

References engine, randomSeed, seed, and seedset.

Member Data Documentation

std::string HepMCFlowAfterBurner::algorithmName
protected

Definition at line 49 of file HepMCFlowAfterBurner.h.

View newest version in sPHENIX GitHub at line 49 of file HepMCFlowAfterBurner.h

Referenced by Print(), process_event(), and setAlgorithmName().

std::string HepMCFlowAfterBurner::config_filename
protected

Definition at line 48 of file HepMCFlowAfterBurner.h.

View newest version in sPHENIX GitHub at line 48 of file HepMCFlowAfterBurner.h

float HepMCFlowAfterBurner::maxeta
protected

Definition at line 52 of file HepMCFlowAfterBurner.h.

View newest version in sPHENIX GitHub at line 52 of file HepMCFlowAfterBurner.h

Referenced by Print(), process_event(), and setMaxEta().

float HepMCFlowAfterBurner::maxpt
protected

Definition at line 55 of file HepMCFlowAfterBurner.h.

View newest version in sPHENIX GitHub at line 55 of file HepMCFlowAfterBurner.h

Referenced by Print(), process_event(), and setMaxPt().

float HepMCFlowAfterBurner::mineta
protected

Definition at line 51 of file HepMCFlowAfterBurner.h.

View newest version in sPHENIX GitHub at line 51 of file HepMCFlowAfterBurner.h

Referenced by Print(), process_event(), and setMinEta().

float HepMCFlowAfterBurner::minpt
protected

Definition at line 54 of file HepMCFlowAfterBurner.h.

View newest version in sPHENIX GitHub at line 54 of file HepMCFlowAfterBurner.h

Referenced by Print(), process_event(), and setMinPt().

long HepMCFlowAfterBurner::randomSeed
protected

Definition at line 59 of file HepMCFlowAfterBurner.h.

View newest version in sPHENIX GitHub at line 59 of file HepMCFlowAfterBurner.h

Referenced by Init(), and setSeed().

long HepMCFlowAfterBurner::seed
protected

Definition at line 58 of file HepMCFlowAfterBurner.h.

View newest version in sPHENIX GitHub at line 58 of file HepMCFlowAfterBurner.h

Referenced by Init(), and setSeed().

int HepMCFlowAfterBurner::seedset
protected

Definition at line 57 of file HepMCFlowAfterBurner.h.

View newest version in sPHENIX GitHub at line 57 of file HepMCFlowAfterBurner.h

Referenced by Init(), and setSeed().


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