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

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

+ Inheritance diagram for HFMLTriggerInterface:
+ Collaboration diagram for HFMLTriggerInterface:

Public Member Functions

 HFMLTriggerInterface (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)
 
int get_embedding_id () const
 
void set_embedding_id (int id)
 
 HFMLTriggerInterface (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)
 
int get_embedding_id () const
 
void set_embedding_id (int id)
 
int load_nodes (PHCompositeNode *topNode)
 
- 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
 
TFile * _f
 
std::fstream m_jsonOut
 
std::string _foutname
 
double _eta_min
 
double _eta_max
 
int _embedding_id
 
unsigned int _nlayers_maps
 
SvtxEvalStack_svtxevalstack
 
SvtxHitMap * m_hitMap
 
PHG4CylinderGeomContainerm_Geoms
 
PHG4TruthInfoContainerm_truthInfo
 
PdbParameterMapm_Flags
 
TH2F * m_hitStaveLayer
 
TH2F * m_hitModuleHalfStave
 
TH2F * m_hitChipModule
 
TH3F * m_hitLayerMap
 
TH3F * m_hitPixelPhiMap
 
TH3F * m_hitPixelPhiMapHL
 
TH3F * m_hitPixelZMap
 
TrkrHitSetContainerm_hitsets
 
PHHepMCGenEventMapm_GenEventMap
 
PHG4HitContainerm_g4hits_mvtx
 

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 30 of file HFMLTriggerInterface.h.

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

Constructor & Destructor Documentation

HFMLTriggerInterface::HFMLTriggerInterface ( std::string  filename)

Definition at line 68 of file HFMLTriggerInterface.C.

View newest version in sPHENIX GitHub at line 68 of file HFMLTriggerInterface.C

References _foutname, and filename.

HFMLTriggerInterface::HFMLTriggerInterface ( std::string  filename)

Member Function Documentation

int HFMLTriggerInterface::End ( PHCompositeNode )
virtual

Called at the end of all processing.

Reimplemented from SubsysReco.

Definition at line 504 of file HFMLTriggerInterface.C.

View newest version in sPHENIX GitHub at line 504 of file HFMLTriggerInterface.C

References _f, _foutname, Fun4AllReturnCodes::EVENT_OK, and m_jsonOut.

int HFMLTriggerInterface::End ( PHCompositeNode )
virtual

Called at the end of all processing.

Reimplemented from SubsysReco.

int HFMLTriggerInterface::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 69 of file HFMLTriggerInterface.h.

View newest version in sPHENIX GitHub at line 69 of file HFMLTriggerInterface.h

References _embedding_id.

int HFMLTriggerInterface::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 74 of file HFMLTriggerInterface.h.

View newest version in sPHENIX GitHub at line 74 of file HFMLTriggerInterface.h

References _embedding_id.

double HFMLTriggerInterface::get_eta_max ( ) const
inline

Definition at line 41 of file HFMLTriggerInterface.h.

View newest version in sPHENIX GitHub at line 41 of file HFMLTriggerInterface.h

References _eta_max.

double HFMLTriggerInterface::get_eta_max ( ) const
inline

Definition at line 46 of file HFMLTriggerInterface.h.

View newest version in sPHENIX GitHub at line 46 of file HFMLTriggerInterface.h

References _eta_max.

double HFMLTriggerInterface::get_eta_min ( ) const
inline

Definition at line 53 of file HFMLTriggerInterface.h.

View newest version in sPHENIX GitHub at line 53 of file HFMLTriggerInterface.h

References _eta_min.

double HFMLTriggerInterface::get_eta_min ( ) const
inline

Definition at line 58 of file HFMLTriggerInterface.h.

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

References _eta_min.

int HFMLTriggerInterface::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 92 of file HFMLTriggerInterface.C.

View newest version in sPHENIX GitHub at line 92 of file HFMLTriggerInterface.C

References _f, _foutname, _ievent, Fun4AllReturnCodes::EVENT_OK, m_hitChipModule, m_hitLayerMap, m_hitModuleHalfStave, m_hitPixelPhiMap, m_hitPixelPhiMapHL, m_hitPixelZMap, m_hitStaveLayer, m_jsonOut, and out.

int HFMLTriggerInterface::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 HFMLTriggerInterface::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 128 of file HFMLTriggerInterface.C.

View newest version in sPHENIX GitHub at line 128 of file HFMLTriggerInterface.C

References Fun4AllReturnCodes::ABORTRUN, Fun4AllReturnCodes::EVENT_OK, m_Flags, m_Geoms, m_hitMap, m_truthInfo, and PHWHERE.

