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

Definition of this analysis module class. More...

#include <tutorials/blob/master/AnaTutorial/src/AnaTutorial.h>

+ Inheritance diagram for AnaTutorial:
+ Collaboration diagram for AnaTutorial:

Public Member Functions

 AnaTutorial (const std::string &name="AnaTutorial", const std::string &fname="AnaTutorial.root")
 Constructor.
 
virtual ~AnaTutorial ()
 
int Init (PHCompositeNode *)
 SubsysReco initialize processing method.
 
int process_event (PHCompositeNode *)
 SubsysReco event processing method.
 
int End (PHCompositeNode *)
 SubsysReco end processing method.
 
void setMinJetPt (float minjetpt)
 Set the minimum jet pT to cut on.
 
void setMinClusPt (float mincluspt)
 Set the minimum cluster pT to cut on.
 
void analyzeTracks (bool analyzeTracks)
 Set things to analyze.
 
void analyzeClusters (bool analyzeClusters)
 
void analyzeJets (bool analyzeJets)
 
void analyzeTruth (bool analyzeTruth)
 
- 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

void getTracks (PHCompositeNode *topNode)
 Methods for grabbing the data.
 
void getTruthJets (PHCompositeNode *topNode)
 
void getReconstructedJets (PHCompositeNode *topNode)
 
void getEMCalClusters (PHCompositeNode *topNode)
 
void getHEPMCTruth (PHCompositeNode *topNode)
 
void getPHG4Truth (PHCompositeNode *topNode)
 
void initializeVariables ()
 
void initializeTrees ()
 

Private Attributes

std::string m_outfilename
 String to contain the outfile name containing the trees.
 
Fun4AllHistoManagerm_hm
 Fun4All Histogram Manager tool.
 
float m_minjetpt
 A float for cutting on jet pt.
 
float m_mincluspt
 A float for cutting on cluster pt.
 
bool m_analyzeTracks
 A boolean for running over tracks.
 
bool m_analyzeClusters
 A boolean for running over clusters.
 
bool m_analyzeJets
 A boolean for running over jets.
 
bool m_analyzeTruth
 A boolean for collecting hepmc information.
 
TFile * m_outfile
 TFile to hold the following TTrees and histograms.
 
TTree * m_clustertree
 
TTree * m_tracktree
 
TTree * m_hepmctree
 
TTree * m_truthtree
 
TTree * m_recojettree
 
TTree * m_truthjettree
 
TH1 * m_phi_h
 
TH2 * m_eta_phi_h
 
SvtxEvalStackm_svtxEvalStack = nullptr
 
JetEvalStackm_jetEvalStack = nullptr
 
int m_partid1
 HEPMC Tree variables.
 
int m_partid2
 
double m_x1
 
double m_x2
 
int m_mpi
 
int m_process_id
 
double m_truthenergy
 
double m_trutheta
 
double m_truthphi
 
double m_truthpx
 
double m_truthpy
 
double m_truthpz
 
double m_truthpt
 
double m_truthp
 
int m_numparticlesinevent
 
int m_truthpid
 
double m_tr_px
 Track variables.
 
double m_tr_py
 
double m_tr_pz
 
double m_tr_p
 
double m_tr_pt
 
double m_tr_phi
 
double m_tr_eta
 
int m_charge
 
double m_chisq
 
int m_ndf
 
double m_dca
 
double m_tr_x
 
double m_tr_y
 
double m_tr_z
 
int m_truth_is_primary
 
double m_truthtrackpx
 
double m_truthtrackpy
 
double m_truthtrackpz
 
double m_truthtrackp
 
double m_truthtracke
 
double m_truthtrackpt
 
double m_truthtrackphi
 
double m_truthtracketa
 
int m_truthtrackpid
 
double m_recojetpt
 Reconstructed jet variables.
 
int m_recojetid
 
double m_recojetpx
 
double m_recojetpy
 
double m_recojetpz
 
double m_recojetphi
 
double m_recojetp
 
double m_recojetenergy
 
double m_recojeteta
 
int m_truthjetid
 
double m_truthjetp
 
double m_truthjetphi
 
double m_truthjeteta
 
double m_truthjetpt
 
double m_truthjetenergy
 
double m_truthjetpx
 
double m_truthjetpy
 
double m_truthjetpz
 
double m_dR
 
double m_clusenergy
 Cluster variables.
 
double m_cluseta
 
double m_clustheta
 
double m_cluspt
 
double m_clusphi
 
double m_cluspx
 
double m_cluspy
 
double m_cluspz
 
double m_E_4x4
 

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 of this analysis module class.

Definition at line 31 of file AnaTutorial.h.

View newest version in sPHENIX GitHub at line 31 of file AnaTutorial.h

Constructor & Destructor Documentation

AnaTutorial::AnaTutorial ( const std::string &  name = "AnaTutorial",
const std::string &  filename = "AnaTutorial.root" 
)

Constructor.

Cluster/Calorimeter includes.

Jet includes Tracking includes Truth evaluation includes HEPMC truth includes Fun4All includes ROOT includes C++ includes This class demonstrates the construction and use of an analysis module within the sPHENIX Fun4All framework. It is intended to show how to obtain physics objects from the analysis tree, and then write them out to a ROOT tree and file for further offline analysis. Constructor of module

