ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
#include <tutorials/blob/master/myjetanalysis/src/MyJetAnalysis.h>
Public Member Functions | |
MyJetAnalysis (const std::string &recojetname="AntiKt_Tower_r04", const std::string &truthjetname="AntiKt_Truth_r04", const std::string &outputfilename="myjetanalysis.root") | |
virtual | ~MyJetAnalysis () |
void | setEtaRange (double low, double high) |
set eta range | |
void | setPtRange (double low, double high) |
set eta range | |
void | use_initial_vertex (const bool b=true) |
int | Init (PHCompositeNode *topNode) |
int | InitRun (PHCompositeNode *topNode) |
int | process_event (PHCompositeNode *topNode) |
int | End (PHCompositeNode *topNode) |
Called at the end of all processing. | |
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 Types | |
enum | { kMaxMatchedTrack = 1000 } |
Private Attributes | |
std::shared_ptr< JetEvalStack > | m_jetEvalStack |
cache the jet evaluation modules | |
std::string | m_recoJetName |
std::string | m_truthJetName |
std::string | m_outputFileName |
std::pair< double, double > | m_etaRange |
eta range | |
std::pair< double, double > | m_ptRange |
pT range | |
bool | initial_vertex = false |
flag to use initial vertex in track evaluator | |
double | m_trackJetMatchingRadius |
max track-jet matching radius | |
TH1 * | m_hInclusiveE |
Output histograms. | |
TH1 * | m_hInclusiveEta |
TH1 * | m_hInclusivePhi |
TTree * | m_T |
Output Tree variables. | |
int | m_event |
int | m_id |
int | m_nComponent |
float | m_eta |
float | m_phi |
float | m_e |
float | m_pt |
int | m_truthID |
int | m_truthNComponent |
float | m_truthEta |
float | m_truthPhi |
float | m_truthE |
float | m_truthPt |
int | m_nMatchedTrack |
number of matched tracks | |
std::array< float, kMaxMatchedTrack > | m_trackdR |
std::array< float, kMaxMatchedTrack > | m_trackpT |
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 = INT_MAX - 10 } |
Protected Member Functions inherited from SubsysReco | |
SubsysReco (const std::string &name="NONAME") | |
Definition at line 18 of file MyJetAnalysis.h.
View newest version in sPHENIX GitHub at line 18 of file MyJetAnalysis.h
|
private |
Definition at line 94 of file MyJetAnalysis.h.
View newest version in sPHENIX GitHub at line 94 of file MyJetAnalysis.h
MyJetAnalysis::MyJetAnalysis | ( | const std::string & | recojetname = "AntiKt_Tower_r04" , |
const std::string & | truthjetname = "AntiKt_Truth_r04" , |
||
const std::string & | outputfilename = "myjetanalysis.root" |
||
) |
Definition at line 32 of file MyJetAnalysis.cc.
View newest version in sPHENIX GitHub at line 32 of file MyJetAnalysis.cc
|
virtual |
Definition at line 63 of file MyJetAnalysis.cc.
View newest version in sPHENIX GitHub at line 63 of file MyJetAnalysis.cc
|
virtual |
Called at the end of all processing.
Reimplemented from SubsysReco.
Definition at line 130 of file MyJetAnalysis.cc.
View newest version in sPHENIX GitHub at line 130 of file MyJetAnalysis.cc
References PHTFileServer::cd(), Fun4AllReturnCodes::EVENT_OK, PHTFileServer::get(), m_hInclusiveE, m_hInclusiveEta, m_hInclusivePhi, m_outputFileName, and m_T.
|
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 67 of file MyJetAnalysis.cc.
View newest version in sPHENIX GitHub at line 67 of file MyJetAnalysis.cc
References Fun4AllReturnCodes::EVENT_OK, PHTFileServer::get(), m_e, m_eta, m_event, m_hInclusiveE, m_hInclusiveEta, m_hInclusivePhi, m_id, m_nComponent, m_nMatchedTrack, m_outputFileName, m_phi, M_PI, m_pt, m_recoJetName, m_T, m_trackdR, m_trackpT, m_truthE, m_truthEta, m_truthID, m_truthNComponent, m_truthPhi, m_truthPt, PHTFileServer::open(), Fun4AllBase::Verbosity(), and Fun4AllBase::VERBOSITY_SOME.
|
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 143 of file MyJetAnalysis.cc.
View newest version in sPHENIX GitHub at line 143 of file MyJetAnalysis.cc
References Fun4AllReturnCodes::EVENT_OK, initial_vertex, m_jetEvalStack, m_recoJetName, and m_truthJetName.
|
virtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
Definition at line 150 of file MyJetAnalysis.cc.
View newest version in sPHENIX GitHub at line 150 of file MyJetAnalysis.cc
References SvtxTrackMap::begin(), JetMap::begin(), SvtxTrackMap::end(), JetMap::end(), Fun4AllReturnCodes::EVENT_OK, g4zmq::exit(), Jet::get_e(), Jet::get_eta(), Jet::get_id(), Jet::get_phi(), Jet::get_pt(), SvtxTrack::get_px(), SvtxTrack::get_py(), SvtxTrack::get_pz(), Jet::identify(), kMaxMatchedTrack, m_e, m_eta, m_etaRange, m_event, m_hInclusiveE, m_hInclusiveEta, m_hInclusivePhi, m_id, m_jetEvalStack, m_nComponent, m_nMatchedTrack, m_phi, m_pt, m_ptRange, m_recoJetName, m_T, m_trackdR, m_trackJetMatchingRadius, m_trackpT, m_truthE, m_truthEta, m_truthID, m_truthNComponent, m_truthPhi, m_truthPt, JetRecoEval::max_truth_jet_by_energy(), Jet::size_comp(), track, v, Fun4AllBase::Verbosity(), Fun4AllBase::VERBOSITY_MORE, and Fun4AllBase::VERBOSITY_SOME.
|
inline |
set eta range
Definition at line 30 of file MyJetAnalysis.h.
View newest version in sPHENIX GitHub at line 30 of file MyJetAnalysis.h
References m_etaRange.
Referenced by Fun4All_JetAna().
|
inline |
set eta range
Definition at line 37 of file MyJetAnalysis.h.
View newest version in sPHENIX GitHub at line 37 of file MyJetAnalysis.h
References m_ptRange.
Referenced by Fun4All_JetAna().
Definition at line 42 of file MyJetAnalysis.h.
View newest version in sPHENIX GitHub at line 42 of file MyJetAnalysis.h
References b, and initial_vertex.
|
private |
flag to use initial vertex in track evaluator
Definition at line 63 of file MyJetAnalysis.h.
View newest version in sPHENIX GitHub at line 63 of file MyJetAnalysis.h
Referenced by InitRun(), and use_initial_vertex().
|
private |
Definition at line 81 of file MyJetAnalysis.h.
View newest version in sPHENIX GitHub at line 81 of file MyJetAnalysis.h
Referenced by Init(), and process_event().
|
private |
Definition at line 79 of file MyJetAnalysis.h.
View newest version in sPHENIX GitHub at line 79 of file MyJetAnalysis.h
Referenced by Init(), and process_event().
|
private |
eta range
Definition at line 57 of file MyJetAnalysis.h.
View newest version in sPHENIX GitHub at line 57 of file MyJetAnalysis.h
Referenced by process_event(), and setEtaRange().
|
private |
Definition at line 76 of file MyJetAnalysis.h.
View newest version in sPHENIX GitHub at line 76 of file MyJetAnalysis.h
Referenced by Init(), and process_event().
|
private |
Output histograms.
Definition at line 69 of file MyJetAnalysis.h.
View newest version in sPHENIX GitHub at line 69 of file MyJetAnalysis.h
Referenced by End(), Init(), and process_event().
|
private |
Definition at line 70 of file MyJetAnalysis.h.
View newest version in sPHENIX GitHub at line 70 of file MyJetAnalysis.h
Referenced by End(), Init(), and process_event().
|
private |
Definition at line 71 of file MyJetAnalysis.h.
View newest version in sPHENIX GitHub at line 71 of file MyJetAnalysis.h
Referenced by End(), Init(), and process_event().
|
private |
Definition at line 77 of file MyJetAnalysis.h.
View newest version in sPHENIX GitHub at line 77 of file MyJetAnalysis.h
Referenced by Init(), and process_event().
|
private |
cache the jet evaluation modules
Definition at line 50 of file MyJetAnalysis.h.
View newest version in sPHENIX GitHub at line 50 of file MyJetAnalysis.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 78 of file MyJetAnalysis.h.
View newest version in sPHENIX GitHub at line 78 of file MyJetAnalysis.h
Referenced by Init(), and process_event().
|
private |
number of matched tracks
Definition at line 92 of file MyJetAnalysis.h.
View newest version in sPHENIX GitHub at line 92 of file MyJetAnalysis.h
Referenced by Init(), and process_event().
|
private |
Definition at line 54 of file MyJetAnalysis.h.
View newest version in sPHENIX GitHub at line 54 of file MyJetAnalysis.h
|
private |
Definition at line 80 of file MyJetAnalysis.h.
View newest version in sPHENIX GitHub at line 80 of file MyJetAnalysis.h
Referenced by Init(), and process_event().
|
private |
Definition at line 82 of file MyJetAnalysis.h.
View newest version in sPHENIX GitHub at line 82 of file MyJetAnalysis.h
Referenced by Init(), and process_event().
|
private |
pT range
Definition at line 60 of file MyJetAnalysis.h.
View newest version in sPHENIX GitHub at line 60 of file MyJetAnalysis.h
Referenced by process_event(), and setPtRange().
|
private |
Definition at line 52 of file MyJetAnalysis.h.
View newest version in sPHENIX GitHub at line 52 of file MyJetAnalysis.h
Referenced by Init(), InitRun(), and process_event().
|
private |
Output Tree variables.
Definition at line 74 of file MyJetAnalysis.h.
View newest version in sPHENIX GitHub at line 74 of file MyJetAnalysis.h
Referenced by End(), Init(), and process_event().
|
private |
Definition at line 99 of file MyJetAnalysis.h.
View newest version in sPHENIX GitHub at line 99 of file MyJetAnalysis.h
Referenced by Init(), MyJetAnalysis(), and process_event().
|
private |
max track-jet matching radius
Definition at line 66 of file MyJetAnalysis.h.
View newest version in sPHENIX GitHub at line 66 of file MyJetAnalysis.h
Referenced by process_event().
|
private |
Definition at line 100 of file MyJetAnalysis.h.
View newest version in sPHENIX GitHub at line 100 of file MyJetAnalysis.h
Referenced by Init(), MyJetAnalysis(), and process_event().
|
private |
Definition at line 88 of file MyJetAnalysis.h.
View newest version in sPHENIX GitHub at line 88 of file MyJetAnalysis.h
Referenced by Init(), and process_event().
|
private |
Definition at line 86 of file MyJetAnalysis.h.
View newest version in sPHENIX GitHub at line 86 of file MyJetAnalysis.h
Referenced by Init(), and process_event().
|
private |
Definition at line 84 of file MyJetAnalysis.h.
View newest version in sPHENIX GitHub at line 84 of file MyJetAnalysis.h
Referenced by Init(), and process_event().
|
private |
Definition at line 53 of file MyJetAnalysis.h.
View newest version in sPHENIX GitHub at line 53 of file MyJetAnalysis.h
Referenced by InitRun().
|
private |
Definition at line 85 of file MyJetAnalysis.h.
View newest version in sPHENIX GitHub at line 85 of file MyJetAnalysis.h
Referenced by Init(), and process_event().
|
private |
Definition at line 87 of file MyJetAnalysis.h.
View newest version in sPHENIX GitHub at line 87 of file MyJetAnalysis.h
Referenced by Init(), and process_event().
|
private |
Definition at line 89 of file MyJetAnalysis.h.
View newest version in sPHENIX GitHub at line 89 of file MyJetAnalysis.h
Referenced by Init(), and process_event().