Analysis Software
Documentation for sPHENIX simulation software
|
Compares reconstructed jets to truth jets. More...
#include <coresoftware/blob/master/simulation/g4simulation/g4eval/JetEvaluator.h>
Public Member Functions | |
JetEvaluator (const std::string &name="JETEVALUATOR", const std::string &recojetname="AntiKt_Tower_r0.3", const std::string &truthjetname="AntiKt_Truth_r0.3", const std::string &filename="g4eval_jets.root") | |
~JetEvaluator () override | |
int | Init (PHCompositeNode *topNode) override |
int | process_event (PHCompositeNode *topNode) override |
int | End (PHCompositeNode *topNode) override |
Called at the end of all processing. | |
void | set_strict (bool b) |
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 | printInputInfo (PHCompositeNode *topNode) |
print out the input object information (debugging upstream components) | |
void | fillOutputNtuples (PHCompositeNode *topNode) |
dump the evaluator information into ntuple for external analysis | |
void | printOutputInfo (PHCompositeNode *topNode) |
print out the ancestry information for detailed diagnosis | |
Private Attributes | |
std::string | _recojetname |
std::string | _truthjetname |
unsigned long | _ievent = 0 |
JetEvalStack * | _jetevalstack = nullptr |
bool | _strict = false |
bool | _do_recojet_eval = true |
bool | _do_truthjet_eval = true |
TNtuple * | _ntp_recojet = nullptr |
TNtuple * | _ntp_truthjet = nullptr |
std::string | _filename |
TFile * | _tfile = nullptr |
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") | |
Compares reconstructed jets to truth jets.
Plan: This module will trace the jet constituents to the greatest contributor Monte Carlo jet and then test one against the other.
Definition at line 27 of file JetEvaluator.h.
View newest version in sPHENIX GitHub at line 27 of file JetEvaluator.h
JetEvaluator::JetEvaluator | ( | const std::string & | name = "JETEVALUATOR" , |
const std::string & | recojetname = "AntiKt_Tower_r0.3" , |
||
const std::string & | truthjetname = "AntiKt_Truth_r0.3" , |
||
const std::string & | filename = "g4eval_jets.root" |
||
) |
Definition at line 24 of file JetEvaluator.cc.
View newest version in sPHENIX GitHub at line 24 of file JetEvaluator.cc
|
inlineoverride |
Definition at line 34 of file JetEvaluator.h.
View newest version in sPHENIX GitHub at line 34 of file JetEvaluator.h
|
overridevirtual |
Called at the end of all processing.
Reimplemented from SubsysReco.
Definition at line 95 of file JetEvaluator.cc.
View newest version in sPHENIX GitHub at line 95 of file JetEvaluator.cc
References _do_recojet_eval, _do_truthjet_eval, _filename, _ievent, _jetevalstack, _ntp_recojet, _ntp_truthjet, _tfile, Fun4AllReturnCodes::EVENT_OK, and Fun4AllBase::Verbosity().
|
private |
dump the evaluator information into ntuple for external analysis
Definition at line 136 of file JetEvaluator.cc.
View newest version in sPHENIX GitHub at line 136 of file JetEvaluator.cc
References _do_recojet_eval, _do_truthjet_eval, _ievent, _jetevalstack, _ntp_recojet, _ntp_truthjet, _recojetname, _truthjetname, JetRecoEval::best_jet_from(), Acts::UnitConstants::e, efromtruth, eta, Jet::get_e(), JetRecoEval::get_energy_contribution(), Jet::get_eta(), Jet::get_id(), Jet::get_phi(), Jet::get_pt(), JetEvalStack::get_reco_eval(), geta, Jetscape::gid, JetRecoEval::max_truth_jet_by_energy(), ActsTests::PropagationDatasets::phi, PHWHERE, physmon_track_finding_ttbar::pt, Jet::size_comp(), and Fun4AllBase::Verbosity().
Referenced by process_event().
|
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 34 of file JetEvaluator.cc.
View newest version in sPHENIX GitHub at line 34 of file JetEvaluator.cc
References _do_recojet_eval, _do_truthjet_eval, _filename, _ievent, _ntp_recojet, _ntp_truthjet, _tfile, and Fun4AllReturnCodes::EVENT_OK.
|
private |
print out the input object information (debugging upstream components)
Definition at line 124 of file JetEvaluator.cc.
View newest version in sPHENIX GitHub at line 124 of file JetEvaluator.cc
Referenced by process_event().
|
private |
print out the ancestry information for detailed diagnosis
Definition at line 130 of file JetEvaluator.cc.
View newest version in sPHENIX GitHub at line 130 of file JetEvaluator.cc
Referenced by process_event().
|
overridevirtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
Definition at line 59 of file JetEvaluator.cc.
View newest version in sPHENIX GitHub at line 59 of file JetEvaluator.cc
References _ievent, _jetevalstack, _recojetname, _strict, _truthjetname, Fun4AllReturnCodes::EVENT_OK, fillOutputNtuples(), JetEvalStack::next_event(), printInputInfo(), printOutputInfo(), JetEvalStack::set_strict(), JetEvalStack::set_verbosity(), and Fun4AllBase::Verbosity().
|
inline |
Definition at line 40 of file JetEvaluator.h.
View newest version in sPHENIX GitHub at line 40 of file JetEvaluator.h
References _strict, and KFPMath::b.
|
private |
Definition at line 55 of file JetEvaluator.h.
View newest version in sPHENIX GitHub at line 55 of file JetEvaluator.h
Referenced by End(), fillOutputNtuples(), and Init().
|
private |
Definition at line 56 of file JetEvaluator.h.
View newest version in sPHENIX GitHub at line 56 of file JetEvaluator.h
Referenced by End(), fillOutputNtuples(), and Init().
|
private |
Definition at line 62 of file JetEvaluator.h.
View newest version in sPHENIX GitHub at line 62 of file JetEvaluator.h
|
private |
Definition at line 46 of file JetEvaluator.h.
View newest version in sPHENIX GitHub at line 46 of file JetEvaluator.h
Referenced by End(), fillOutputNtuples(), Init(), and process_event().
|
private |
Definition at line 48 of file JetEvaluator.h.
View newest version in sPHENIX GitHub at line 48 of file JetEvaluator.h
Referenced by End(), fillOutputNtuples(), and process_event().
|
private |
Definition at line 58 of file JetEvaluator.h.
View newest version in sPHENIX GitHub at line 58 of file JetEvaluator.h
Referenced by End(), fillOutputNtuples(), and Init().
|
private |
Definition at line 59 of file JetEvaluator.h.
View newest version in sPHENIX GitHub at line 59 of file JetEvaluator.h
Referenced by End(), fillOutputNtuples(), and Init().
|
private |
Definition at line 43 of file JetEvaluator.h.
View newest version in sPHENIX GitHub at line 43 of file JetEvaluator.h
Referenced by fillOutputNtuples(), and process_event().
|
private |
Definition at line 53 of file JetEvaluator.h.
View newest version in sPHENIX GitHub at line 53 of file JetEvaluator.h
Referenced by process_event(), and set_strict().
|
private |
Definition at line 63 of file JetEvaluator.h.
View newest version in sPHENIX GitHub at line 63 of file JetEvaluator.h
|
private |
Definition at line 44 of file JetEvaluator.h.
View newest version in sPHENIX GitHub at line 44 of file JetEvaluator.h
Referenced by fillOutputNtuples(), and process_event().