Initialize variables and trees so we don't accidentally access memory that was never allocated

Definition at line 71 of file AnaTutorial.cc.

View newest version in sPHENIX GitHub at line 71 of file AnaTutorial.cc

References initializeTrees(), and initializeVariables().

+ Here is the call graph for this function:

AnaTutorial::~AnaTutorial ( )
virtual

Destructor of module

Definition at line 91 of file AnaTutorial.cc.

View newest version in sPHENIX GitHub at line 91 of file AnaTutorial.cc

References m_hepmctree, m_hm, m_recojettree, m_tracktree, and m_truthjettree.

Member Function Documentation

void AnaTutorial::analyzeClusters ( bool  analyzeClusters)
inline

Definition at line 58 of file AnaTutorial.h.

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

References analyzeClusters(), and m_analyzeClusters.

Referenced by analyzeClusters(), Fun4All_AnaTutorial_DSTReadBack(), Fun4All_AnaTutorial_sPHENIX(), Fun4All_AnaTutorial_sPHENIX_Jets(), and Fun4All_G4_EICDetector_AnaTutorial().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void AnaTutorial::analyzeJets ( bool  analyzeJets)
inline

Definition at line 59 of file AnaTutorial.h.

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

References analyzeJets(), and m_analyzeJets.

Referenced by analyzeJets(), Fun4All_AnaTutorial_DSTReadBack(), Fun4All_AnaTutorial_sPHENIX(), Fun4All_AnaTutorial_sPHENIX_Jets(), and Fun4All_G4_EICDetector_AnaTutorial().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void AnaTutorial::analyzeTracks ( bool  analyzeTracks)
inline

Set things to analyze.

Definition at line 57 of file AnaTutorial.h.

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

References analyzeTracks(), and m_analyzeTracks.

Referenced by analyzeTracks(), Fun4All_AnaTutorial_DSTReadBack(), Fun4All_AnaTutorial_sPHENIX(), Fun4All_AnaTutorial_sPHENIX_Jets(), and Fun4All_G4_EICDetector_AnaTutorial().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void AnaTutorial::analyzeTruth ( bool  analyzeTruth)
inline

Definition at line 60 of file AnaTutorial.h.

View newest version in sPHENIX GitHub at line 60 of file AnaTutorial.h

References analyzeTruth(), and m_analyzeTruth.

Referenced by analyzeTruth(), Fun4All_AnaTutorial_DSTReadBack(), Fun4All_AnaTutorial_sPHENIX(), Fun4All_AnaTutorial_sPHENIX_Jets(), and Fun4All_G4_EICDetector_AnaTutorial().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int AnaTutorial::End ( PHCompositeNode )
virtual

SubsysReco end processing method.

End the module and finish any data collection. Clean up any remaining loose ends

Change to the outfile

If we analyzed the tracks, write the tree out

If we analyzed the jets, write them out

If we analyzed the truth particles, write them out

If we analyzed the clusters, write them out

Write out any other histograms

Write and close the outfile

Clean up pointers and associated histos/trees in TFile

Reimplemented from SubsysReco.

Definition at line 160 of file AnaTutorial.cc.

View newest version in sPHENIX GitHub at line 160 of file AnaTutorial.cc

References m_analyzeClusters, m_analyzeJets, m_analyzeTracks, m_analyzeTruth, m_clustertree, m_eta_phi_h, m_hepmctree, m_outfile, m_phi_h, m_recojettree, m_tracktree, m_truthjettree, m_truthtree, and Fun4AllBase::Verbosity().

+ Here is the call graph for this function:

void AnaTutorial::getEMCalClusters ( PHCompositeNode topNode)
private

This method gets clusters from the EMCal and stores them in a tree. It also demonstrates how to get trigger emulator information. Clusters from other containers can be obtained in a similar way (e.g. clusters from the IHCal, etc.)

Get the raw cluster container Note: other cluster containers exist as well. Check out the node tree when you run a simulation

Get the global vertex to determine the appropriate pseudorapidity of the clusters

just take a bbc vertex

Trigger emulator

Can obtain some trigger information if desired

Loop over the EMCal clusters

Get this cluster

Get cluster characteristics This helper class determines the photon characteristics depending on the vertex position This is important for e.g. eta determination and E_T determination

Definition at line 725 of file AnaTutorial.cc.

View newest version in sPHENIX GitHub at line 725 of file AnaTutorial.cc

References assert, GlobalVertexMap::begin(), clusters, GlobalVertexMap::empty(), GlobalVertexMap::end(), GlobalVertex::end_vtxids(), GlobalVertex::find_vtxids(), CaloTriggerInfo::get_best_EMCal_4x4_E(), GlobalVertex::get_x(), GlobalVertex::get_y(), GlobalVertex::get_z(), RawClusterContainer::getClusters(), RawClusterUtility::GetECoreVec(), m_clusenergy, m_cluseta, m_clusphi, m_cluspt, m_cluspx, m_cluspy, m_cluspz, m_clustertree, m_clustheta, m_E_4x4, m_mincluspt, GlobalVertex::MBD, and PHWHERE.

Referenced by process_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void AnaTutorial::getHEPMCTruth ( PHCompositeNode topNode)
private

