ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MyJetAnalysis Class Reference

#include <tutorials/blob/master/myjetanalysis/src/MyJetAnalysis.h>

+ Inheritance diagram for MyJetAnalysis:
+ Collaboration diagram for MyJetAnalysis:

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< JetEvalStackm_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")
 

Detailed Description

Definition at line 18 of file MyJetAnalysis.h.

View newest version in sPHENIX GitHub at line 18 of file MyJetAnalysis.h

Member Enumeration Documentation

anonymous enum
private
Enumerator:
kMaxMatchedTrack 

max number of tracks

Definition at line 94 of file MyJetAnalysis.h.

View newest version in sPHENIX GitHub at line 94 of file MyJetAnalysis.h

Constructor & Destructor Documentation

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

References m_trackdR, and m_trackpT.

MyJetAnalysis::~MyJetAnalysis ( )
virtual

Definition at line 63 of file MyJetAnalysis.cc.

View newest version in sPHENIX GitHub at line 63 of file MyJetAnalysis.cc

Member Function Documentation

int MyJetAnalysis::End ( PHCompositeNode )
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.

+ Here is the call graph for this function:

int MyJetAnalysis::Init ( PHCompositeNode )
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.

+ Here is the call graph for this function:

int MyJetAnalysis::InitRun ( PHCompositeNode )
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.

void MyJetAnalysis::setEtaRange ( double  low,
double  high 
)
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().

+ Here is the caller graph for this function:

void MyJetAnalysis::setPtRange ( double  low,
double  high 
)
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().

+ Here is the caller graph for this function:

void MyJetAnalysis::use_initial_vertex ( const bool  b = true)
inline

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.

Member Data Documentation

bool MyJetAnalysis::initial_vertex = false
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().

float MyJetAnalysis::m_e
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().

float MyJetAnalysis::m_eta
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().

std::pair<double, double> MyJetAnalysis::m_etaRange
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().

int MyJetAnalysis::m_event
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().

TH1* MyJetAnalysis::m_hInclusiveE
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().

TH1* MyJetAnalysis::m_hInclusiveEta
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().

TH1* MyJetAnalysis::m_hInclusivePhi
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().

int MyJetAnalysis::m_id
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().

std::shared_ptr<JetEvalStack> MyJetAnalysis::m_jetEvalStack
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().

int MyJetAnalysis::m_nComponent
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().

int MyJetAnalysis::m_nMatchedTrack
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().

std::string MyJetAnalysis::m_outputFileName
private

Definition at line 54 of file MyJetAnalysis.h.

View newest version in sPHENIX GitHub at line 54 of file MyJetAnalysis.h

Referenced by End(), and Init().

float MyJetAnalysis::m_phi
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().

float MyJetAnalysis::m_pt
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().

std::pair<double, double> MyJetAnalysis::m_ptRange
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().

std::string MyJetAnalysis::m_recoJetName
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().

TTree* MyJetAnalysis::m_T
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().

std::array<float, kMaxMatchedTrack> MyJetAnalysis::m_trackdR
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().

double MyJetAnalysis::m_trackJetMatchingRadius
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().

std::array<float, kMaxMatchedTrack> MyJetAnalysis::m_trackpT
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().

float MyJetAnalysis::m_truthE
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().

float MyJetAnalysis::m_truthEta
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().

int MyJetAnalysis::m_truthID
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().

std::string MyJetAnalysis::m_truthJetName
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().

int MyJetAnalysis::m_truthNComponent
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().

float MyJetAnalysis::m_truthPhi
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().

float MyJetAnalysis::m_truthPt
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().


The documentation for this class was generated from the following files: