Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HFMLTriggerHepMCTrigger Class Reference

#include <analysis/blob/master/HF-Jet/HFMLTrigger/HFMLTriggerHepMCTrigger.h>

+ Inheritance diagram for HFMLTriggerHepMCTrigger:
+ Collaboration diagram for HFMLTriggerHepMCTrigger:

Public Member Functions

 HFMLTriggerHepMCTrigger (const std::string &moduleName, const std::string &filename)
 
int Init (PHCompositeNode *)
 
int InitRun (PHCompositeNode *)
 
int process_event (PHCompositeNode *)
 
int End (PHCompositeNode *)
 Called at the end of all processing.
 
double get_eta_max () const
 
void set_eta_max (double etaMax)
 
double get_eta_min () const
 
void set_eta_min (double etaMin)
 
void set_RejectReturnCode (int r)
 
int get_embedding_id () const
 
void set_embedding_id (int id)
 
 HFMLTriggerHepMCTrigger (const std::string &moduleName, const std::string &filename)
 
int Init (PHCompositeNode *)
 
int InitRun (PHCompositeNode *)
 
int process_event (PHCompositeNode *)
 
int End (PHCompositeNode *)
 Called at the end of all processing.
 
double get_eta_max () const
 
void set_eta_max (double etaMax)
 
double get_eta_min () const
 
void set_eta_min (double etaMin)
 
void set_RejectReturnCode (int r)
 
int get_embedding_id () const
 
void set_embedding_id (int id)
 
- Public Member Functions inherited from SubsysReco
 ~SubsysReco () override
 
virtual int EndRun (const int)
 Called at the end of each run.
 
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.
 

Private Attributes

int _ievent
 
int m_RejectReturnCode
 
TFile * _f
 
std::string _foutname
 
double _eta_min
 
double _eta_max
 
int _embedding_id
 
PHHepMCGenEventMapm_Geneventmap
 
PdbParameterMapm_Flags
 
TH1D * m_hNorm
 
TH2F * m_DRapidity
 

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

Detailed Description

Definition at line 27 of file HFMLTriggerHepMCTrigger.h.

View newest version in sPHENIX GitHub at line 27 of file HFMLTriggerHepMCTrigger.h

Constructor & Destructor Documentation

HFMLTriggerHepMCTrigger::HFMLTriggerHepMCTrigger ( const std::string &  moduleName,
const std::string &  filename 
)

Definition at line 67 of file HFMLTriggerHepMCTrigger.C.

View newest version in sPHENIX GitHub at line 67 of file HFMLTriggerHepMCTrigger.C

References _foutname, and filename.

HFMLTriggerHepMCTrigger::HFMLTriggerHepMCTrigger ( const std::string &  moduleName,
const std::string &  filename 
)

Member Function Documentation

int HFMLTriggerHepMCTrigger::End ( PHCompositeNode )
virtual

Called at the end of all processing.

Reimplemented from SubsysReco.

Definition at line 310 of file HFMLTriggerHepMCTrigger.C.

View newest version in sPHENIX GitHub at line 310 of file HFMLTriggerHepMCTrigger.C

References _f, _foutname, assert, Fun4AllReturnCodes::EVENT_OK, PHGenIntegral::get_Integrated_Lumi(), and m_hNorm.

+ Here is the call graph for this function:

int HFMLTriggerHepMCTrigger::End ( PHCompositeNode )
virtual

Called at the end of all processing.

Reimplemented from SubsysReco.

int HFMLTriggerHepMCTrigger::get_embedding_id ( ) const
inline

The embedding ID for the HepMC subevent to be analyzed. embedding ID for the event positive ID is the embedded event of interest, e.g. jetty event from pythia negative IDs are backgrounds, .e.g out of time pile up collisions Usually, ID = 0 means the primary Au+Au collision background

Definition at line 68 of file HFMLTriggerHepMCTrigger.h.

View newest version in sPHENIX GitHub at line 68 of file HFMLTriggerHepMCTrigger.h

References _embedding_id.

int HFMLTriggerHepMCTrigger::get_embedding_id ( ) const
inline

The embedding ID for the HepMC subevent to be analyzed. embedding ID for the event positive ID is the embedded event of interest, e.g. jetty event from pythia negative IDs are backgrounds, .e.g out of time pile up collisions Usually, ID = 0 means the primary Au+Au collision background

Definition at line 68 of file HFMLTriggerHepMCTrigger.h.

View newest version in sPHENIX GitHub at line 68 of file HFMLTriggerHepMCTrigger.h

References _embedding_id.

double HFMLTriggerHepMCTrigger::get_eta_max ( ) const
inline

Definition at line 38 of file HFMLTriggerHepMCTrigger.h.

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

References _eta_max.

double HFMLTriggerHepMCTrigger::get_eta_max ( ) const
inline

Definition at line 38 of file HFMLTriggerHepMCTrigger.h.

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

