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

#include <analysis/blob/master/EMCal-analysis/DirectPhoton/DirectPhotonPythia.h>

+ Inheritance diagram for DirectPhotonPythia:
+ Collaboration diagram for DirectPhotonPythia:

Public Member Functions

 DirectPhotonPythia (std::string filename)
 
int Init (PHCompositeNode *)
 
int process_event (PHCompositeNode *)
 
int End (PHCompositeNode *)
 Called at the end of all processing.
 
float deltaR (float eta1, float eta2, float phi1, float phi2)
 
double get_eta_max () const
 
void set_eta_max (double etaMax)
 
double get_eta_min () const
 
void set_eta_min (double etaMin)
 
double get_pt_max () const
 
void set_pt_max (double ptMax)
 
double get_pt_min () const
 
void set_pt_min (double ptMin)
 
void set_rejection_action (int action)
 
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 Member Functions

int parton_tagging (Jet *jet, HepMC::GenEvent *, const double match_radius)
 tag jet flavor by parton matching, like PRL 113, 132301 (2014)
 
int hadron_tagging (Jet *jet, HepMC::GenEvent *, const double match_radius)
 tag jet flavor by hadron matching, like MIE proposal
 

Private Attributes

bool _verbose
 
int _ievent
 
int _total_pass
 
TFile * _f
 
TH1D * _h1
 
TH2D * _h2
 
TH2D * _h2all
 
TH2D * _h2_b
 
TH2D * _h2_c
 
TNtuple * _ntp_gamma
 
std::string _foutname
 
int _flavor
 
int _maxevent
 
double _pt_min
 
double _pt_max
 
double _eta_min
 
double _eta_max
 
std::string _jet_name
 
int _rejection_action
 action to take if no jet fitting _flavor requirement found. Action defined in <fun4all/Fun4AllReturnCodes.h>
 
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 25 of file DirectPhotonPythia.h.

View newest version in sPHENIX GitHub at line 25 of file DirectPhotonPythia.h

Constructor & Destructor Documentation

DirectPhotonPythia::DirectPhotonPythia ( std::string  filename)

Definition at line 32 of file DirectPhotonPythia.C.

View newest version in sPHENIX GitHub at line 32 of file DirectPhotonPythia.C

References _eta_max, _eta_min, _foutname, _pt_max, _pt_min, _rejection_action, Fun4AllReturnCodes::DISCARDEVENT, and filename.

Member Function Documentation

float DirectPhotonPythia::deltaR ( float  eta1,
float  eta2,
float  phi1,
float  phi2 
)
inline

Definition at line 40 of file DirectPhotonPythia.h.

View newest version in sPHENIX GitHub at line 40 of file DirectPhotonPythia.h

References INTTVtxZ::dphi.

int DirectPhotonPythia::End ( PHCompositeNode )
virtual

Called at the end of all processing.

Reimplemented from SubsysReco.

Definition at line 128 of file DirectPhotonPythia.C.

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

References _f, _total_pass, verbosity, and Fun4AllBase::VERBOSITY_SOME.

int DirectPhotonPythia::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 115 of file DirectPhotonPythia.h.

View newest version in sPHENIX GitHub at line 115 of file DirectPhotonPythia.h

References _embedding_id.

double DirectPhotonPythia::get_eta_max ( ) const
inline

Definition at line 55 of file DirectPhotonPythia.h.

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

References _eta_max.

double DirectPhotonPythia::get_eta_min ( ) const
inline

Definition at line 67 of file DirectPhotonPythia.h.

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

References _eta_min.

double DirectPhotonPythia::get_pt_max ( ) const
inline

Definition at line 79 of file DirectPhotonPythia.h.

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

References _pt_max.

double DirectPhotonPythia::get_pt_min ( ) const
inline

Definition at line 91 of file DirectPhotonPythia.h.

View newest version in sPHENIX GitHub at line 91 of file DirectPhotonPythia.h

References _pt_min.

int DirectPhotonPythia::hadron_tagging ( Jet jet,
HepMC::GenEvent *  ,
const double  match_radius 
)
private

tag jet flavor by hadron matching, like MIE proposal

int DirectPhotonPythia::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 48 of file DirectPhotonPythia.C.

View newest version in sPHENIX GitHub at line 48 of file DirectPhotonPythia.C

References _f, _foutname, _h1, _h2, _h2_b, _h2_c, _h2all, _ievent, _ntp_gamma, _total_pass, and _verbose.

int DirectPhotonPythia::parton_tagging ( Jet jet,
HepMC::GenEvent *  ,
const double  match_radius 
)
private

tag jet flavor by parton matching, like PRL 113, 132301 (2014)

int DirectPhotonPythia::process_event ( PHCompositeNode )
virtual

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

Reimplemented from SubsysReco.

Definition at line 72 of file DirectPhotonPythia.C.

View newest version in sPHENIX GitHub at line 72 of file DirectPhotonPythia.C

References _embedding_id, _h1, _h2, _ievent, _ntp_gamma, 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 DirectPhotonPythia::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 122 of file DirectPhotonPythia.h.

View newest version in sPHENIX GitHub at line 122 of file DirectPhotonPythia.h

References _embedding_id, and train_ambiguity_solver::id.

void DirectPhotonPythia::set_eta_max ( double  etaMax)
inline

Definition at line 61 of file DirectPhotonPythia.h.

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

References _eta_max.

void DirectPhotonPythia::set_eta_min ( double  etaMin)
inline

Definition at line 73 of file DirectPhotonPythia.h.

View newest version in sPHENIX GitHub at line 73 of file DirectPhotonPythia.h

References _eta_min.

