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

jet reco with user def inputs and algos More...

#include <fun4all_coresoftware/blob/master/simulation/g4simulation/g4jets/JetReco.h>

+ Inheritance diagram for JetReco:
+ Collaboration diagram for JetReco:

Public Member Functions

 JetReco (const std::string &name="JetReco")
 
 ~JetReco () override
 
int Init (PHCompositeNode *topNode) override
 
int InitRun (PHCompositeNode *topNode) override
 
int process_event (PHCompositeNode *topNode) override
 
int End (PHCompositeNode *topNode) override
 Called at the end of all processing.
 
void add_input (JetInput *input)
 
void add_algo (JetAlgo *algo, std::string output)
 
void set_algo_node (const std::string &algonode)
 
void set_input_node (const std::string &inputnode)
 
- 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

int CreateNodes (PHCompositeNode *topNode)
 
void FillJetNode (PHCompositeNode *topNode, int ialgo, std::vector< Jet * > jets)
 

Private Attributes

std::vector< JetInput * > _inputs
 
std::vector< JetAlgo * > _algos
 
std::string _algonode
 
std::string _inputnode
 
std::vector< std::string > _outputs
 

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

jet reco with user def inputs and algos

This module can be used to reconstruct truth jets and will get me started on filling some jet nodes and getting source material for jet evaluation

Definition at line 31 of file JetReco.h.

View newest version in sPHENIX GitHub at line 31 of file JetReco.h

Constructor & Destructor Documentation

JetReco::JetReco ( const std::string &  name = "JetReco")

Definition at line 31 of file JetReco.cc.

View newest version in sPHENIX GitHub at line 31 of file JetReco.cc

JetReco::~JetReco ( )
override

Definition at line 41 of file JetReco.cc.

View newest version in sPHENIX GitHub at line 41 of file JetReco.cc

References _algos, _inputs, and _outputs.

Member Function Documentation

void JetReco::add_algo ( JetAlgo algo,
std::string  output 
)
inline

Definition at line 43 of file JetReco.h.

View newest version in sPHENIX GitHub at line 43 of file JetReco.h

References _algos, and _outputs.

Referenced by HIJetReco(), Jet_FwdReco(), Jet_Reco(), and ParticleFlow().

+ Here is the caller graph for this function:

void JetReco::add_input ( JetInput input)
inline

Definition at line 42 of file JetReco.h.

View newest version in sPHENIX GitHub at line 42 of file JetReco.h

References _inputs.

Referenced by HIJetReco(), Jet_FwdReco(), Jet_Reco(), and ParticleFlow().

+ Here is the caller graph for this function:

int JetReco::CreateNodes ( PHCompositeNode topNode)
private

Definition at line 114 of file JetReco.cc.

View newest version in sPHENIX GitHub at line 114 of file JetReco.cc

References _algonode, _inputnode, _outputs, Fun4AllReturnCodes::ABORTRUN, PHCompositeNode::addNode(), Fun4AllReturnCodes::EVENT_OK, PHNodeIterator::findFirst(), and PHWHERE.

Referenced by InitRun().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int JetReco::End ( PHCompositeNode )
overridevirtual

Called at the end of all processing.

Reimplemented from SubsysReco.

Definition at line 109 of file JetReco.cc.

View newest version in sPHENIX GitHub at line 109 of file JetReco.cc

References Fun4AllReturnCodes::EVENT_OK.

void JetReco::FillJetNode ( PHCompositeNode topNode,
int  ialgo,
std::vector< Jet * >  jets 
)
private

Definition at line 156 of file JetReco.cc.

View newest version in sPHENIX GitHub at line 156 of file JetReco.cc

References _algos, _inputs, _outputs, exit(), PHTypedNodeIterator< T >::find(), PHDataNode< T >::getData(), JetMap::insert(), JetMap::insert_src(), PHWHERE, JetMap::set_algo(), and JetMap::set_par().

Referenced by process_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int JetReco::Init ( PHCompositeNode )
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 50 of file JetReco.cc.

View newest version in sPHENIX GitHub at line 50 of file JetReco.cc

References Fun4AllReturnCodes::EVENT_OK.

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

Reimplemented from SubsysReco.

Definition at line 55 of file JetReco.cc.

View newest version in sPHENIX GitHub at line 55 of file JetReco.cc

References _algos, _inputs, CreateNodes(), and Fun4AllBase::Verbosity().

+ Here is the call graph for this function:

int JetReco::process_event ( PHCompositeNode )
overridevirtual

Called for each event. This is where you do the real work.

Reimplemented from SubsysReco.

Definition at line 70 of file JetReco.cc.

View newest version in sPHENIX GitHub at line 70 of file JetReco.cc

References _algos, _inputs, Fun4AllReturnCodes::EVENT_OK, FillJetNode(), and Fun4AllBase::Verbosity().

+ Here is the call graph for this function:

void JetReco::set_algo_node ( const std::string &  algonode)
inline

Definition at line 49 of file JetReco.h.

View newest version in sPHENIX GitHub at line 49 of file JetReco.h

References _algonode.

Referenced by HIJetReco(), Jet_FwdReco(), Jet_Reco(), and ParticleFlow().

+ Here is the caller graph for this function:

void JetReco::set_input_node ( const std::string &  inputnode)
inline

Definition at line 50 of file JetReco.h.

View newest version in sPHENIX GitHub at line 50 of file JetReco.h

References _inputnode.

Referenced by HIJetReco(), Jet_FwdReco(), Jet_Reco(), and ParticleFlow().

+ Here is the caller graph for this function:

Member Data Documentation

std::string JetReco::_algonode
private

Definition at line 58 of file JetReco.h.

View newest version in sPHENIX GitHub at line 58 of file JetReco.h

Referenced by CreateNodes(), and set_algo_node().

std::vector<JetAlgo *> JetReco::_algos
private

Definition at line 57 of file JetReco.h.

View newest version in sPHENIX GitHub at line 57 of file JetReco.h

Referenced by add_algo(), FillJetNode(), InitRun(), process_event(), and ~JetReco().

std::string JetReco::_inputnode
private

Definition at line 59 of file JetReco.h.

View newest version in sPHENIX GitHub at line 59 of file JetReco.h

Referenced by CreateNodes(), and set_input_node().

std::vector<JetInput *> JetReco::_inputs
private

Definition at line 56 of file JetReco.h.

View newest version in sPHENIX GitHub at line 56 of file JetReco.h

Referenced by add_input(), FillJetNode(), InitRun(), process_event(), and ~JetReco().

std::vector<std::string> JetReco::_outputs
private

Definition at line 60 of file JetReco.h.

View newest version in sPHENIX GitHub at line 60 of file JetReco.h

Referenced by add_algo(), CreateNodes(), FillJetNode(), and ~JetReco().


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