References _eta_max.

double HFMLTriggerHepMCTrigger::get_eta_min ( ) const
inline

Definition at line 50 of file HFMLTriggerHepMCTrigger.h.

View newest version in sPHENIX GitHub at line 50 of file HFMLTriggerHepMCTrigger.h

References _eta_min.

double HFMLTriggerHepMCTrigger::get_eta_min ( ) const
inline

Definition at line 50 of file HFMLTriggerHepMCTrigger.h.

View newest version in sPHENIX GitHub at line 50 of file HFMLTriggerHepMCTrigger.h

References _eta_min.

int HFMLTriggerHepMCTrigger::Init ( PHCompositeNode )
virtual

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 84 of file HFMLTriggerHepMCTrigger.C.

View newest version in sPHENIX GitHub at line 84 of file HFMLTriggerHepMCTrigger.C

References _f, _foutname, _ievent, Fun4AllReturnCodes::EVENT_OK, i, m_DRapidity, and m_hNorm.

int HFMLTriggerHepMCTrigger::Init ( PHCompositeNode )
virtual

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.

int HFMLTriggerHepMCTrigger::InitRun ( PHCompositeNode )
virtual

Called for first event when run number is known. Typically this is where you may want to fetch data from database, because you know the run number.

Reimplemented from SubsysReco.

Definition at line 109 of file HFMLTriggerHepMCTrigger.C.

View newest version in sPHENIX GitHub at line 109 of file HFMLTriggerHepMCTrigger.C

References Fun4AllReturnCodes::ABORTRUN, Fun4AllReturnCodes::EVENT_OK, PHNodeIterator::findFirst(), m_Flags, m_Geneventmap, and PHWHERE.

+ Here is the call graph for this function:

int HFMLTriggerHepMCTrigger::InitRun ( PHCompositeNode )
virtual

Called for first event when run number is known. Typically this is where you may want to fetch data from database, because you know the run number.

Reimplemented from SubsysReco.

int HFMLTriggerHepMCTrigger::process_event ( PHCompositeNode )
virtual

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

Reimplemented from SubsysReco.

Definition at line 139 of file HFMLTriggerHepMCTrigger.C.

View newest version in sPHENIX GitHub at line 139 of file HFMLTriggerHepMCTrigger.C

References _embedding_id, _eta_max, _eta_min, _ievent, Fun4AllReturnCodes::ABORTRUN, assert, eta, Fun4AllReturnCodes::EVENT_OK, PHHepMCGenEventMap::get(), PHHepMCGenEvent::getEvent(), PHHepMCGenEventMap::identify(), m_DRapidity, m_Flags, m_Geneventmap, m_hNorm, m_RejectReturnCode, Fun4AllBase::Name(), merge_hashes::p, pdg, PHWHERE, PdbParameterMap::set_int_param(), Fun4AllBase::Verbosity(), and Fun4AllBase::VERBOSITY_MORE.

+ Here is the call graph for this function:

int HFMLTriggerHepMCTrigger::process_event ( PHCompositeNode )
virtual

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

Reimplemented from SubsysReco.

void HFMLTriggerHepMCTrigger::set_embedding_id ( int  id)
inline

The embedding ID for the HepMC subevent to be analyzed. embedding ID for the event positive ID is the embedded event of interest, e.g. jetty event from pythia negative IDs are backgrounds, .e.g out of time pile up collisions Usually, ID = 0 means the primary Au+Au collision background

Definition at line 75 of file HFMLTriggerHepMCTrigger.h.

View newest version in sPHENIX GitHub at line 75 of file HFMLTriggerHepMCTrigger.h

References _embedding_id, and train_ambiguity_solver::id.

void HFMLTriggerHepMCTrigger::set_embedding_id ( int  id)
inline

The embedding ID for the HepMC subevent to be analyzed. embedding ID for the event positive ID is the embedded event of interest, e.g. jetty event from pythia negative IDs are backgrounds, .e.g out of time pile up collisions Usually, ID = 0 means the primary Au+Au collision background

Definition at line 75 of file HFMLTriggerHepMCTrigger.h.

View newest version in sPHENIX GitHub at line 75 of file HFMLTriggerHepMCTrigger.h

References _embedding_id, and train_ambiguity_solver::id.

void HFMLTriggerHepMCTrigger::set_eta_max ( double  etaMax)
inline

Definition at line 44 of file HFMLTriggerHepMCTrigger.h.

View newest version in sPHENIX GitHub at line 44 of file HFMLTriggerHepMCTrigger.h

References _eta_max.

void HFMLTriggerHepMCTrigger::set_eta_max ( double  etaMax)
inline

Definition at line 44 of file HFMLTriggerHepMCTrigger.h.

View newest version in sPHENIX GitHub at line 44 of file HFMLTriggerHepMCTrigger.h

References _eta_max.