This method gets all of the HEPMC truth particles from the node tree and stores them in a ROOT TTree. The HEPMC truth particles are what, for example, directly comes out of PYTHIA and thus gives you all of the associated parton information

Get the node from the node tree

If the node was not properly put on the tree, return

Could have some print statements for debugging with verbosity

You can iterate over the number of events in a hepmc event for pile up events where you have multiple hard scatterings per bunch crossing

Get the event

Get the event characteristics, inherited from HepMC classes

Get the parton info

Get the parton info as determined from HEPMC

Are there multiple partonic intercations in a p+p event

Get the PYTHIA signal process id identifying the 2-to-2 hard process

Loop over all the truth particles and get their information

Get each pythia particle characteristics

Fill the truth tree

Definition at line 221 of file AnaTutorial.cc.

View newest version in sPHENIX GitHub at line 221 of file AnaTutorial.cc

References PHHepMCGenEventMap::begin(), PHHepMCGenEventMap::end(), PHHepMCGenEvent::getEvent(), m_hepmctree, m_mpi, m_numparticlesinevent, m_partid1, m_partid2, m_process_id, m_truthenergy, m_trutheta, m_truthphi, m_truthpid, m_truthpt, m_truthpx, m_truthpy, m_truthpz, m_x1, m_x2, PHWHERE, and Fun4AllBase::Verbosity().

Referenced by process_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void AnaTutorial::getPHG4Truth ( PHCompositeNode topNode)
private

This function collects the truth PHG4 stable particles that are produced from PYTHIA, or some other event generator. These are the stable particles, e.g. there are not any (for example) partons here.

G4 truth particle node

Get the primary particle range

Loop over the G4 truth (stable) particles

Get this truth particle

Get this particles momentum, etc.

Check for nans

Fill the g4 truth tree

Definition at line 311 of file AnaTutorial.cc.

View newest version in sPHENIX GitHub at line 311 of file AnaTutorial.cc

References PHG4Particle::get_e(), PHG4Particle::get_pid(), PHG4Particle::get_px(), PHG4Particle::get_py(), PHG4Particle::get_pz(), PHG4TruthInfoContainer::GetPrimaryParticleRange(), m_truthenergy, m_trutheta, m_truthp, m_truthphi, m_truthpid, m_truthpt, m_truthpx, m_truthpy, m_truthpz, m_truthtree, and PHWHERE.

Referenced by process_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void AnaTutorial::getReconstructedJets ( PHCompositeNode topNode)
private

Get the reconstructed jets and store them in a tree

Get the reconstructed tower jets

Get the truth jets

Iterate over the reconstructed jets

Set the matched truth jet characteristics to 0

Check to make sure the truth jet node is available

Match the reconstructed jet to the closest truth jet in delta R space Iterate over the truth jets

Determine the distance in eta phi space between the reconstructed and truth jets

If this truth jet is closer than the previous truth jet, it is closer and thus should be considered the truth jet

Definition at line 584 of file AnaTutorial.cc.

View newest version in sPHENIX GitHub at line 584 of file AnaTutorial.cc

References JetMap::begin(), INTTVtxZ::dphi, JetMap::end(), Jet::get_e(), Jet::get_eta(), Jet::get_id(), Jet::get_p(), Jet::get_phi(), Jet::get_pt(), Jet::get_px(), Jet::get_py(), Jet::get_pz(), JetEvalStack::get_reco_eval(), m_dR, m_jetEvalStack, m_minjetpt, m_recojetenergy, m_recojeteta, m_recojetid, m_recojetp, m_recojetphi, m_recojetpt, m_recojetpx, m_recojetpy, m_recojetpz, m_recojettree, m_truthjetenergy, m_truthjeteta, m_truthjetid, m_truthjetp, m_truthjetphi, m_truthjetpt, m_truthjetpx, m_truthjetpy, m_truthjetpz, JetRecoEval::max_truth_jet_by_energy(), JetEvalStack::next_event(), PHWHERE, and Fun4AllBase::Verbosity().

Referenced by process_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void AnaTutorial::getTracks ( PHCompositeNode topNode)
private

Methods for grabbing the data.

This method gets the tracks as reconstructed from the tracker. It also compares the reconstructed track to its truth track counterpart as determined by the

SVTX tracks node

EvalStack for truth track matching

Get the track evaluator

Get the range for primary tracks

Get the reconstructed track info

Get truth track info that matches this reconstructed track

Definition at line 364 of file AnaTutorial.cc.

View newest version in sPHENIX GitHub at line 364 of file AnaTutorial.cc

