Analysis Software
Documentation for sPHENIX simulation software
|
#include <analysis/blob/master/JS-Jet/JetValidation/src/JetValidation.h>
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, double > | m_etaRange |
std::pair< double, double > | m_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") | |
Definition at line 22 of file JetValidation.h.
View newest version in sPHENIX GitHub at line 22 of file JetValidation.h
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
|
override |
Definition at line 93 of file JetValidation.cc.
View newest version in sPHENIX GitHub at line 93 of file JetValidation.cc
|
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().
|
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().
|
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().
|
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.
|
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.
|
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().
|
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.
|
overridevirtual |
Print out some info about this module.
what | can 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
|
overridevirtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
Definition at line 158 of file JetValidation.cc.
View newest version in sPHENIX GitHub at line 158 of file JetValidation.cc
References GlobalVertexMap::begin(), JetMap::begin(), channel(), mvtx_utils::comp(), TowerInfoContainer::encode_key(), RawTowerDefs::encode_towerid(), JetMap::end(), Fun4AllReturnCodes::EVENT_OK, CentralityInfo::get_centile(), Jet::get_e(), TowerInfo::get_energy(), Jet::get_eta(), Jet::get_id(), Jet::get_phi(), TowerBackground::get_Psi2(), Jet::get_pt(), CentralityInfo::get_quantity(), TowerInfoContainer::get_tower_at_channel(), TowerBackground::get_UE(), TowerBackground::get_v2(), TowerInfoContainer::getTowerEtaBin(), TowerInfoContainer::getTowerPhiBin(), RawTowerDefs::HCALIN, RawTowerDefs::HCALOUT, 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_etaRange, m_event, m_id, m_impactparam, m_nComponent, m_nJet, m_nTruthJet, m_phi, m_phi_rawseed, m_phi_subseed, m_pt, m_pt_rawseed, m_pt_subseed, m_ptRange, m_rawseed_cut, m_recoJetName, m_subseed_cut, m_T, m_truthE, m_truthEta, m_truthID, m_truthJetName, m_truthNComponent, m_truthPhi, m_truthPt, m_zvtx, physmon_track_finding_ttbar::pt, and Jet::size_comp().
|
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.
|
overridevirtual |
Clean up internals after each event.
Reimplemented from SubsysReco.
Definition at line 422 of file JetValidation.cc.
View newest version in sPHENIX GitHub at line 422 of file JetValidation.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.
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().
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
private |
Definition at line 95 of file JetValidation.h.
View newest version in sPHENIX GitHub at line 95 of file JetValidation.h
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
private |
Definition at line 109 of file JetValidation.h.
View newest version in sPHENIX GitHub at line 109 of file JetValidation.h
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().