void DirectPhotonPythia::set_pt_max ( double  ptMax)
inline

Definition at line 85 of file DirectPhotonPythia.h.

View newest version in sPHENIX GitHub at line 85 of file DirectPhotonPythia.h

References _pt_max.

void DirectPhotonPythia::set_pt_min ( double  ptMin)
inline

Definition at line 97 of file DirectPhotonPythia.h.

View newest version in sPHENIX GitHub at line 97 of file DirectPhotonPythia.h

References _pt_min.

void DirectPhotonPythia::set_rejection_action ( int  action)
inline

action to take if no jet fitting _flavor requirement found. Action defined in <fun4all/Fun4AllReturnCodes.h> Default action is DISCARDEVENT for DST level filtering, one can further choose ABORTEVENT to use it as processing level filtering

Definition at line 105 of file DirectPhotonPythia.h.

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

References _rejection_action, and parse_cmake_options::action.

Member Data Documentation

int DirectPhotonPythia::_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 166 of file DirectPhotonPythia.h.

View newest version in sPHENIX GitHub at line 166 of file DirectPhotonPythia.h

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

double DirectPhotonPythia::_eta_max
private

Definition at line 156 of file DirectPhotonPythia.h.

View newest version in sPHENIX GitHub at line 156 of file DirectPhotonPythia.h

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

double DirectPhotonPythia::_eta_min
private

Definition at line 155 of file DirectPhotonPythia.h.

View newest version in sPHENIX GitHub at line 155 of file DirectPhotonPythia.h

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

TFile* DirectPhotonPythia::_f
private

Definition at line 138 of file DirectPhotonPythia.h.

View newest version in sPHENIX GitHub at line 138 of file DirectPhotonPythia.h

Referenced by End(), and Init().

int DirectPhotonPythia::_flavor
private

Definition at line 149 of file DirectPhotonPythia.h.

View newest version in sPHENIX GitHub at line 149 of file DirectPhotonPythia.h

std::string DirectPhotonPythia::_foutname
private

Definition at line 147 of file DirectPhotonPythia.h.

View newest version in sPHENIX GitHub at line 147 of file DirectPhotonPythia.h

Referenced by DirectPhotonPythia(), and Init().

TH1D* DirectPhotonPythia::_h1
private

Definition at line 140 of file DirectPhotonPythia.h.

View newest version in sPHENIX GitHub at line 140 of file DirectPhotonPythia.h

Referenced by Init(), and process_event().

TH2D* DirectPhotonPythia::_h2
private

Definition at line 141 of file DirectPhotonPythia.h.

View newest version in sPHENIX GitHub at line 141 of file DirectPhotonPythia.h

Referenced by Init(), and process_event().

TH2D* DirectPhotonPythia::_h2_b
private

Definition at line 143 of file DirectPhotonPythia.h.

View newest version in sPHENIX GitHub at line 143 of file DirectPhotonPythia.h

Referenced by Init().

TH2D* DirectPhotonPythia::_h2_c
private

Definition at line 144 of file DirectPhotonPythia.h.

View newest version in sPHENIX GitHub at line 144 of file DirectPhotonPythia.h

Referenced by Init().

TH2D* DirectPhotonPythia::_h2all
private

Definition at line 142 of file DirectPhotonPythia.h.

View newest version in sPHENIX GitHub at line 142 of file DirectPhotonPythia.h

Referenced by Init().

int DirectPhotonPythia::_ievent
private

Definition at line 135 of file DirectPhotonPythia.h.

View newest version in sPHENIX GitHub at line 135 of file DirectPhotonPythia.h

Referenced by Init(), and process_event().

std::string DirectPhotonPythia::_jet_name
private

Definition at line 158 of file DirectPhotonPythia.h.

View newest version in sPHENIX GitHub at line 158 of file DirectPhotonPythia.h

int DirectPhotonPythia::_maxevent
private

Definition at line 150 of file DirectPhotonPythia.h.

View newest version in sPHENIX GitHub at line 150 of file DirectPhotonPythia.h

TNtuple* DirectPhotonPythia::_ntp_gamma
private

Definition at line 145 of file DirectPhotonPythia.h.

View newest version in sPHENIX GitHub at line 145 of file DirectPhotonPythia.h

Referenced by Init(), and process_event().

double DirectPhotonPythia::_pt_max
private

Definition at line 153 of file DirectPhotonPythia.h.

View newest version in sPHENIX GitHub at line 153 of file DirectPhotonPythia.h

Referenced by DirectPhotonPythia(), get_pt_max(), and set_pt_max().

double DirectPhotonPythia::_pt_min
private

Definition at line 152 of file DirectPhotonPythia.h.

View newest version in sPHENIX GitHub at line 152 of file DirectPhotonPythia.h

Referenced by DirectPhotonPythia(), get_pt_min(), and set_pt_min().

int DirectPhotonPythia::_rejection_action
private

action to take if no jet fitting _flavor requirement found. Action defined in <fun4all/Fun4AllReturnCodes.h>

Definition at line 161 of file DirectPhotonPythia.h.

View newest version in sPHENIX GitHub at line 161 of file DirectPhotonPythia.h

Referenced by DirectPhotonPythia(), and set_rejection_action().

int DirectPhotonPythia::_total_pass
private

Definition at line 136 of file DirectPhotonPythia.h.

View newest version in sPHENIX GitHub at line 136 of file DirectPhotonPythia.h

Referenced by End(), and Init().

bool DirectPhotonPythia::_verbose
private

Definition at line 133 of file DirectPhotonPythia.h.

View newest version in sPHENIX GitHub at line 133 of file DirectPhotonPythia.h

Referenced by Init().


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