References SvtxTrack::get_charge(), SvtxTrack::get_chisq(), SvtxTrack::get_dca(), PHG4Particle::get_e(), SvtxTrack::get_eta(), SvtxTrack::get_ndf(), SvtxTrack::get_phi(), PHG4Particle::get_pid(), PHG4Particle::get_px(), SvtxTrack::get_px(), PHG4Particle::get_py(), SvtxTrack::get_py(), PHG4Particle::get_pz(), SvtxTrack::get_pz(), SvtxEvalStack::get_track_eval(), SvtxTrack::get_x(), SvtxTrack::get_y(), SvtxTrack::get_z(), PHG4TruthInfoContainer::is_primary(), m_charge, m_chisq, m_dca, m_ndf, m_svtxEvalStack, m_tr_eta, m_tr_p, m_tr_phi, m_tr_pt, m_tr_px, m_tr_py, m_tr_pz, m_tr_x, m_tr_y, m_tr_z, m_tracktree, m_truth_is_primary, m_truthtracke, m_truthtracketa, m_truthtrackp, m_truthtrackphi, m_truthtrackpid, m_truthtrackpt, m_truthtrackpx, m_truthtrackpy, m_truthtrackpz, SvtxTrackEval::max_truth_particle_by_nclusters(), SvtxEvalStack::next_event(), PHWHERE, SvtxEvalStack::set_verbosity(), and Fun4AllBase::Verbosity().

Referenced by process_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void AnaTutorial::getTruthJets ( PHCompositeNode topNode)
private

Method that gets the truth jets and stores them in a tree

Get the truth jet node

Get reco jets associated to truth jets to study e.g. jet efficiencies

Iterate over the truth jets

Only collect truthjets above the _minjetpt cut

Iterate over the reconstructed jets

Determine the distance in eta phi space between the reconstructed and truth jets

If this truth jet is closer than the previous truth jet, it is closer and thus should be considered the truth jet

Fill the truthjet tree

Definition at line 447 of file AnaTutorial.cc.

View newest version in sPHENIX GitHub at line 447 of file AnaTutorial.cc

References JetTruthEval::all_truth_particles(), JetMap::begin(), INTTVtxZ::dphi, JetMap::end(), Jet::get_e(), Jet::get_eta(), Jet::get_id(), Jet::get_p(), Jet::get_phi(), Jet::get_pt(), Jet::get_px(), Jet::get_py(), Jet::get_pz(), JetEvalStack::get_truth_eval(), m_dR, m_jetEvalStack, m_minjetpt, m_recojetenergy, m_recojeteta, m_recojetid, m_recojetp, m_recojetphi, m_recojetpt, m_recojetpx, m_recojetpy, m_recojetpz, m_truthjetenergy, m_truthjeteta, m_truthjetp, m_truthjetphi, m_truthjetpt, m_truthjetpx, m_truthjetpy, m_truthjetpz, m_truthjettree, JetEvalStack::next_event(), PHWHERE, and Fun4AllBase::Verbosity().

Referenced by process_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int AnaTutorial::Init ( PHCompositeNode )
virtual

SubsysReco initialize processing method.

Initialize the module and prepare looping over events

Reimplemented from SubsysReco.

Definition at line 103 of file AnaTutorial.cc.

View newest version in sPHENIX GitHub at line 103 of file AnaTutorial.cc

References m_eta_phi_h, m_outfile, m_outfilename, m_phi_h, and Fun4AllBase::Verbosity().

+ Here is the call graph for this function:

void AnaTutorial::initializeTrees ( )
private
void AnaTutorial::initializeVariables ( )
private

This function initializes all of the member variables in this class so that there are no variables that might not be set before e.g. writing them to the output trees.

Definition at line 932 of file AnaTutorial.cc.

View newest version in sPHENIX GitHub at line 932 of file AnaTutorial.cc

References m_charge, m_chisq, m_dca, m_dR, m_eta_phi_h, m_mpi, m_ndf, m_numparticlesinevent, m_outfile, m_partid1, m_partid2, m_phi_h, m_process_id, m_recojetenergy, m_recojeteta, m_recojetid, m_recojetp, m_recojetphi, m_recojetpt, m_recojetpx, m_recojetpy, m_recojetpz, m_tr_eta, m_tr_p, m_tr_phi, m_tr_pt, m_tr_px, m_tr_py, m_tr_pz, m_tr_x, m_tr_y, m_tr_z, m_truth_is_primary, m_truthenergy, m_trutheta, m_truthjetenergy, m_truthjeteta, m_truthjetid, m_truthjetp, m_truthjetphi, m_truthjetpt, m_truthjetpx, m_truthjetpy, m_truthjetpz, m_truthp, m_truthphi, m_truthpid, m_truthpt, m_truthpx, m_truthpy, m_truthpz, m_truthtracke, m_truthtracketa, m_truthtrackp, m_truthtrackphi, m_truthtrackpid, m_truthtrackpt, m_truthtrackpx, m_truthtrackpy, m_truthtrackpz, m_x1, and m_x2.

Referenced by AnaTutorial().

+ Here is the caller graph for this function:

int AnaTutorial::process_event ( PHCompositeNode topNode)
virtual

SubsysReco event processing method.

Main workhorse function where each event is looped over and data from each event is collected from the node tree for analysis

Get the truth information

Get the tracks

Get the truth and reconstructed jets

Get calorimeter information

Reimplemented from SubsysReco.

Definition at line 122 of file AnaTutorial.cc.

View newest version in sPHENIX GitHub at line 122 of file AnaTutorial.cc

References Fun4AllReturnCodes::EVENT_OK, getEMCalClusters(), getHEPMCTruth(), getPHG4Truth(), getReconstructedJets(), getTracks(), getTruthJets(), m_analyzeClusters, m_analyzeJets, m_analyzeTracks, m_analyzeTruth, and Fun4AllBase::Verbosity().

+ Here is the call graph for this function:

void AnaTutorial::setMinClusPt ( float  mincluspt)
inline

Set the minimum cluster pT to cut on.

Definition at line 54 of file AnaTutorial.h.

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

References m_mincluspt.

void AnaTutorial::setMinJetPt ( float  minjetpt)
inline

Set the minimum jet pT to cut on.

Definition at line 51 of file AnaTutorial.h.

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

References m_minjetpt.

Referenced by Fun4All_AnaTutorial_DSTReadBack(), Fun4All_AnaTutorial_sPHENIX(), Fun4All_AnaTutorial_sPHENIX_Jets(), and Fun4All_G4_EICDetector_AnaTutorial().

+ Here is the caller graph for this function:

Member Data Documentation

bool AnaTutorial::m_analyzeClusters
private

A boolean for running over clusters.

Definition at line 79 of file AnaTutorial.h.

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

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

bool AnaTutorial::m_analyzeJets
private

A boolean for running over jets.

Definition at line 82 of file AnaTutorial.h.

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

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

bool AnaTutorial::m_analyzeTracks
private

A boolean for running over tracks.

Definition at line 76 of file AnaTutorial.h.

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

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

bool AnaTutorial::m_analyzeTruth
private

A boolean for collecting hepmc information.

Definition at line 85 of file AnaTutorial.h.

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

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

int AnaTutorial::m_charge
private

Definition at line 142 of file AnaTutorial.h.

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

Referenced by getTracks(), initializeTrees(), and initializeVariables().

double AnaTutorial::m_chisq
private

Definition at line 143 of file AnaTutorial.h.

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

Referenced by getTracks(), initializeTrees(), and initializeVariables().

double AnaTutorial::m_clusenergy
private

Cluster variables.

Definition at line 182 of file AnaTutorial.h.

View newest version in sPHENIX GitHub at line 182 of file AnaTutorial.h

Referenced by getEMCalClusters(), and initializeTrees().

double AnaTutorial::m_cluseta
private

Definition at line 183 of file AnaTutorial.h.

View newest version in sPHENIX GitHub at line 183 of file AnaTutorial.h

Referenced by getEMCalClusters(), and initializeTrees().

double AnaTutorial::m_clusphi
private

Definition at line 186 of file AnaTutorial.h.

View newest version in sPHENIX GitHub at line 186 of file AnaTutorial.h

Referenced by getEMCalClusters(), and initializeTrees().

double AnaTutorial::m_cluspt
private

Definition at line 185 of file AnaTutorial.h.

View newest version in sPHENIX GitHub at line 185 of file AnaTutorial.h

Referenced by getEMCalClusters(), and initializeTrees().

double AnaTutorial::m_cluspx
private

Definition at line 187 of file AnaTutorial.h.

View newest version in sPHENIX GitHub at line 187 of file AnaTutorial.h

Referenced by getEMCalClusters(), and initializeTrees().

double AnaTutorial::m_cluspy
private

Definition at line 188 of file AnaTutorial.h.

View newest version in sPHENIX GitHub at line 188 of file AnaTutorial.h

Referenced by getEMCalClusters(), and initializeTrees().

double AnaTutorial::m_cluspz
private

Definition at line 189 of file AnaTutorial.h.

View newest version in sPHENIX GitHub at line 189 of file AnaTutorial.h

Referenced by getEMCalClusters(), and initializeTrees().

TTree* AnaTutorial::m_clustertree
private

Definition at line 89 of file AnaTutorial.h.

View newest version in sPHENIX GitHub at line 89 of file AnaTutorial.h

Referenced by End(), getEMCalClusters(), and initializeTrees().

double AnaTutorial::m_clustheta
private

Definition at line 184 of file AnaTutorial.h.

View newest version in sPHENIX GitHub at line 184 of file AnaTutorial.h

Referenced by getEMCalClusters(), and initializeTrees().

double AnaTutorial::m_dca
private

Definition at line 145 of file AnaTutorial.h.

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

Referenced by getTracks(), initializeTrees(), and initializeVariables().

double AnaTutorial::m_dR
private

Definition at line 179 of file AnaTutorial.h.

View newest version in sPHENIX GitHub at line 179 of file AnaTutorial.h

Referenced by getReconstructedJets(), getTruthJets(), initializeTrees(), and initializeVariables().

double AnaTutorial::m_E_4x4
private

Definition at line 190 of file AnaTutorial.h.

View newest version in sPHENIX GitHub at line 190 of file AnaTutorial.h

Referenced by getEMCalClusters(), and initializeTrees().

TH2* AnaTutorial::m_eta_phi_h
private

Definition at line 96 of file AnaTutorial.h.

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

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

TTree* AnaTutorial::m_hepmctree
private

Definition at line 91 of file AnaTutorial.h.

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

Referenced by End(), getHEPMCTruth(), initializeTrees(), and ~AnaTutorial().

Fun4AllHistoManager* AnaTutorial::m_hm
private

Fun4All Histogram Manager tool.

Definition at line 67 of file AnaTutorial.h.

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

Referenced by ~AnaTutorial().

JetEvalStack* AnaTutorial::m_jetEvalStack = nullptr
private

Definition at line 99 of file AnaTutorial.h.

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

Referenced by getReconstructedJets(), and getTruthJets().