void HFMLTriggerHepMCTrigger::set_eta_min ( double  etaMin)
inline

Definition at line 56 of file HFMLTriggerHepMCTrigger.h.

View newest version in sPHENIX GitHub at line 56 of file HFMLTriggerHepMCTrigger.h

References _eta_min.

void HFMLTriggerHepMCTrigger::set_eta_min ( double  etaMin)
inline

Definition at line 56 of file HFMLTriggerHepMCTrigger.h.

View newest version in sPHENIX GitHub at line 56 of file HFMLTriggerHepMCTrigger.h

References _eta_min.

void HFMLTriggerHepMCTrigger::set_RejectReturnCode ( int  r)
inline

Definition at line 61 of file HFMLTriggerHepMCTrigger.h.

View newest version in sPHENIX GitHub at line 61 of file HFMLTriggerHepMCTrigger.h

References m_RejectReturnCode, and physmon_track_finding_ttbar::r.

void HFMLTriggerHepMCTrigger::set_RejectReturnCode ( int  r)
inline

Definition at line 61 of file HFMLTriggerHepMCTrigger.h.

View newest version in sPHENIX GitHub at line 61 of file HFMLTriggerHepMCTrigger.h

References m_RejectReturnCode, and physmon_track_finding_ttbar::r.

Member Data Documentation

int HFMLTriggerHepMCTrigger::_embedding_id
private

The embedding ID for the HepMC subevent to be analyzed. positive ID is the embedded event of interest, e.g. jetty event from pythia negative IDs are backgrounds, .e.g out of time pile up collisions Usually, ID = 0 means the primary Au+Au collision background

Definition at line 93 of file HFMLTriggerHepMCTrigger.h.

View newest version in sPHENIX GitHub at line 93 of file HFMLTriggerHepMCTrigger.h

Referenced by get_embedding_id(), process_event(), and set_embedding_id().

double HFMLTriggerHepMCTrigger::_eta_max
private

Definition at line 87 of file HFMLTriggerHepMCTrigger.h.

View newest version in sPHENIX GitHub at line 87 of file HFMLTriggerHepMCTrigger.h

Referenced by get_eta_max(), process_event(), and set_eta_max().

double HFMLTriggerHepMCTrigger::_eta_min
private

Definition at line 86 of file HFMLTriggerHepMCTrigger.h.

View newest version in sPHENIX GitHub at line 86 of file HFMLTriggerHepMCTrigger.h

Referenced by get_eta_min(), process_event(), and set_eta_min().

TFile * HFMLTriggerHepMCTrigger::_f
private

Definition at line 82 of file HFMLTriggerHepMCTrigger.h.

View newest version in sPHENIX GitHub at line 82 of file HFMLTriggerHepMCTrigger.h

Referenced by End(), and Init().

std::string HFMLTriggerHepMCTrigger::_foutname
private

Definition at line 84 of file HFMLTriggerHepMCTrigger.h.

View newest version in sPHENIX GitHub at line 84 of file HFMLTriggerHepMCTrigger.h

Referenced by End(), HFMLTriggerHepMCTrigger(), and Init().

int HFMLTriggerHepMCTrigger::_ievent
private

Definition at line 78 of file HFMLTriggerHepMCTrigger.h.

View newest version in sPHENIX GitHub at line 78 of file HFMLTriggerHepMCTrigger.h

Referenced by Init(), and process_event().

TH2F * HFMLTriggerHepMCTrigger::m_DRapidity
private

Definition at line 99 of file HFMLTriggerHepMCTrigger.h.

View newest version in sPHENIX GitHub at line 99 of file HFMLTriggerHepMCTrigger.h

Referenced by Init(), and process_event().

PdbParameterMap * HFMLTriggerHepMCTrigger::m_Flags
private

Definition at line 96 of file HFMLTriggerHepMCTrigger.h.

View newest version in sPHENIX GitHub at line 96 of file HFMLTriggerHepMCTrigger.h

Referenced by InitRun(), and process_event().

PHHepMCGenEventMap * HFMLTriggerHepMCTrigger::m_Geneventmap
private

Definition at line 95 of file HFMLTriggerHepMCTrigger.h.

View newest version in sPHENIX GitHub at line 95 of file HFMLTriggerHepMCTrigger.h

Referenced by InitRun(), and process_event().

TH1D * HFMLTriggerHepMCTrigger::m_hNorm
private

Definition at line 98 of file HFMLTriggerHepMCTrigger.h.

View newest version in sPHENIX GitHub at line 98 of file HFMLTriggerHepMCTrigger.h

Referenced by End(), Init(), and process_event().

int HFMLTriggerHepMCTrigger::m_RejectReturnCode
private

Definition at line 80 of file HFMLTriggerHepMCTrigger.h.

View newest version in sPHENIX GitHub at line 80 of file HFMLTriggerHepMCTrigger.h

Referenced by process_event(), and set_RejectReturnCode().


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