int HFMLTriggerInterface::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 HFMLTriggerInterface::load_nodes ( PHCompositeNode topNode)

Definition at line 526 of file HFMLTriggerInterface.C.

View newest version in sPHENIX GitHub at line 526 of file HFMLTriggerInterface.C

References Fun4AllReturnCodes::ABORTEVENT, Fun4AllReturnCodes::EVENT_OK, m_g4hits_mvtx, m_GenEventMap, m_hitsets, and PHWHERE.

int HFMLTriggerInterface::process_event ( PHCompositeNode )
virtual

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

Reimplemented from SubsysReco.

Definition at line 160 of file HFMLTriggerInterface.C.

View newest version in sPHENIX GitHub at line 160 of file HFMLTriggerInterface.C

References _embedding_id, _ievent, _nlayers_maps, _svtxevalstack, Fun4AllReturnCodes::ABORTRUN, SvtxClusterEval::all_clusters_from(), assert, Fun4AllReturnCodes::EVENT_OK, material_mapping_optimisation::format, PHHepMCGenEventMap::get(), PHG4Cell::get_chip_index(), SvtxEvalStack::get_cluster_eval(), PHHepMCGenEvent::get_collision_vertex(), PHG4Cell::get_half_stave_index(), SvtxEvalStack::get_hit_eval(), PdbParameterMap::get_iparam_iters(), PHG4Cell::get_module_index(), PHG4Particle::get_pid(), PHG4Cell::get_pixel_index(), PHG4Particle::get_px(), PHG4Particle::get_py(), PHG4Particle::get_pz(), PHG4Cell::get_stave_index(), PHG4Particle::get_track_id(), PHHepMCGenEvent::getEvent(), PHG4CylinderGeomContainer::GetLayerGeom(), PHG4TruthInfoContainer::GetPrimaryParticleRange(), hitID, PHHepMCGenEventMap::identify(), gen_gtest_pred_impl::Iter(), layer, m_Flags, m_Geoms, m_hitChipModule, m_hitLayerMap, m_hitMap, m_hitModuleHalfStave, m_hitPixelPhiMap, m_hitPixelPhiMapHL, m_hitPixelZMap, m_hitStaveLayer, m_jsonOut, m_truthInfo, perf_headwind::name, SvtxEvalStack::next_event(), PHWHERE, SvtxEvalStack::set_strict(), SvtxEvalStack::set_verbosity(), str, testing::Value(), Fun4AllBase::Verbosity(), writer, ambiguity_solver_full_chain::x, y, and physmon_track_finding_ttbar::z.

+ Here is the call graph for this function:

int HFMLTriggerInterface::process_event ( PHCompositeNode )
virtual

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

Reimplemented from SubsysReco.

void HFMLTriggerInterface::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 76 of file HFMLTriggerInterface.h.

View newest version in sPHENIX GitHub at line 76 of file HFMLTriggerInterface.h

References _embedding_id, and train_ambiguity_solver::id.

void HFMLTriggerInterface::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 81 of file HFMLTriggerInterface.h.

View newest version in sPHENIX GitHub at line 81 of file HFMLTriggerInterface.h

References _embedding_id, and train_ambiguity_solver::id.

void HFMLTriggerInterface::set_eta_max ( double  etaMax)
inline

Definition at line 47 of file HFMLTriggerInterface.h.

View newest version in sPHENIX GitHub at line 47 of file HFMLTriggerInterface.h

References _eta_max.

void HFMLTriggerInterface::set_eta_max ( double  etaMax)
inline

Definition at line 52 of file HFMLTriggerInterface.h.

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

References _eta_max.

void HFMLTriggerInterface::set_eta_min ( double  etaMin)
inline

Definition at line 59 of file HFMLTriggerInterface.h.

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

References _eta_min.

void HFMLTriggerInterface::set_eta_min ( double  etaMin)
inline

Definition at line 64 of file HFMLTriggerInterface.h.

View newest version in sPHENIX GitHub at line 64 of file HFMLTriggerInterface.h

References _eta_min.

Member Data Documentation

int HFMLTriggerInterface::_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 HFMLTriggerInterface.h.

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

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

double HFMLTriggerInterface::_eta_max
private

Definition at line 87 of file HFMLTriggerInterface.h.

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

Referenced by get_eta_max(), and set_eta_max().

double HFMLTriggerInterface::_eta_min
private

Definition at line 86 of file HFMLTriggerInterface.h.

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

Referenced by get_eta_min(), and set_eta_min().

TFile * HFMLTriggerInterface::_f
private

Definition at line 81 of file HFMLTriggerInterface.h.

View newest version in sPHENIX GitHub at line 81 of file HFMLTriggerInterface.h

