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

#include <analysis/blob/master/JS-Jet/JetValidation/src/EMJetVal.h>

+ Inheritance diagram for EMJetVal:
+ Collaboration diagram for EMJetVal:

Public Member Functions

 EMJetVal (const std::string &recojetname="AntiKt_Tower_r04", const std::string &truthjetname="AntiKt_Truth_r04", const std::string &outputfilename="myjetanalysis.root")
 
int retrieveEvent (const fastjet::PseudoJet &jet)
 
 ~EMJetVal () override
 
void setEtaRange (double low, double high)
 
void setPtRange (double low, double high)
 
void doTruth (int flag)
 
void doSeeds (int flag)
 
void doUnsub (int flag)
 
int Init (PHCompositeNode *topNode) override
 
int InitRun (PHCompositeNode *topNode) override
 
int process_event (PHCompositeNode *topNode) override
 
int ResetEvent (PHCompositeNode *topNode) override
 Clean up internals after each event.
 
int EndRun (const int runnumber) override
 Called at the end of each run.
 
int End (PHCompositeNode *topNode) override
 Called at the end of all processing.
 
int Reset (PHCompositeNode *) override
 Reset.
 
void Print (const std::string &what="ALL") const override
 
- Public Member Functions inherited from SubsysReco
 ~SubsysReco () override
 
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.
 

Public Attributes

std::vector< fastjet::PseudoJet > eventVector
 

Private Attributes

std::string m_recoJetName
 
std::string m_truthJetName
 
std::string m_outputFileName
 
std::pair< double, doublem_etaRange
 
std::pair< double, doublem_ptRange
 
int m_doTruthJets
 
int m_doSeeds
 
int m_doUnsubJet
 
TTree * m_T
 Output Tree variables.
 
TFile * outFile
 
TH1F * _h_R04_z_sj_10_20
 
TH1F * _h_R04_theta_sj_10_20
 
TH1F * _h_R04_z_g_10_20
 
TH1F * _h_R04_theta_g_10_20
 
TH1F * _hmult_R04
 
TH1F * _hmult_R04_pT_10_20GeV
 
TH1F * _hjetpT_R04
 
TH1F * _hjeteta_R04
 
TH2D * correlation_theta_10_20
 
TH2D * correlation_z_10_20
 
int m_event
 eventwise quantities
 
int m_nTruthJet
 
int m_nJet
 
float m_totalCalo
 
int m_centrality
 
float m_impactparam
 
std::vector< int > m_id
 reconstructed jets
 
std::vector< int > m_nComponent
 
std::vector< float > m_eta
 
std::vector< float > m_phi
 
std::vector< float > m_e
 
std::vector< float > m_pt
 
std::vector< float > m_unsub_pt
 unsubtracted jets
 
std::vector< float > m_sub_et
 
std::vector< int > m_truthID
 truth jets
 
std::vector< int > m_truthNComponent
 
std::vector< float > m_truthEta
 
std::vector< float > m_truthPhi
 
std::vector< float > m_truthE
 
std::vector< float > m_truthPt
 
std::vector< float > m_truthdR
 
std::vector< float > m_eta_rawseed
 seed jets
 
std::vector< float > m_phi_rawseed
 
std::vector< float > m_pt_rawseed
 
std::vector< float > m_e_rawseed
 
std::vector< int > m_rawseed_cut
 
std::vector< float > m_eta_subseed
 
std::vector< float > m_phi_subseed
 
std::vector< float > m_pt_subseed
 
std::vector< float > m_e_subseed
 
std::vector< int > m_subseed_cut
 

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 24 of file EMJetVal.h.

View newest version in sPHENIX GitHub at line 24 of file EMJetVal.h

Constructor & Destructor Documentation

EMJetVal::EMJetVal ( const std::string &  recojetname = "AntiKt_Tower_r04",
const std::string &  truthjetname = "AntiKt_Truth_r04",
const std::string &  outputfilename = "myjetanalysis.root" 
)

Definition at line 56 of file EMJetVal.cc.

View newest version in sPHENIX GitHub at line 56 of file EMJetVal.cc

EMJetVal::~EMJetVal ( )
override

