Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
analysis Class Reference

#include <analysis/blob/master/JS-Jet/jet-kinematics-mc/source/analysis.h>

+ Inheritance diagram for analysis:
+ Collaboration diagram for analysis:

Public Member Functions

 analysis (const std::string &name="analysis")
 
virtual ~analysis ()
 
void SetOutputFileName (std::string outfilename)
 
int Init (PHCompositeNode *topNode) override
 
int InitRun (PHCompositeNode *topNode) override
 
int process_event (PHCompositeNode *topNode) override
 
int ResetEvent (PHCompositeNode *topNode) override
 Clean up internals after each event.
 
int EndRun (const int runnumber) override
 Called at the end of each run.
 
int End (PHCompositeNode *topNode) override
 Called at the end of all processing.
 
int Reset (PHCompositeNode *) override
 Reset.
 
void Print (const std::string &what="ALL") const override
 
- Public Member Functions inherited from SubsysReco
 ~SubsysReco () override
 
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

Fun4AllHistoManagerget_HistoManager ()
 

Private Attributes

std::vector< float > m_tjet_pt
 
std::vector< float > m_tjet_phi
 
std::vector< float > m_tjet_eta
 
std::vector< float > m_rjet_pt
 
std::vector< float > m_rjet_phi
 
std::vector< float > m_rjet_eta
 
std::vector< float > m_dr
 
int m_centrality
 
int m_impactparam
 
std::string m_outfilename
 
float m_tjet_pt2
 
TFile * outfile
 

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

Detailed Description

Definition at line 26 of file analysis.h.

View newest version in sPHENIX GitHub at line 26 of file analysis.h

Constructor & Destructor Documentation

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

Definition at line 33 of file analysis.cc.

View newest version in sPHENIX GitHub at line 33 of file analysis.cc

analysis::~analysis ( )
virtual

Definition at line 40 of file analysis.cc.

View newest version in sPHENIX GitHub at line 40 of file analysis.cc

Member Function Documentation

int analysis::End ( PHCompositeNode topNode)
overridevirtual

Called at the end of all processing.

Reimplemented from SubsysReco.

Definition at line 240 of file analysis.cc.

View newest version in sPHENIX GitHub at line 240 of file analysis.cc

References assert, PHTFileServer::cd(), Fun4AllReturnCodes::EVENT_OK, PHTFileServer::get(), get_HistoManager(), Fun4AllHistoManager::getHisto(), i, m_outfilename, and Fun4AllHistoManager::nHistos().

+ Here is the call graph for this function:

int analysis::EndRun ( const int  runnumber)
overridevirtual

Called at the end of each run.

Reimplemented from SubsysReco.

Definition at line 233 of file analysis.cc.

View newest version in sPHENIX GitHub at line 233 of file analysis.cc

References Fun4AllReturnCodes::EVENT_OK.

Fun4AllHistoManager * analysis::get_HistoManager ( )
private

Definition at line 55 of file analysis.cc.

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

References assert, Fun4AllServer::getHistoManager(), Fun4AllServer::instance(), and Fun4AllServer::registerHistoManager().

Referenced by End(), InitRun(), and process_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int analysis::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 46 of file analysis.cc.

View newest version in sPHENIX GitHub at line 46 of file analysis.cc

References Fun4AllReturnCodes::EVENT_OK, and PHCompositeNode::print().

+ Here is the call graph for this function:

int analysis::InitRun ( PHCompositeNode topNode)
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. A place to book histograms which have to know the run number.

Reimplemented from SubsysReco.

Definition at line 73 of file analysis.cc.

View newest version in sPHENIX GitHub at line 73 of file analysis.cc

References assert, Fun4AllReturnCodes::EVENT_OK, PHTFileServer::get(), get_HistoManager(), m_outfilename, m_rjet_eta, m_rjet_phi, m_rjet_pt, m_tjet_eta, m_tjet_phi, m_tjet_pt, PHTFileServer::open(), Fun4AllHistoManager::registerHisto(), and tree.

+ Here is the call graph for this function:

void analysis::Print ( const std::string &  what = "ALL") const
overridevirtual

Print out some info about this module.

Parameters
whatcan be used to specify what to print exactly.

Reimplemented from Fun4AllBase.

Definition at line 267 of file analysis.cc.

