Analysis Software
Documentation for sPHENIX simulation software
|
#include <analysis/blob/master/JS-Jet/JetValidation/src/EMJetVal.h>
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, double > | m_etaRange |
std::pair< double, double > | m_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") | |
Definition at line 24 of file EMJetVal.h.
View newest version in sPHENIX GitHub at line 24 of file EMJetVal.h
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
|
override |
Definition at line 99 of file EMJetVal.cc.
View newest version in sPHENIX GitHub at line 99 of file EMJetVal.cc
|
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().
|
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().
|
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().
|
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.
|
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.
|
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 105 of file EMJetVal.cc.
View newest version in sPHENIX GitHub at line 105 of file EMJetVal.cc
References _h_R04_theta_g_10_20, _h_R04_theta_sj_10_20, _h_R04_z_g_10_20, _h_R04_z_sj_10_20, _hjeteta_R04, _hjetpT_R04, _hmult_R04, _hmult_R04_pT_10_20GeV, correlation_theta_10_20, correlation_z_10_20, Fun4AllReturnCodes::EVENT_OK, 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, and outFile.
|
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.
|
overridevirtual |
Print out some info about this module.
what | can 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
|
overridevirtual |
Called for each event. This is where you do the real work.
create a loop to run over the jets -
get subjets
jet loop
event loop ends for pT
Reimplemented from SubsysReco.
Definition at line 190 of file EMJetVal.cc.
View newest version in sPHENIX GitHub at line 190 of file EMJetVal.cc
References _h_R04_theta_g_10_20, _h_R04_theta_sj_10_20, _h_R04_z_g_10_20, _h_R04_z_sj_10_20, _hjeteta_R04, _hjetpT_R04, _hmult_R04, _hmult_R04_pT_10_20GeV, antikt_algorithm, cambridge_algorithm, channel(), mvtx_utils::comp(), correlation_theta_10_20, correlation_z_10_20, TowerInfoContainer::encode_key(), RawTowerDefs::encode_towerid(), Fun4AllReturnCodes::EVENT_OK, CentralityInfo::get_centile(), TowerInfo::get_energy(), TowerBackground::get_Psi2(), CentralityInfo::get_quantity(), TowerInfoContainer::get_tower_at_channel(), TowerBackground::get_UE(), TowerBackground::get_v2(), TowerInfoContainer::getTowerEtaBin(), TowerInfoContainer::getTowerPhiBin(), RawTowerDefs::HCALIN, RawTowerDefs::HCALOUT, j, jet_reco(), m_centrality, m_doSeeds, m_doTruthJets, m_doUnsubJet, m_e, m_eta, m_event, m_id, m_impactparam, m_nComponent, m_nJet, m_phi, m_pt, m_recoJetName, m_T, m_truthJetName, particles, physmon_track_finding_ttbar::pt, and sorted_by_pt().
|
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.
|
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.
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().
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
Definition at line 104 of file EMJetVal.h.
View newest version in sPHENIX GitHub at line 104 of file EMJetVal.h
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
Definition at line 105 of file EMJetVal.h.
View newest version in sPHENIX GitHub at line 105 of file EMJetVal.h
|
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().
|
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().
|
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().
|
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().
|
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().
|
private |
Definition at line 131 of file EMJetVal.h.
View newest version in sPHENIX GitHub at line 131 of file EMJetVal.h
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
private |
Definition at line 112 of file EMJetVal.h.
View newest version in sPHENIX GitHub at line 112 of file EMJetVal.h