Definition at line 99 of file EMJetVal.cc.

View newest version in sPHENIX GitHub at line 99 of file EMJetVal.cc

Member Function Documentation

void EMJetVal::doSeeds ( int  flag)
inline

Definition at line 58 of file EMJetVal.h.

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

Referenced by Fun4All_EMJetVal().

+ Here is the caller graph for this function:

void EMJetVal::doTruth ( int  flag)
inline

Definition at line 53 of file EMJetVal.h.

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

Referenced by Fun4All_EMJetVal().

+ Here is the caller graph for this function:

void EMJetVal::doUnsub ( int  flag)
inline

Definition at line 63 of file EMJetVal.h.

View newest version in sPHENIX GitHub at line 63 of file EMJetVal.h

Referenced by Fun4All_EMJetVal().

+ Here is the caller graph for this function:

int EMJetVal::End ( PHCompositeNode topNode)
overridevirtual

Called at the end of all processing.

Reimplemented from SubsysReco.

Definition at line 623 of file EMJetVal.cc.

View newest version in sPHENIX GitHub at line 623 of file EMJetVal.cc

References Fun4AllReturnCodes::EVENT_OK, and outFile.

int EMJetVal::EndRun ( const int  runnumber)
overridevirtual

Called at the end of each run.

Reimplemented from SubsysReco.

Definition at line 616 of file EMJetVal.cc.

View newest version in sPHENIX GitHub at line 616 of file EMJetVal.cc

References Fun4AllReturnCodes::EVENT_OK.

int EMJetVal::InitRun ( PHCompositeNode topNode)
overridevirtual

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. A place to book histograms which have to know the run number.

Reimplemented from SubsysReco.

Definition at line 183 of file EMJetVal.cc.

View newest version in sPHENIX GitHub at line 183 of file EMJetVal.cc

References Fun4AllReturnCodes::EVENT_OK.

void EMJetVal::Print ( const std::string &  what = "ALL") const
overridevirtual

Print out some info about this module.

Parameters
whatcan be used to specify what to print exactly.

Reimplemented from Fun4AllBase.

Definition at line 666 of file EMJetVal.cc.

View newest version in sPHENIX GitHub at line 666 of file EMJetVal.cc

int EMJetVal::Reset ( PHCompositeNode topNode)
overridevirtual

Reset.

Reimplemented from SubsysReco.

Definition at line 659 of file EMJetVal.cc.

View newest version in sPHENIX GitHub at line 659 of file EMJetVal.cc

References Fun4AllReturnCodes::EVENT_OK.

int EMJetVal::ResetEvent ( PHCompositeNode topNode)
overridevirtual

Clean up internals after each event.

Reimplemented from SubsysReco.

Definition at line 581 of file EMJetVal.cc.

View newest version in sPHENIX GitHub at line 581 of file EMJetVal.cc

References Fun4AllReturnCodes::EVENT_OK, m_e, m_e_rawseed, m_e_subseed, m_eta, m_eta_rawseed, m_eta_subseed, m_id, m_nComponent, m_phi, m_phi_rawseed, m_phi_subseed, m_pt, m_pt_rawseed, m_pt_subseed, m_rawseed_cut, m_sub_et, m_subseed_cut, m_truthdR, m_truthE, m_truthEta, m_truthID, m_truthNComponent, m_truthPhi, m_truthPt, and m_unsub_pt.

int EMJetVal::retrieveEvent ( const fastjet::PseudoJet &  jet)

Definition at line 175 of file EMJetVal.cc.

View newest version in sPHENIX GitHub at line 175 of file EMJetVal.cc

References eventVector.

void EMJetVal::setEtaRange ( double  low,
double  high 
)
inline

Definition at line 41 of file EMJetVal.h.

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

Referenced by Fun4All_EMJetVal().

+ Here is the caller graph for this function:

void EMJetVal::setPtRange ( double  low,
double  high 
)
inline

Definition at line 47 of file EMJetVal.h.

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

Referenced by Fun4All_EMJetVal().

+ Here is the caller graph for this function:

Member Data Documentation

TH1F* EMJetVal::_h_R04_theta_g_10_20
private