View newest version in sPHENIX GitHub at line 267 of file analysis.cc

int analysis::process_event ( PHCompositeNode topNode)
overridevirtual

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

Reimplemented from SubsysReco.

Definition at line 106 of file analysis.cc.

View newest version in sPHENIX GitHub at line 106 of file analysis.cc

References assert, JetMap::begin(), INTTVtxZ::dphi, JetMap::end(), Fun4AllReturnCodes::EVENT_OK, Jet::get_eta(), get_HistoManager(), Jet::get_phi(), Jet::get_pt(), Fun4AllHistoManager::getHisto(), m_dr, m_rjet_eta, m_rjet_phi, m_rjet_pt, m_tjet_eta, m_tjet_phi, m_tjet_pt, pi, and tree.

+ Here is the call graph for this function:

int analysis::Reset ( PHCompositeNode topNode)
overridevirtual

Reset.

Reimplemented from SubsysReco.

Definition at line 260 of file analysis.cc.

View newest version in sPHENIX GitHub at line 260 of file analysis.cc

References Fun4AllReturnCodes::EVENT_OK.

int analysis::ResetEvent ( PHCompositeNode topNode)
overridevirtual

Clean up internals after each event.

Reimplemented from SubsysReco.

Definition at line 214 of file analysis.cc.

View newest version in sPHENIX GitHub at line 214 of file analysis.cc

References Fun4AllReturnCodes::EVENT_OK, m_dr, m_rjet_eta, m_rjet_phi, m_rjet_pt, m_tjet_eta, m_tjet_phi, and m_tjet_pt.

void analysis::SetOutputFileName ( std::string  outfilename)
inline

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).

Definition at line 39 of file analysis.h.

View newest version in sPHENIX GitHub at line 39 of file analysis.h

References m_outfilename.

Referenced by Fun4All_Analysis().

+ Here is the caller graph for this function:

Member Data Documentation

int analysis::m_centrality
private

Definition at line 90 of file analysis.h.

View newest version in sPHENIX GitHub at line 90 of file analysis.h

std::vector<float> analysis::m_dr
private

Definition at line 89 of file analysis.h.

View newest version in sPHENIX GitHub at line 89 of file analysis.h

Referenced by process_event(), and ResetEvent().

int analysis::m_impactparam
private

Definition at line 91 of file analysis.h.

View newest version in sPHENIX GitHub at line 91 of file analysis.h

std::string analysis::m_outfilename
private

Definition at line 92 of file analysis.h.

View newest version in sPHENIX GitHub at line 92 of file analysis.h

Referenced by End(), InitRun(), and SetOutputFileName().

std::vector<float> analysis::m_rjet_eta
private

Definition at line 88 of file analysis.h.

View newest version in sPHENIX GitHub at line 88 of file analysis.h

Referenced by InitRun(), process_event(), and ResetEvent().

std::vector<float> analysis::m_rjet_phi
private

Definition at line 87 of file analysis.h.

View newest version in sPHENIX GitHub at line 87 of file analysis.h

Referenced by InitRun(), process_event(), and ResetEvent().

std::vector<float> analysis::m_rjet_pt
private

Definition at line 86 of file analysis.h.

View newest version in sPHENIX GitHub at line 86 of file analysis.h

Referenced by InitRun(), process_event(), and ResetEvent().

std::vector<float> analysis::m_tjet_eta
private

Definition at line 85 of file analysis.h.

View newest version in sPHENIX GitHub at line 85 of file analysis.h

Referenced by InitRun(), process_event(), and ResetEvent().

std::vector<float> analysis::m_tjet_phi
private

Definition at line 84 of file analysis.h.

View newest version in sPHENIX GitHub at line 84 of file analysis.h

Referenced by InitRun(), process_event(), and ResetEvent().

std::vector<float> analysis::m_tjet_pt
private

Definition at line 83 of file analysis.h.

View newest version in sPHENIX GitHub at line 83 of file analysis.h

Referenced by InitRun(), process_event(), and ResetEvent().

float analysis::m_tjet_pt2
private

Definition at line 94 of file analysis.h.

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

TFile* analysis::outfile
private

Definition at line 98 of file analysis.h.

View newest version in sPHENIX GitHub at line 98 of file analysis.h


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