Referenced by End(), and Init().

std::string HFMLTriggerInterface::_foutname
private

Definition at line 84 of file HFMLTriggerInterface.h.

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

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

int HFMLTriggerInterface::_ievent
private

Definition at line 79 of file HFMLTriggerInterface.h.

View newest version in sPHENIX GitHub at line 79 of file HFMLTriggerInterface.h

Referenced by Init(), and process_event().

unsigned int HFMLTriggerInterface::_nlayers_maps
private

Definition at line 95 of file HFMLTriggerInterface.h.

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

Referenced by process_event().

SvtxEvalStack* HFMLTriggerInterface::_svtxevalstack
private

Definition at line 98 of file HFMLTriggerInterface.h.

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

Referenced by process_event().

PdbParameterMap * HFMLTriggerInterface::m_Flags
private

Definition at line 102 of file HFMLTriggerInterface.h.

View newest version in sPHENIX GitHub at line 102 of file HFMLTriggerInterface.h

Referenced by InitRun(), and process_event().

PHG4HitContainer* HFMLTriggerInterface::m_g4hits_mvtx
private

Definition at line 111 of file HFMLTriggerInterface.h.

View newest version in sPHENIX GitHub at line 111 of file HFMLTriggerInterface.h

Referenced by load_nodes().

PHHepMCGenEventMap* HFMLTriggerInterface::m_GenEventMap
private

Definition at line 109 of file HFMLTriggerInterface.h.

View newest version in sPHENIX GitHub at line 109 of file HFMLTriggerInterface.h

Referenced by load_nodes().

PHG4CylinderGeomContainer * HFMLTriggerInterface::m_Geoms
private

Definition at line 100 of file HFMLTriggerInterface.h.

View newest version in sPHENIX GitHub at line 100 of file HFMLTriggerInterface.h

Referenced by InitRun(), and process_event().

TH2F * HFMLTriggerInterface::m_hitChipModule
private

Definition at line 106 of file HFMLTriggerInterface.h.

View newest version in sPHENIX GitHub at line 106 of file HFMLTriggerInterface.h

Referenced by Init(), and process_event().

TH3F * HFMLTriggerInterface::m_hitLayerMap
private

Definition at line 108 of file HFMLTriggerInterface.h.

View newest version in sPHENIX GitHub at line 108 of file HFMLTriggerInterface.h

Referenced by Init(), and process_event().

SvtxHitMap* HFMLTriggerInterface::m_hitMap
private

Definition at line 99 of file HFMLTriggerInterface.h.

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

Referenced by InitRun(), and process_event().

TH2F * HFMLTriggerInterface::m_hitModuleHalfStave
private

Definition at line 105 of file HFMLTriggerInterface.h.

View newest version in sPHENIX GitHub at line 105 of file HFMLTriggerInterface.h

Referenced by Init(), and process_event().

TH3F * HFMLTriggerInterface::m_hitPixelPhiMap
private

Definition at line 109 of file HFMLTriggerInterface.h.

View newest version in sPHENIX GitHub at line 109 of file HFMLTriggerInterface.h

Referenced by Init(), and process_event().

TH3F * HFMLTriggerInterface::m_hitPixelPhiMapHL
private

Definition at line 110 of file HFMLTriggerInterface.h.

View newest version in sPHENIX GitHub at line 110 of file HFMLTriggerInterface.h

Referenced by Init(), and process_event().

TH3F * HFMLTriggerInterface::m_hitPixelZMap
private

Definition at line 111 of file HFMLTriggerInterface.h.

View newest version in sPHENIX GitHub at line 111 of file HFMLTriggerInterface.h

Referenced by Init(), and process_event().

TrkrHitSetContainer* HFMLTriggerInterface::m_hitsets
private

Definition at line 107 of file HFMLTriggerInterface.h.

View newest version in sPHENIX GitHub at line 107 of file HFMLTriggerInterface.h

Referenced by load_nodes().

TH2F * HFMLTriggerInterface::m_hitStaveLayer
private

Definition at line 104 of file HFMLTriggerInterface.h.

View newest version in sPHENIX GitHub at line 104 of file HFMLTriggerInterface.h

Referenced by Init(), and process_event().

std::fstream HFMLTriggerInterface::m_jsonOut
private

Definition at line 82 of file HFMLTriggerInterface.h.

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

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

PHG4TruthInfoContainer * HFMLTriggerInterface::m_truthInfo
private

Definition at line 101 of file HFMLTriggerInterface.h.

View newest version in sPHENIX GitHub at line 101 of file HFMLTriggerInterface.h

Referenced by InitRun(), and process_event().


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