Definition at line 116 of file EMJetVal.h.

View newest version in sPHENIX GitHub at line 116 of file EMJetVal.h

Referenced by Init(), and process_event().

TH1F* EMJetVal::_h_R04_theta_sj_10_20
private

Definition at line 114 of file EMJetVal.h.

View newest version in sPHENIX GitHub at line 114 of file EMJetVal.h

Referenced by Init(), and process_event().

TH1F* EMJetVal::_h_R04_z_g_10_20
private

Definition at line 115 of file EMJetVal.h.

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

Referenced by Init(), and process_event().

TH1F* EMJetVal::_h_R04_z_sj_10_20
private

Definition at line 113 of file EMJetVal.h.

View newest version in sPHENIX GitHub at line 113 of file EMJetVal.h

Referenced by Init(), and process_event().

TH1F* EMJetVal::_hjeteta_R04
private

Definition at line 121 of file EMJetVal.h.

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

Referenced by Init(), and process_event().

TH1F* EMJetVal::_hjetpT_R04
private

Definition at line 120 of file EMJetVal.h.

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

Referenced by Init(), and process_event().

TH1F* EMJetVal::_hmult_R04
private

Definition at line 117 of file EMJetVal.h.

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

Referenced by Init(), and process_event().

TH1F* EMJetVal::_hmult_R04_pT_10_20GeV
private

Definition at line 119 of file EMJetVal.h.

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

Referenced by Init(), and process_event().

TH2D* EMJetVal::correlation_theta_10_20
private

Definition at line 123 of file EMJetVal.h.

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

Referenced by Init(), and process_event().

TH2D* EMJetVal::correlation_z_10_20
private

Definition at line 124 of file EMJetVal.h.

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

Referenced by Init(), and process_event().

std::vector<fastjet::PseudoJet> EMJetVal::eventVector

Definition at line 32 of file EMJetVal.h.

View newest version in sPHENIX GitHub at line 32 of file EMJetVal.h

Referenced by retrieveEvent().

int EMJetVal::m_centrality
private

Definition at line 132 of file EMJetVal.h.

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

Referenced by Init(), and process_event().

int EMJetVal::m_doSeeds
private

Definition at line 107 of file EMJetVal.h.

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

Referenced by Init(), and process_event().

int EMJetVal::m_doTruthJets
private

Definition at line 106 of file EMJetVal.h.

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

Referenced by Init(), and process_event().

int EMJetVal::m_doUnsubJet
private

Definition at line 108 of file EMJetVal.h.

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

Referenced by Init(), and process_event().

std::vector<float> EMJetVal::m_e
private

Definition at line 140 of file EMJetVal.h.

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

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

std::vector<float> EMJetVal::m_e_rawseed
private

Definition at line 160 of file EMJetVal.h.

View newest version in sPHENIX GitHub at line 160 of file EMJetVal.h

Referenced by Init(), and ResetEvent().

std::vector<float> EMJetVal::m_e_subseed
private

Definition at line 165 of file EMJetVal.h.

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

Referenced by Init(), and ResetEvent().

std::vector<float> EMJetVal::m_eta
private

Definition at line 138 of file EMJetVal.h.

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

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

std::vector<float> EMJetVal::m_eta_rawseed
private

seed jets

Definition at line 157 of file EMJetVal.h.

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

Referenced by Init(), and ResetEvent().

std::vector<float> EMJetVal::m_eta_subseed
private

Definition at line 162 of file EMJetVal.h.

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

Referenced by Init(), and ResetEvent().

std::pair<double, double> EMJetVal::m_etaRange
private

Definition at line 104 of file EMJetVal.h.

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

int EMJetVal::m_event
private

eventwise quantities

Definition at line 128 of file EMJetVal.h.

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

Referenced by Init(), and process_event().

std::vector<int> EMJetVal::m_id
private

reconstructed jets

Definition at line 136 of file EMJetVal.h.

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

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

float EMJetVal::m_impactparam
private

Definition at line 133 of file EMJetVal.h.

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

Referenced by Init(), and process_event().

std::vector<int> EMJetVal::m_nComponent
private

