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

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

+ Inheritance diagram for JetValidation:
+ Collaboration diagram for JetValidation:

Public Member Functions

 JetValidation (const std::string &recojetname="AntiKt_Tower_r04", const std::string &truthjetname="AntiKt_Truth_r04", const std::string &outputfilename="myjetanalysis.root")
 
 ~JetValidation () 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.
 

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.
 
int m_event
 eventwise quantities
 
int m_nTruthJet
 
int m_nJet
 
float m_totalCalo
 
int m_centrality
 
float m_impactparam
 
float m_zvtx
 
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 22 of file JetValidation.h.

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

Constructor & Destructor Documentation

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

Definition at line 51 of file JetValidation.cc.

View newest version in sPHENIX GitHub at line 51 of file JetValidation.cc

JetValidation::~JetValidation ( )
override

Definition at line 93 of file JetValidation.cc.

View newest version in sPHENIX GitHub at line 93 of file JetValidation.cc

Member Function Documentation

void JetValidation::doSeeds ( int  flag)
inline

Definition at line 50 of file JetValidation.h.

View newest version in sPHENIX GitHub at line 50 of file JetValidation.h

References m_doSeeds.

Referenced by Fun4All_JetVal().

+ Here is the caller graph for this function:

void JetValidation::doTruth ( int  flag)
inline

Definition at line 45 of file JetValidation.h.

View newest version in sPHENIX GitHub at line 45 of file JetValidation.h

References m_doTruthJets.

Referenced by Fun4All_JetVal().

+ Here is the caller graph for this function:

void JetValidation::doUnsub ( int  flag)
inline

Definition at line 55 of file JetValidation.h.

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

References m_doUnsubJet.

Referenced by Fun4All_JetVal().

+ Here is the caller graph for this function:

int JetValidation::End ( PHCompositeNode topNode)
overridevirtual

Called at the end of all processing.

Reimplemented from SubsysReco.

Definition at line 464 of file JetValidation.cc.

View newest version in sPHENIX GitHub at line 464 of file JetValidation.cc

References PHTFileServer::cd(), Fun4AllReturnCodes::EVENT_OK, PHTFileServer::get(), m_outputFileName, and m_T.

+ Here is the call graph for this function:

int JetValidation::EndRun ( const int  runnumber)
overridevirtual

Called at the end of each run.

Reimplemented from SubsysReco.

Definition at line 457 of file JetValidation.cc.

View newest version in sPHENIX GitHub at line 457 of file JetValidation.cc

References Fun4AllReturnCodes::EVENT_OK.

int JetValidation::Init ( PHCompositeNode topNode)
overridevirtual

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 99 of file JetValidation.cc.

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

References Fun4AllReturnCodes::EVENT_OK, PHTFileServer::get(), m_centrality, m_doSeeds, m_doTruthJets, m_doUnsubJet, m_e, m_e_rawseed, m_e_subseed, m_eta, m_eta_rawseed, m_eta_subseed, m_event, m_id, m_impactparam, m_nComponent, m_nJet, m_nTruthJet, m_outputFileName, 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_T, m_truthE, m_truthEta, m_truthID, m_truthNComponent, m_truthPhi, m_truthPt, m_unsub_pt, m_zvtx, and PHTFileServer::open().

+ Here is the call graph for this function:

int JetValidation::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 151 of file JetValidation.cc.

View newest version in sPHENIX GitHub at line 151 of file JetValidation.cc

References Fun4AllReturnCodes::EVENT_OK.

void JetValidation::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 482 of file JetValidation.cc.

View newest version in sPHENIX GitHub at line 482 of file JetValidation.cc

int JetValidation::process_event ( PHCompositeNode topNode)
overridevirtual
int JetValidation::Reset ( PHCompositeNode topNode)
overridevirtual

Reset.

Reimplemented from SubsysReco.

Definition at line 475 of file JetValidation.cc.

View newest version in sPHENIX GitHub at line 475 of file JetValidation.cc

References Fun4AllReturnCodes::EVENT_OK.

int JetValidation::ResetEvent ( PHCompositeNode topNode)
overridevirtual
void JetValidation::setEtaRange ( double  low,
double  high 
)
inline

Definition at line 33 of file JetValidation.h.

View newest version in sPHENIX GitHub at line 33 of file JetValidation.h

References m_etaRange.

Referenced by Fun4All_JetVal().

+ Here is the caller graph for this function:

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

Definition at line 39 of file JetValidation.h.

View newest version in sPHENIX GitHub at line 39 of file JetValidation.h

References m_ptRange.

Referenced by Fun4All_JetVal().

+ Here is the caller graph for this function:

Member Data Documentation

int JetValidation::m_centrality
private

Definition at line 110 of file JetValidation.h.

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

Referenced by Init(), and process_event().

int JetValidation::m_doSeeds
private

Definition at line 99 of file JetValidation.h.

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

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

int JetValidation::m_doTruthJets
private

Definition at line 98 of file JetValidation.h.

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

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

int JetValidation::m_doUnsubJet
private

Definition at line 100 of file JetValidation.h.

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

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

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

Definition at line 119 of file JetValidation.h.

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

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

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

Definition at line 139 of file JetValidation.h.

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

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

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

Definition at line 144 of file JetValidation.h.

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

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

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

Definition at line 117 of file JetValidation.h.

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

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

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

seed jets

Definition at line 136 of file JetValidation.h.

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

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

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

Definition at line 141 of file JetValidation.h.

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

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

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

Definition at line 96 of file JetValidation.h.

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

Referenced by process_event(), and setEtaRange().

int JetValidation::m_event
private

eventwise quantities

Definition at line 106 of file JetValidation.h.

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

Referenced by Init(), and process_event().

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

reconstructed jets

Definition at line 115 of file JetValidation.h.

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

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

float JetValidation::m_impactparam
private

Definition at line 111 of file JetValidation.h.

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

Referenced by Init(), and process_event().

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

Definition at line 116 of file JetValidation.h.

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

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

int JetValidation::m_nJet
private

Definition at line 108 of file JetValidation.h.

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

Referenced by Init(), and process_event().

int JetValidation::m_nTruthJet
private

Definition at line 107 of file JetValidation.h.

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

Referenced by Init(), and process_event().

std::string JetValidation::m_outputFileName
private

Definition at line 95 of file JetValidation.h.

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

Referenced by End(), and Init().

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

Definition at line 118 of file JetValidation.h.

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

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

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

Definition at line 137 of file JetValidation.h.

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

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

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

Definition at line 142 of file JetValidation.h.

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

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

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

Definition at line 120 of file JetValidation.h.

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

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

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

Definition at line 138 of file JetValidation.h.

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

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

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

Definition at line 143 of file JetValidation.h.

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

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

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

Definition at line 97 of file JetValidation.h.

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

Referenced by process_event(), and setPtRange().

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

Definition at line 140 of file JetValidation.h.

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

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

std::string JetValidation::m_recoJetName
private

Definition at line 93 of file JetValidation.h.

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

Referenced by process_event().

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

Definition at line 124 of file JetValidation.h.

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

Referenced by Init(), and ResetEvent().

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

Definition at line 145 of file JetValidation.h.

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

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

TTree* JetValidation::m_T
private

Output Tree variables.

Definition at line 103 of file JetValidation.h.

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

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

float JetValidation::m_totalCalo
private

Definition at line 109 of file JetValidation.h.

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

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

Definition at line 133 of file JetValidation.h.

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

Referenced by ResetEvent().

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

Definition at line 131 of file JetValidation.h.

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

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

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

Definition at line 129 of file JetValidation.h.

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

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

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

truth jets

Definition at line 127 of file JetValidation.h.

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

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

std::string JetValidation::m_truthJetName
private

Definition at line 94 of file JetValidation.h.

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

Referenced by process_event().

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

Definition at line 128 of file JetValidation.h.

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

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

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

Definition at line 130 of file JetValidation.h.

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

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

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

Definition at line 132 of file JetValidation.h.

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

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

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

unsubtracted jets

Definition at line 123 of file JetValidation.h.

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

Referenced by Init(), and ResetEvent().

float JetValidation::m_zvtx
private

Definition at line 112 of file JetValidation.h.

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

Referenced by Init(), and process_event().


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