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

#include <analysis/blob/master/EICAnalysis/Quarkonia2LeptonsMC.h>

+ Inheritance diagram for Quarkonia2LeptonsMC:
+ Collaboration diagram for Quarkonia2LeptonsMC:

Public Member Functions

 Quarkonia2LeptonsMC (std::string filename)
 
int Init (PHCompositeNode *)
 
int process_event (PHCompositeNode *)
 
int End (PHCompositeNode *)
 Called at the end of all processing.
 
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 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.
 

Private Attributes

bool _verbose
 
int _ievent
 
int _total_pass
 
std::string _foutname
 
TFile * _fout_root
 
TNtuple * _tree_quarkonia
 
int _embedding_id
 

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 22 of file Quarkonia2LeptonsMC.h.

View newest version in sPHENIX GitHub at line 22 of file Quarkonia2LeptonsMC.h

Constructor & Destructor Documentation

Quarkonia2LeptonsMC::Quarkonia2LeptonsMC ( std::string  filename)

Definition at line 29 of file Quarkonia2LeptonsMC.C.

View newest version in sPHENIX GitHub at line 29 of file Quarkonia2LeptonsMC.C

References _foutname, _tree_quarkonia, and filename.

Member Function Documentation

int Quarkonia2LeptonsMC::End ( PHCompositeNode )
virtual

Called at the end of all processing.

Reimplemented from SubsysReco.

Definition at line 171 of file Quarkonia2LeptonsMC.C.

View newest version in sPHENIX GitHub at line 171 of file Quarkonia2LeptonsMC.C

References _fout_root, and _tree_quarkonia.

int Quarkonia2LeptonsMC::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 42 of file Quarkonia2LeptonsMC.h.

View newest version in sPHENIX GitHub at line 42 of file Quarkonia2LeptonsMC.h

References _embedding_id.

int Quarkonia2LeptonsMC::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 38 of file Quarkonia2LeptonsMC.C.

View newest version in sPHENIX GitHub at line 38 of file Quarkonia2LeptonsMC.C

References _fout_root, _foutname, _ievent, _tree_quarkonia, and _verbose.

int Quarkonia2LeptonsMC::process_event ( PHCompositeNode )
virtual

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

Reimplemented from SubsysReco.

Definition at line 51 of file Quarkonia2LeptonsMC.C.

View newest version in sPHENIX GitHub at line 51 of file Quarkonia2LeptonsMC.C

References _embedding_id, _ievent, _tree_quarkonia, Fun4AllReturnCodes::ABORTEVENT, Fun4AllReturnCodes::ABORTRUN, eta, Fill(), PHHepMCGenEventMap::get(), PHHepMCGenEvent::getEvent(), PHHepMCGenEventMap::identify(), merge_hashes::p, ActsTests::PropagationDatasets::phi, PHWHERE, and physmon_track_finding_ttbar::pt.

+ Here is the call graph for this function:

void Quarkonia2LeptonsMC::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 49 of file Quarkonia2LeptonsMC.h.

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

References _embedding_id, and train_ambiguity_solver::id.

Member Data Documentation

int Quarkonia2LeptonsMC::_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 67 of file Quarkonia2LeptonsMC.h.

View newest version in sPHENIX GitHub at line 67 of file Quarkonia2LeptonsMC.h

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

TFile* Quarkonia2LeptonsMC::_fout_root
private

Definition at line 58 of file Quarkonia2LeptonsMC.h.

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

Referenced by End(), and Init().

std::string Quarkonia2LeptonsMC::_foutname
private

Definition at line 57 of file Quarkonia2LeptonsMC.h.

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

Referenced by Init(), and Quarkonia2LeptonsMC().

int Quarkonia2LeptonsMC::_ievent
private

Definition at line 54 of file Quarkonia2LeptonsMC.h.

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

Referenced by Init(), and process_event().

int Quarkonia2LeptonsMC::_total_pass
private

Definition at line 55 of file Quarkonia2LeptonsMC.h.

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

TNtuple* Quarkonia2LeptonsMC::_tree_quarkonia
private

Definition at line 61 of file Quarkonia2LeptonsMC.h.

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

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

bool Quarkonia2LeptonsMC::_verbose
private

Definition at line 52 of file Quarkonia2LeptonsMC.h.

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

Referenced by Init().


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