Definition at line 137 of file EMJetVal.h.

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

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

int EMJetVal::m_nJet
private

Definition at line 130 of file EMJetVal.h.

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

Referenced by Init(), and process_event().

int EMJetVal::m_nTruthJet
private

Definition at line 129 of file EMJetVal.h.

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

Referenced by Init().

std::string EMJetVal::m_outputFileName
private

Definition at line 103 of file EMJetVal.h.

View newest version in sPHENIX GitHub at line 103 of file EMJetVal.h

Referenced by Init().

std::vector<float> EMJetVal::m_phi
private

Definition at line 139 of file EMJetVal.h.

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

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

std::vector<float> EMJetVal::m_phi_rawseed
private

Definition at line 158 of file EMJetVal.h.

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

Referenced by Init(), and ResetEvent().

std::vector<float> EMJetVal::m_phi_subseed
private

Definition at line 163 of file EMJetVal.h.

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

Referenced by Init(), and ResetEvent().

std::vector<float> EMJetVal::m_pt
private

Definition at line 141 of file EMJetVal.h.

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

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

std::vector<float> EMJetVal::m_pt_rawseed
private

Definition at line 159 of file EMJetVal.h.

View newest version in sPHENIX GitHub at line 159 of file EMJetVal.h

Referenced by Init(), and ResetEvent().

std::vector<float> EMJetVal::m_pt_subseed
private

Definition at line 164 of file EMJetVal.h.

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

Referenced by Init(), and ResetEvent().

std::pair<double, double> EMJetVal::m_ptRange
private

Definition at line 105 of file EMJetVal.h.

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

std::vector<int> EMJetVal::m_rawseed_cut
private

Definition at line 161 of file EMJetVal.h.

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

Referenced by Init(), and ResetEvent().

std::string EMJetVal::m_recoJetName
private

Definition at line 101 of file EMJetVal.h.

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

Referenced by process_event().

std::vector<float> EMJetVal::m_sub_et
private

Definition at line 145 of file EMJetVal.h.

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

Referenced by Init(), and ResetEvent().

std::vector<int> EMJetVal::m_subseed_cut
private

Definition at line 166 of file EMJetVal.h.

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

Referenced by Init(), and ResetEvent().

TTree* EMJetVal::m_T
private

Output Tree variables.

Definition at line 111 of file EMJetVal.h.

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

Referenced by Init(), and process_event().

float EMJetVal::m_totalCalo
private

Definition at line 131 of file EMJetVal.h.

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

std::vector<float> EMJetVal::m_truthdR
private

Definition at line 154 of file EMJetVal.h.

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

Referenced by ResetEvent().

std::vector<float> EMJetVal::m_truthE
private

Definition at line 152 of file EMJetVal.h.

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

Referenced by Init(), and ResetEvent().

std::vector<float> EMJetVal::m_truthEta
private

Definition at line 150 of file EMJetVal.h.

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

Referenced by Init(), and ResetEvent().

std::vector<int> EMJetVal::m_truthID
private

truth jets

Definition at line 148 of file EMJetVal.h.

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

Referenced by Init(), and ResetEvent().

std::string EMJetVal::m_truthJetName
private

Definition at line 102 of file EMJetVal.h.

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

Referenced by process_event().

std::vector<int> EMJetVal::m_truthNComponent
private

Definition at line 149 of file EMJetVal.h.

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

Referenced by Init(), and ResetEvent().

std::vector<float> EMJetVal::m_truthPhi
private

Definition at line 151 of file EMJetVal.h.

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

Referenced by Init(), and ResetEvent().

std::vector<float> EMJetVal::m_truthPt
private

Definition at line 153 of file EMJetVal.h.

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

Referenced by Init(), and ResetEvent().

std::vector<float> EMJetVal::m_unsub_pt
private

unsubtracted jets

Definition at line 144 of file EMJetVal.h.

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

Referenced by Init(), and ResetEvent().

TFile* EMJetVal::outFile
private

Definition at line 112 of file EMJetVal.h.

View newest version in sPHENIX GitHub at line 112 of file EMJetVal.h

Referenced by End(), and Init().


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