Analysis Software
Documentation for sPHENIX simulation software
|
Compares reconstructed jets to truth jets. More...
#include <analysis/blob/master/ForwardCalo/Flux_Return_Study/JetEnergies.h>
Public Member Functions | |
JetEnergies (const std::string &name="JETENERGIES", const std::string &recojetname="AntiKt_Tower_r0.3", const std::string &truthjetname="AntiKt_Truth_r0.3", const std::string &filename="g4eval_jets.root") | |
virtual | ~JetEnergies () |
int | Init (PHCompositeNode *topNode) |
int | InitRun (PHCompositeNode *topNode) |
int | process_event (PHCompositeNode *topNode) |
int | End (PHCompositeNode *topNode) |
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 | 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 | |
float | GetTotalEnergy (PHG4HitContainer *hit_object) |
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 |
JetEvalStack * | _jetevalstack |
bool | _strict |
unsigned int | _errors |
bool | _do_recojet_eval |
bool | _do_truthjet_eval |
TNtuple * | _ntp_recojet |
TNtuple * | _ntp_truthjet |
std::string | _filename |
TFile * | _tfile |
PHG4HitContainer * | _FluxReturn_plus_hit_container |
PHG4HitContainer * | _FluxReturn_minus_hit_container |
PHG4HitContainer * | _BH_1_hit_container |
PHG4HitContainer * | _BH_Forward_hit_container |
PHG4HitContainer * | _BH_Negative_hit_container |
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.
author Michael P. McCumber author David Kapukchyan
is from the old JetEvaluator.h file 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 36 of file JetEnergies.h.
View newest version in sPHENIX GitHub at line 36 of file JetEnergies.h
JetEnergies::JetEnergies | ( | const std::string & | name = "JETENERGIES" , |
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 26 of file JetEnergies.C.
View newest version in sPHENIX GitHub at line 26 of file JetEnergies.C
References verbosity.
|
inlinevirtual |
Definition at line 44 of file JetEnergies.h.
View newest version in sPHENIX GitHub at line 44 of file JetEnergies.h
|
virtual |
Called at the end of all processing.
Reimplemented from SubsysReco.
Definition at line 132 of file JetEnergies.C.
View newest version in sPHENIX GitHub at line 132 of file JetEnergies.C
References _do_recojet_eval, _do_truthjet_eval, _filename, _ievent, _jetevalstack, _ntp_recojet, _ntp_truthjet, _tfile, Fun4AllReturnCodes::EVENT_OK, and verbosity.
|
private |
dump the evaluator information into ntuple for external analysis
Definition at line 164 of file JetEnergies.C.
View newest version in sPHENIX GitHub at line 164 of file JetEnergies.C
References _BH_1_hit_container, _BH_Forward_hit_container, _BH_Negative_hit_container, _do_recojet_eval, _do_truthjet_eval, _FluxReturn_minus_hit_container, _FluxReturn_plus_hit_container, _ievent, _jetevalstack, _ntp_recojet, _ntp_truthjet, _recojetname, _truthjetname, JetMap::begin(), JetRecoEval::best_jet_from(), Acts::UnitConstants::e, efromtruth, JetMap::end(), 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, GetTotalEnergy(), Jetscape::gid, JetRecoEval::max_truth_jet_by_energy(), ActsTests::PropagationDatasets::phi, PHWHERE, physmon_track_finding_ttbar::pt, Jet::size_comp(), and verbosity.
Referenced by process_event().
|
private |
Definition at line 317 of file JetEnergies.C.
View newest version in sPHENIX GitHub at line 317 of file JetEnergies.C
References assert, PHG4Hit::get_edep(), and PHG4HitContainer::getHits().
Referenced by fillOutputNtuples().
|
virtual |
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 52 of file JetEnergies.C.
View newest version in sPHENIX GitHub at line 52 of file JetEnergies.C
References _do_recojet_eval, _do_truthjet_eval, _filename, _ievent, _ntp_recojet, _ntp_truthjet, _tfile, and Fun4AllReturnCodes::EVENT_OK.
|
virtual |
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.
Reimplemented from SubsysReco.
Definition at line 73 of file JetEnergies.C.
View newest version in sPHENIX GitHub at line 73 of file JetEnergies.C
References _BH_1_hit_container, _BH_Forward_hit_container, _BH_Negative_hit_container, _FluxReturn_minus_hit_container, _FluxReturn_plus_hit_container, and Fun4AllReturnCodes::EVENT_OK.
|
private |
print out the input object information (debugging upstream components)
Definition at line 154 of file JetEnergies.C.
View newest version in sPHENIX GitHub at line 154 of file JetEnergies.C
Referenced by process_event().
|
private |
print out the ancestry information for detailed diagnosis
Definition at line 159 of file JetEnergies.C.
View newest version in sPHENIX GitHub at line 159 of file JetEnergies.C
Referenced by process_event().
|
virtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
Definition at line 97 of file JetEnergies.C.
View newest version in sPHENIX GitHub at line 97 of file JetEnergies.C
References _ievent, _jetevalstack, _recojetname, _strict, _truthjetname, Fun4AllReturnCodes::EVENT_OK, fillOutputNtuples(), JetEvalStack::next_event(), printInputInfo(), printOutputInfo(), JetEvalStack::set_strict(), JetEvalStack::set_verbosity(), and verbosity.
|
inline |
Definition at line 51 of file JetEnergies.h.
View newest version in sPHENIX GitHub at line 51 of file JetEnergies.h
References _strict, and KFPMath::b.
|
private |
Definition at line 83 of file JetEnergies.h.
View newest version in sPHENIX GitHub at line 83 of file JetEnergies.h
Referenced by fillOutputNtuples(), and InitRun().
|
private |
Definition at line 84 of file JetEnergies.h.
View newest version in sPHENIX GitHub at line 84 of file JetEnergies.h
Referenced by fillOutputNtuples(), and InitRun().
|
private |
Definition at line 85 of file JetEnergies.h.
View newest version in sPHENIX GitHub at line 85 of file JetEnergies.h
Referenced by fillOutputNtuples(), and InitRun().
|
private |
Definition at line 70 of file JetEnergies.h.
View newest version in sPHENIX GitHub at line 70 of file JetEnergies.h
Referenced by End(), fillOutputNtuples(), and Init().
|
private |
Definition at line 71 of file JetEnergies.h.
View newest version in sPHENIX GitHub at line 71 of file JetEnergies.h
Referenced by End(), fillOutputNtuples(), and Init().
|
private |
Definition at line 68 of file JetEnergies.h.
View newest version in sPHENIX GitHub at line 68 of file JetEnergies.h
|
private |
Definition at line 77 of file JetEnergies.h.
View newest version in sPHENIX GitHub at line 77 of file JetEnergies.h
|
private |
Definition at line 82 of file JetEnergies.h.
View newest version in sPHENIX GitHub at line 82 of file JetEnergies.h
Referenced by fillOutputNtuples(), and InitRun().
|
private |
Definition at line 81 of file JetEnergies.h.
View newest version in sPHENIX GitHub at line 81 of file JetEnergies.h
Referenced by fillOutputNtuples(), and InitRun().
|
private |
Definition at line 60 of file JetEnergies.h.
View newest version in sPHENIX GitHub at line 60 of file JetEnergies.h
Referenced by End(), fillOutputNtuples(), Init(), and process_event().
|
private |
Definition at line 62 of file JetEnergies.h.
View newest version in sPHENIX GitHub at line 62 of file JetEnergies.h
Referenced by End(), fillOutputNtuples(), and process_event().
|
private |
Definition at line 73 of file JetEnergies.h.
View newest version in sPHENIX GitHub at line 73 of file JetEnergies.h
Referenced by End(), fillOutputNtuples(), and Init().
|
private |
Definition at line 74 of file JetEnergies.h.
View newest version in sPHENIX GitHub at line 74 of file JetEnergies.h
Referenced by End(), fillOutputNtuples(), and Init().
|
private |
Definition at line 57 of file JetEnergies.h.
View newest version in sPHENIX GitHub at line 57 of file JetEnergies.h
Referenced by fillOutputNtuples(), and process_event().
|
private |
Definition at line 67 of file JetEnergies.h.
View newest version in sPHENIX GitHub at line 67 of file JetEnergies.h
Referenced by process_event(), and set_strict().
|
private |
Definition at line 78 of file JetEnergies.h.
View newest version in sPHENIX GitHub at line 78 of file JetEnergies.h
|
private |
Definition at line 58 of file JetEnergies.h.
View newest version in sPHENIX GitHub at line 58 of file JetEnergies.h
Referenced by fillOutputNtuples(), and process_event().