float AnaTutorial::m_mincluspt
private

A float for cutting on cluster pt.

Definition at line 73 of file AnaTutorial.h.

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

Referenced by getEMCalClusters(), and setMinClusPt().

float AnaTutorial::m_minjetpt
private

A float for cutting on jet pt.

Definition at line 70 of file AnaTutorial.h.

View newest version in sPHENIX GitHub at line 70 of file AnaTutorial.h

Referenced by getReconstructedJets(), getTruthJets(), and setMinJetPt().

int AnaTutorial::m_mpi
private

Definition at line 121 of file AnaTutorial.h.

View newest version in sPHENIX GitHub at line 121 of file AnaTutorial.h

Referenced by getHEPMCTruth(), initializeTrees(), and initializeVariables().

int AnaTutorial::m_ndf
private

Definition at line 144 of file AnaTutorial.h.

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

Referenced by getTracks(), initializeTrees(), and initializeVariables().

int AnaTutorial::m_numparticlesinevent
private

Definition at line 131 of file AnaTutorial.h.

View newest version in sPHENIX GitHub at line 131 of file AnaTutorial.h

Referenced by getHEPMCTruth(), initializeTrees(), and initializeVariables().

TFile* AnaTutorial::m_outfile
private

TFile to hold the following TTrees and histograms.

Definition at line 88 of file AnaTutorial.h.

View newest version in sPHENIX GitHub at line 88 of file AnaTutorial.h

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

std::string AnaTutorial::m_outfilename
private

String to contain the outfile name containing the trees.

Definition at line 64 of file AnaTutorial.h.

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

Referenced by Init().

int AnaTutorial::m_partid1
private

HEPMC Tree variables.

Make variables for the relevant trees

Definition at line 117 of file AnaTutorial.h.

View newest version in sPHENIX GitHub at line 117 of file AnaTutorial.h

Referenced by getHEPMCTruth(), initializeTrees(), and initializeVariables().

int AnaTutorial::m_partid2
private

Definition at line 118 of file AnaTutorial.h.

View newest version in sPHENIX GitHub at line 118 of file AnaTutorial.h

Referenced by getHEPMCTruth(), initializeTrees(), and initializeVariables().

TH1* AnaTutorial::m_phi_h
private

Definition at line 95 of file AnaTutorial.h.

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

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

int AnaTutorial::m_process_id
private

Definition at line 122 of file AnaTutorial.h.

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

Referenced by getHEPMCTruth(), initializeTrees(), and initializeVariables().

double AnaTutorial::m_recojetenergy
private

Definition at line 168 of file AnaTutorial.h.

View newest version in sPHENIX GitHub at line 168 of file AnaTutorial.h

Referenced by getReconstructedJets(), getTruthJets(), initializeTrees(), and initializeVariables().

double AnaTutorial::m_recojeteta
private

Definition at line 169 of file AnaTutorial.h.

View newest version in sPHENIX GitHub at line 169 of file AnaTutorial.h

Referenced by getReconstructedJets(), getTruthJets(), initializeTrees(), and initializeVariables().

int AnaTutorial::m_recojetid
private

Definition at line 162 of file AnaTutorial.h.

View newest version in sPHENIX GitHub at line 162 of file AnaTutorial.h

Referenced by getReconstructedJets(), getTruthJets(), initializeTrees(), and initializeVariables().

double AnaTutorial::m_recojetp
private

Definition at line 167 of file AnaTutorial.h.

View newest version in sPHENIX GitHub at line 167 of file AnaTutorial.h

Referenced by getReconstructedJets(), getTruthJets(), and initializeVariables().

double AnaTutorial::m_recojetphi
private

Definition at line 166 of file AnaTutorial.h.

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

Referenced by getReconstructedJets(), getTruthJets(), initializeTrees(), and initializeVariables().

double AnaTutorial::m_recojetpt
private

Reconstructed jet variables.

Definition at line 161 of file AnaTutorial.h.

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

Referenced by getReconstructedJets(), getTruthJets(), initializeTrees(), and initializeVariables().

double AnaTutorial::m_recojetpx
private

Definition at line 163 of file AnaTutorial.h.

View newest version in sPHENIX GitHub at line 163 of file AnaTutorial.h

Referenced by getReconstructedJets(), getTruthJets(), initializeTrees(), and initializeVariables().

double AnaTutorial::m_recojetpy
private

Definition at line 164 of file AnaTutorial.h.

View newest version in sPHENIX GitHub at line 164 of file AnaTutorial.h

Referenced by getReconstructedJets(), getTruthJets(), initializeTrees(), and initializeVariables().

double AnaTutorial::m_recojetpz
private

Definition at line 165 of file AnaTutorial.h.

View newest version in sPHENIX GitHub at line 165 of file AnaTutorial.h

Referenced by getReconstructedJets(), getTruthJets(), initializeTrees(), and initializeVariables().

TTree* AnaTutorial::m_recojettree
private

Definition at line 93 of file AnaTutorial.h.

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

Referenced by End(), getReconstructedJets(), initializeTrees(), and ~AnaTutorial().

SvtxEvalStack* AnaTutorial::m_svtxEvalStack = nullptr
private

Definition at line 98 of file AnaTutorial.h.

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

Referenced by getTracks().

