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

#include <analysis/blob/master/quickHIJING/src/quickHIJING.h>

+ Inheritance diagram for quickHIJING:
+ Collaboration diagram for quickHIJING:

Public Member Functions

 quickHIJING (const std::string &name="quickHIJING")
 
 ~quickHIJING () override
 
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

float getpT (PHG4Particle *particle)
 
float getPhi (PHG4Particle *particle)
 
float getEta (PHG4Particle *particle)
 
float getP (PHG4Particle *particle)
 

Private Attributes

TTree * T
 
std::vector< int > m_pid = {0}
 
std::vector< float > m_pt = {0}
 
std::vector< float > m_eta = {0}
 
std::vector< float > m_phi = {0}
 
std::vector< float > m_e = {0}
 
std::vector< float > m_p = {0}
 
float m_psi2 = 0
 
float m_cent = 0
 
float m_b = 0
 
std::string Outfile
 
TFile * out
 

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 18 of file quickHIJING.h.

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

Constructor & Destructor Documentation

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

Definition at line 26 of file quickHIJING.cc.

View newest version in sPHENIX GitHub at line 26 of file quickHIJING.cc

quickHIJING::~quickHIJING ( )
override

Definition at line 33 of file quickHIJING.cc.

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

Member Function Documentation

int quickHIJING::End ( PHCompositeNode topNode)
overridevirtual

Called at the end of all processing.

Reimplemented from SubsysReco.

Definition at line 164 of file quickHIJING.cc.

View newest version in sPHENIX GitHub at line 164 of file quickHIJING.cc

References cd(), Close(), Fun4AllReturnCodes::EVENT_OK, out, T, and Write().

+ Here is the call graph for this function:

int quickHIJING::EndRun ( const int  runnumber)
overridevirtual

Called at the end of each run.

Reimplemented from SubsysReco.

Definition at line 157 of file quickHIJING.cc.

View newest version in sPHENIX GitHub at line 157 of file quickHIJING.cc

References Fun4AllReturnCodes::EVENT_OK.

float quickHIJING::getEta ( PHG4Particle particle)
private

Definition at line 187 of file quickHIJING.cc.

View newest version in sPHENIX GitHub at line 187 of file quickHIJING.cc

References merge_hashes::p.

Referenced by process_event().

+ Here is the caller graph for this function:

float quickHIJING::getP ( PHG4Particle particle)
private

Definition at line 212 of file quickHIJING.cc.

View newest version in sPHENIX GitHub at line 212 of file quickHIJING.cc

References merge_hashes::p.

Referenced by process_event().

+ Here is the caller graph for this function:

float quickHIJING::getPhi ( PHG4Particle particle)
private

Definition at line 197 of file quickHIJING.cc.

View newest version in sPHENIX GitHub at line 197 of file quickHIJING.cc

References ActsTests::PropagationDatasets::phi.

Referenced by process_event().

+ Here is the caller graph for this function:

float quickHIJING::getpT ( PHG4Particle particle)
private

Definition at line 203 of file quickHIJING.cc.

View newest version in sPHENIX GitHub at line 203 of file quickHIJING.cc

References physmon_track_finding_ttbar::pt.

Referenced by process_event().

+ Here is the caller graph for this function:

int quickHIJING::Init ( PHCompositeNode topNode)
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 39 of file quickHIJING.cc.

View newest version in sPHENIX GitHub at line 39 of file quickHIJING.cc

References Branch(), Fun4AllReturnCodes::EVENT_OK, m_b, m_cent, m_e, m_eta, m_p, m_phi, m_pid, m_psi2, m_pt, out, and T.

+ Here is the call graph for this function:

int quickHIJING::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 61 of file quickHIJING.cc.

View newest version in sPHENIX GitHub at line 61 of file quickHIJING.cc

References Fun4AllReturnCodes::EVENT_OK.

void quickHIJING::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 182 of file quickHIJING.cc.

View newest version in sPHENIX GitHub at line 182 of file quickHIJING.cc

int quickHIJING::process_event ( PHCompositeNode topNode)
overridevirtual

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

Reimplemented from SubsysReco.

Definition at line 68 of file quickHIJING.cc.

View newest version in sPHENIX GitHub at line 68 of file quickHIJING.cc

References Fun4AllReturnCodes::ABORTEVENT, Fun4AllReturnCodes::EVENT_OK, Fill(), getEta(), getP(), getPhi(), getpT(), m_b, m_cent, m_e, m_eta, m_p, m_phi, m_pid, m_psi2, m_pt, PHWHERE, and T.

+ Here is the call graph for this function:

int quickHIJING::Reset ( PHCompositeNode topNode)
overridevirtual

Reset.

Reimplemented from SubsysReco.

Definition at line 175 of file quickHIJING.cc.

View newest version in sPHENIX GitHub at line 175 of file quickHIJING.cc

References Fun4AllReturnCodes::EVENT_OK.

int quickHIJING::ResetEvent ( PHCompositeNode topNode)
overridevirtual

Clean up internals after each event.

Reimplemented from SubsysReco.

Definition at line 144 of file quickHIJING.cc.

View newest version in sPHENIX GitHub at line 144 of file quickHIJING.cc

References Fun4AllReturnCodes::EVENT_OK, m_e, m_eta, m_phi, m_pid, and m_pt.

Member Data Documentation

float quickHIJING::m_b = 0
private

Definition at line 70 of file quickHIJING.h.

View newest version in sPHENIX GitHub at line 70 of file quickHIJING.h

Referenced by Init(), and process_event().

float quickHIJING::m_cent = 0
private

Definition at line 69 of file quickHIJING.h.

View newest version in sPHENIX GitHub at line 69 of file quickHIJING.h

Referenced by Init(), and process_event().

std::vector<float> quickHIJING::m_e = {0}
private

Definition at line 66 of file quickHIJING.h.

View newest version in sPHENIX GitHub at line 66 of file quickHIJING.h

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

std::vector<float> quickHIJING::m_eta = {0}
private

Definition at line 64 of file quickHIJING.h.

View newest version in sPHENIX GitHub at line 64 of file quickHIJING.h

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

std::vector<float> quickHIJING::m_p = {0}
private

Definition at line 67 of file quickHIJING.h.

View newest version in sPHENIX GitHub at line 67 of file quickHIJING.h

Referenced by Init(), and process_event().

std::vector<float> quickHIJING::m_phi = {0}
private

Definition at line 65 of file quickHIJING.h.

View newest version in sPHENIX GitHub at line 65 of file quickHIJING.h

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

std::vector<int> quickHIJING::m_pid = {0}
private

Definition at line 62 of file quickHIJING.h.

View newest version in sPHENIX GitHub at line 62 of file quickHIJING.h

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

float quickHIJING::m_psi2 = 0
private

Definition at line 68 of file quickHIJING.h.

View newest version in sPHENIX GitHub at line 68 of file quickHIJING.h

Referenced by Init(), and process_event().

std::vector<float> quickHIJING::m_pt = {0}
private

Definition at line 63 of file quickHIJING.h.

View newest version in sPHENIX GitHub at line 63 of file quickHIJING.h

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

TFile* quickHIJING::out
private

Definition at line 72 of file quickHIJING.h.

View newest version in sPHENIX GitHub at line 72 of file quickHIJING.h

Referenced by End(), and Init().

std::string quickHIJING::Outfile
private

Definition at line 71 of file quickHIJING.h.

View newest version in sPHENIX GitHub at line 71 of file quickHIJING.h

TTree* quickHIJING::T
private

Definition at line 61 of file quickHIJING.h.

View newest version in sPHENIX GitHub at line 61 of file quickHIJING.h

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


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