double AnaTutorial::m_tr_eta
private

Definition at line 141 of file AnaTutorial.h.

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

Referenced by getTracks(), initializeTrees(), and initializeVariables().

double AnaTutorial::m_tr_p
private

Definition at line 138 of file AnaTutorial.h.

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

Referenced by getTracks(), initializeTrees(), and initializeVariables().

double AnaTutorial::m_tr_phi
private

Definition at line 140 of file AnaTutorial.h.

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

Referenced by getTracks(), initializeTrees(), and initializeVariables().

double AnaTutorial::m_tr_pt
private

Definition at line 139 of file AnaTutorial.h.

View newest version in sPHENIX GitHub at line 139 of file AnaTutorial.h

Referenced by getTracks(), initializeTrees(), and initializeVariables().

double AnaTutorial::m_tr_px
private

Track variables.

Definition at line 135 of file AnaTutorial.h.

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

Referenced by getTracks(), initializeTrees(), and initializeVariables().

double AnaTutorial::m_tr_py
private

Definition at line 136 of file AnaTutorial.h.

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

Referenced by getTracks(), initializeTrees(), and initializeVariables().

double AnaTutorial::m_tr_pz
private

Definition at line 137 of file AnaTutorial.h.

View newest version in sPHENIX GitHub at line 137 of file AnaTutorial.h

Referenced by getTracks(), initializeTrees(), and initializeVariables().

double AnaTutorial::m_tr_x
private

Definition at line 146 of file AnaTutorial.h.

View newest version in sPHENIX GitHub at line 146 of file AnaTutorial.h

Referenced by getTracks(), initializeTrees(), and initializeVariables().

double AnaTutorial::m_tr_y
private

Definition at line 147 of file AnaTutorial.h.

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

Referenced by getTracks(), initializeTrees(), and initializeVariables().

double AnaTutorial::m_tr_z
private

Definition at line 148 of file AnaTutorial.h.

View newest version in sPHENIX GitHub at line 148 of file AnaTutorial.h

Referenced by getTracks(), initializeTrees(), and initializeVariables().

TTree* AnaTutorial::m_tracktree
private

Definition at line 90 of file AnaTutorial.h.

View newest version in sPHENIX GitHub at line 90 of file AnaTutorial.h

Referenced by End(), getTracks(), initializeTrees(), and ~AnaTutorial().

int AnaTutorial::m_truth_is_primary
private

Definition at line 149 of file AnaTutorial.h.

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

Referenced by getTracks(), initializeTrees(), and initializeVariables().

double AnaTutorial::m_truthenergy
private

Definition at line 123 of file AnaTutorial.h.

View newest version in sPHENIX GitHub at line 123 of file AnaTutorial.h

Referenced by getHEPMCTruth(), getPHG4Truth(), initializeTrees(), and initializeVariables().

double AnaTutorial::m_trutheta
private

Definition at line 124 of file AnaTutorial.h.

View newest version in sPHENIX GitHub at line 124 of file AnaTutorial.h

Referenced by getHEPMCTruth(), getPHG4Truth(), initializeTrees(), and initializeVariables().

double AnaTutorial::m_truthjetenergy
private

Definition at line 175 of file AnaTutorial.h.

View newest version in sPHENIX GitHub at line 175 of file AnaTutorial.h

Referenced by getReconstructedJets(), getTruthJets(), initializeTrees(), and initializeVariables().

double AnaTutorial::m_truthjeteta
private

Definition at line 173 of file AnaTutorial.h.

View newest version in sPHENIX GitHub at line 173 of file AnaTutorial.h

Referenced by getReconstructedJets(), getTruthJets(), initializeTrees(), and initializeVariables().

int AnaTutorial::m_truthjetid
private

Definition at line 170 of file AnaTutorial.h.

View newest version in sPHENIX GitHub at line 170 of file AnaTutorial.h

Referenced by getReconstructedJets(), initializeTrees(), and initializeVariables().

double AnaTutorial::m_truthjetp
private

Definition at line 171 of file AnaTutorial.h.

View newest version in sPHENIX GitHub at line 171 of file AnaTutorial.h

Referenced by getReconstructedJets(), getTruthJets(), initializeTrees(), and initializeVariables().

double AnaTutorial::m_truthjetphi
private

Definition at line 172 of file AnaTutorial.h.

View newest version in sPHENIX GitHub at line 172 of file AnaTutorial.h

Referenced by getReconstructedJets(), getTruthJets(), initializeTrees(), and initializeVariables().

double AnaTutorial::m_truthjetpt
private

Definition at line 174 of file AnaTutorial.h.

View newest version in sPHENIX GitHub at line 174 of file AnaTutorial.h

Referenced by getReconstructedJets(), getTruthJets(), initializeTrees(), and initializeVariables().

double AnaTutorial::m_truthjetpx
private

Definition at line 176 of file AnaTutorial.h.

View newest version in sPHENIX GitHub at line 176 of file AnaTutorial.h

Referenced by getReconstructedJets(), getTruthJets(), initializeTrees(), and initializeVariables().

double AnaTutorial::m_truthjetpy
private

Definition at line 177 of file AnaTutorial.h.

View newest version in sPHENIX GitHub at line 177 of file AnaTutorial.h

Referenced by getReconstructedJets(), getTruthJets(), initializeTrees(), and initializeVariables().

double AnaTutorial::m_truthjetpz
private

Definition at line 178 of file AnaTutorial.h.

View newest version in sPHENIX GitHub at line 178 of file AnaTutorial.h

Referenced by getReconstructedJets(), getTruthJets(), initializeTrees(), and initializeVariables().

TTree* AnaTutorial::m_truthjettree
private

Definition at line 94 of file AnaTutorial.h.

View newest version in sPHENIX GitHub at line 94 of file AnaTutorial.h

Referenced by End(), getTruthJets(), initializeTrees(), and ~AnaTutorial().

double AnaTutorial::m_truthp
private

Definition at line 130 of file AnaTutorial.h.

View newest version in sPHENIX GitHub at line 130 of file AnaTutorial.h

Referenced by getPHG4Truth(), initializeTrees(), and initializeVariables().

double AnaTutorial::m_truthphi
private

Definition at line 125 of file AnaTutorial.h.

View newest version in sPHENIX GitHub at line 125 of file AnaTutorial.h

Referenced by getHEPMCTruth(), getPHG4Truth(), initializeTrees(), and initializeVariables().

int AnaTutorial::m_truthpid
private

Definition at line 132 of file AnaTutorial.h.

View newest version in sPHENIX GitHub at line 132 of file AnaTutorial.h

Referenced by getHEPMCTruth(), getPHG4Truth(), initializeTrees(), and initializeVariables().

double AnaTutorial::m_truthpt
private

Definition at line 129 of file AnaTutorial.h.

View newest version in sPHENIX GitHub at line 129 of file AnaTutorial.h

Referenced by getHEPMCTruth(), getPHG4Truth(), initializeTrees(), and initializeVariables().

double AnaTutorial::m_truthpx
private

Definition at line 126 of file AnaTutorial.h.

View newest version in sPHENIX GitHub at line 126 of file AnaTutorial.h

Referenced by getHEPMCTruth(), getPHG4Truth(), initializeTrees(), and initializeVariables().

double AnaTutorial::m_truthpy
private

Definition at line 127 of file AnaTutorial.h.

View newest version in sPHENIX GitHub at line 127 of file AnaTutorial.h

Referenced by getHEPMCTruth(), getPHG4Truth(), initializeTrees(), and initializeVariables().

double AnaTutorial::m_truthpz
private

Definition at line 128 of file AnaTutorial.h.

View newest version in sPHENIX GitHub at line 128 of file AnaTutorial.h

Referenced by getHEPMCTruth(), getPHG4Truth(), initializeTrees(), and initializeVariables().

double AnaTutorial::m_truthtracke
private

Definition at line 154 of file AnaTutorial.h.

View newest version in sPHENIX GitHub at line 154 of file AnaTutorial.h

Referenced by getTracks(), initializeTrees(), and initializeVariables().

double AnaTutorial::m_truthtracketa
private

Definition at line 157 of file AnaTutorial.h.

View newest version in sPHENIX GitHub at line 157 of file AnaTutorial.h

Referenced by getTracks(), initializeTrees(), and initializeVariables().

double AnaTutorial::m_truthtrackp
private

Definition at line 153 of file AnaTutorial.h.

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

Referenced by getTracks(), initializeTrees(), and initializeVariables().

double AnaTutorial::m_truthtrackphi
private

Definition at line 156 of file AnaTutorial.h.

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

Referenced by getTracks(), initializeTrees(), and initializeVariables().

int AnaTutorial::m_truthtrackpid
private

Definition at line 158 of file AnaTutorial.h.

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

Referenced by getTracks(), initializeTrees(), and initializeVariables().

double AnaTutorial::m_truthtrackpt
private

Definition at line 155 of file AnaTutorial.h.

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

Referenced by getTracks(), initializeTrees(), and initializeVariables().

double AnaTutorial::m_truthtrackpx
private

Definition at line 150 of file AnaTutorial.h.

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

Referenced by getTracks(), initializeTrees(), and initializeVariables().

double AnaTutorial::m_truthtrackpy
private

Definition at line 151 of file AnaTutorial.h.

View newest version in sPHENIX GitHub at line 151 of file AnaTutorial.h

Referenced by getTracks(), initializeTrees(), and initializeVariables().

double AnaTutorial::m_truthtrackpz
private

Definition at line 152 of file AnaTutorial.h.

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

Referenced by getTracks(), initializeTrees(), and initializeVariables().

TTree* AnaTutorial::m_truthtree
private

Definition at line 92 of file AnaTutorial.h.

View newest version in sPHENIX GitHub at line 92 of file AnaTutorial.h

Referenced by End(), getPHG4Truth(), and initializeTrees().

double AnaTutorial::m_x1
private

Definition at line 119 of file AnaTutorial.h.

View newest version in sPHENIX GitHub at line 119 of file AnaTutorial.h

Referenced by getHEPMCTruth(), initializeTrees(), and initializeVariables().

double AnaTutorial::m_x2
private

Definition at line 120 of file AnaTutorial.h.

View newest version in sPHENIX GitHub at line 120 of file AnaTutorial.h

Referenced by getHEPMCTruth(), initializeTrees(), and initializeVariables().


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