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

#include <analysis/blob/master/JS-Jet/HCalJetPhiShift/src/HCalJetPhiShift.h>

+ Inheritance diagram for HCalJetPhiShift:
+ Collaboration diagram for HCalJetPhiShift:

Public Member Functions

 HCalJetPhiShift (const std::string &name="HCalJetPhiShift", const std::string &outputFile="HCalJetPhiShift_test.root")
 
 ~HCalJetPhiShift () 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
 
void SetEventNumber (int event_number)
 
- 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

int FillTTree (PHCompositeNode *topNode)
 

Private Attributes

std::string m_outputFileName
 
TTree * m_T
 Output Tree variables.
 
int m_event
 eventwise quantities
 
int m_nTow_in
 
int m_nTow_out
 
int m_nTow_emc
 
float m_eta
 
float m_phi
 
float m_e
 
float m_pt
 
float m_vx
 
float m_vy
 
float m_vz
 
std::vector< int > m_id
 towers
 
std::vector< float > m_eta_in
 
std::vector< float > m_phi_in
 
std::vector< float > m_e_in
 
std::vector< int > m_ieta_in
 
std::vector< int > m_iphi_in
 
std::vector< float > m_eta_out
 
std::vector< float > m_phi_out
 
std::vector< float > m_e_out
 
std::vector< int > m_ieta_out
 
std::vector< int > m_iphi_out
 
std::vector< float > m_eta_emc
 
std::vector< float > m_phi_emc
 
std::vector< float > m_e_emc
 
std::vector< int > m_ieta_emc
 
std::vector< int > m_iphi_emc
 

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 15 of file HCalJetPhiShift.h.

View newest version in sPHENIX GitHub at line 15 of file HCalJetPhiShift.h

Constructor & Destructor Documentation

HCalJetPhiShift::HCalJetPhiShift ( const std::string &  name = "HCalJetPhiShift",
const std::string &  outputFile = "HCalJetPhiShift_test.root" 
)

Definition at line 41 of file HCalJetPhiShift.cc.

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

HCalJetPhiShift::~HCalJetPhiShift ( )
override

Definition at line 78 of file HCalJetPhiShift.cc.

View newest version in sPHENIX GitHub at line 78 of file HCalJetPhiShift.cc

Member Function Documentation

int HCalJetPhiShift::End ( PHCompositeNode topNode)
overridevirtual

Called at the end of all processing.

Reimplemented from SubsysReco.

Definition at line 180 of file HCalJetPhiShift.cc.

View newest version in sPHENIX GitHub at line 180 of file HCalJetPhiShift.cc

References PHTFileServer::cd(), Fun4AllReturnCodes::EVENT_OK, PHTFileServer::get(), m_outputFileName, and m_T.

+ Here is the call graph for this function:

int HCalJetPhiShift::EndRun ( const int  runnumber)
overridevirtual

Called at the end of each run.

Reimplemented from SubsysReco.

Definition at line 173 of file HCalJetPhiShift.cc.

View newest version in sPHENIX GitHub at line 173 of file HCalJetPhiShift.cc

References Fun4AllReturnCodes::EVENT_OK.

int HCalJetPhiShift::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 84 of file HCalJetPhiShift.cc.

View newest version in sPHENIX GitHub at line 84 of file HCalJetPhiShift.cc

References Fun4AllReturnCodes::EVENT_OK, PHTFileServer::get(), m_e, m_e_emc, m_e_in, m_e_out, m_eta, m_eta_emc, m_eta_in, m_eta_out, m_event, m_id, m_ieta_emc, m_ieta_in, m_ieta_out, m_iphi_emc, m_iphi_in, m_iphi_out, m_nTow_emc, m_nTow_in, m_nTow_out, m_outputFileName, m_phi, m_phi_emc, m_phi_in, m_phi_out, m_pt, m_T, m_vx, m_vy, m_vz, and PHTFileServer::open().

+ Here is the call graph for this function:

int HCalJetPhiShift::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 125 of file HCalJetPhiShift.cc.

View newest version in sPHENIX GitHub at line 125 of file HCalJetPhiShift.cc

References Fun4AllReturnCodes::EVENT_OK.

void HCalJetPhiShift::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 198 of file HCalJetPhiShift.cc.

View newest version in sPHENIX GitHub at line 198 of file HCalJetPhiShift.cc

int HCalJetPhiShift::process_event ( PHCompositeNode topNode)
overridevirtual

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

Reimplemented from SubsysReco.

Definition at line 132 of file HCalJetPhiShift.cc.

View newest version in sPHENIX GitHub at line 132 of file HCalJetPhiShift.cc

References Fun4AllReturnCodes::EVENT_OK, FillTTree(), and m_event.

+ Here is the call graph for this function:

int HCalJetPhiShift::Reset ( PHCompositeNode topNode)
overridevirtual

Reset.

Reimplemented from SubsysReco.

Definition at line 191 of file HCalJetPhiShift.cc.

View newest version in sPHENIX GitHub at line 191 of file HCalJetPhiShift.cc

References Fun4AllReturnCodes::EVENT_OK.

int HCalJetPhiShift::ResetEvent ( PHCompositeNode topNode)
overridevirtual

Clean up internals after each event.

Reimplemented from SubsysReco.

Definition at line 144 of file HCalJetPhiShift.cc.

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

References Fun4AllReturnCodes::EVENT_OK, m_e_emc, m_e_in, m_e_out, m_eta_emc, m_eta_in, m_eta_out, m_id, m_ieta_emc, m_ieta_in, m_ieta_out, m_iphi_emc, m_iphi_in, m_iphi_out, m_nTow_emc, m_nTow_in, m_nTow_out, m_phi_emc, m_phi_in, and m_phi_out.

void HCalJetPhiShift::SetEventNumber ( int  event_number)
inline

Definition at line 56 of file HCalJetPhiShift.h.

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

References m_event.

Referenced by Fun4All_HCalJetPhiShift().

+ Here is the caller graph for this function:

Member Data Documentation

float HCalJetPhiShift::m_e
private

Definition at line 74 of file HCalJetPhiShift.h.

View newest version in sPHENIX GitHub at line 74 of file HCalJetPhiShift.h

Referenced by FillTTree(), and Init().

std::vector<float> HCalJetPhiShift::m_e_emc
private

Definition at line 96 of file HCalJetPhiShift.h.

View newest version in sPHENIX GitHub at line 96 of file HCalJetPhiShift.h

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

std::vector<float> HCalJetPhiShift::m_e_in
private

Definition at line 84 of file HCalJetPhiShift.h.

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

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

std::vector<float> HCalJetPhiShift::m_e_out
private

Definition at line 90 of file HCalJetPhiShift.h.

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

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

float HCalJetPhiShift::m_eta
private

Definition at line 72 of file HCalJetPhiShift.h.

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

Referenced by FillTTree(), and Init().

std::vector<float> HCalJetPhiShift::m_eta_emc
private

Definition at line 94 of file HCalJetPhiShift.h.

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

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

std::vector<float> HCalJetPhiShift::m_eta_in
private

Definition at line 82 of file HCalJetPhiShift.h.

View newest version in sPHENIX GitHub at line 82 of file HCalJetPhiShift.h

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

std::vector<float> HCalJetPhiShift::m_eta_out
private

Definition at line 88 of file HCalJetPhiShift.h.

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

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

int HCalJetPhiShift::m_event
private

eventwise quantities

Definition at line 68 of file HCalJetPhiShift.h.

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

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

std::vector<int> HCalJetPhiShift::m_id
private

towers

Definition at line 81 of file HCalJetPhiShift.h.

View newest version in sPHENIX GitHub at line 81 of file HCalJetPhiShift.h

Referenced by Init(), and ResetEvent().

std::vector<int> HCalJetPhiShift::m_ieta_emc
private

Definition at line 97 of file HCalJetPhiShift.h.

View newest version in sPHENIX GitHub at line 97 of file HCalJetPhiShift.h

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

std::vector<int> HCalJetPhiShift::m_ieta_in
private

Definition at line 85 of file HCalJetPhiShift.h.

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

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

std::vector<int> HCalJetPhiShift::m_ieta_out
private

Definition at line 91 of file HCalJetPhiShift.h.

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

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

std::vector<int> HCalJetPhiShift::m_iphi_emc
private

Definition at line 98 of file HCalJetPhiShift.h.

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

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

std::vector<int> HCalJetPhiShift::m_iphi_in
private

Definition at line 86 of file HCalJetPhiShift.h.

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

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

std::vector<int> HCalJetPhiShift::m_iphi_out
private

Definition at line 92 of file HCalJetPhiShift.h.

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

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

int HCalJetPhiShift::m_nTow_emc
private

Definition at line 71 of file HCalJetPhiShift.h.

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

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

int HCalJetPhiShift::m_nTow_in
private

Definition at line 69 of file HCalJetPhiShift.h.

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

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

int HCalJetPhiShift::m_nTow_out
private

Definition at line 70 of file HCalJetPhiShift.h.

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

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

std::string HCalJetPhiShift::m_outputFileName
private

Definition at line 59 of file HCalJetPhiShift.h.

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

Referenced by End(), and Init().

float HCalJetPhiShift::m_phi
private

Definition at line 73 of file HCalJetPhiShift.h.

View newest version in sPHENIX GitHub at line 73 of file HCalJetPhiShift.h

Referenced by FillTTree(), and Init().

std::vector<float> HCalJetPhiShift::m_phi_emc
private

Definition at line 95 of file HCalJetPhiShift.h.

View newest version in sPHENIX GitHub at line 95 of file HCalJetPhiShift.h

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

std::vector<float> HCalJetPhiShift::m_phi_in
private

Definition at line 83 of file HCalJetPhiShift.h.

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

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

std::vector<float> HCalJetPhiShift::m_phi_out
private

Definition at line 89 of file HCalJetPhiShift.h.

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

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

float HCalJetPhiShift::m_pt
private

Definition at line 75 of file HCalJetPhiShift.h.

View newest version in sPHENIX GitHub at line 75 of file HCalJetPhiShift.h

Referenced by FillTTree(), and Init().

TTree* HCalJetPhiShift::m_T
private

Output Tree variables.

Definition at line 65 of file HCalJetPhiShift.h.

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

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

float HCalJetPhiShift::m_vx
private

Definition at line 76 of file HCalJetPhiShift.h.

View newest version in sPHENIX GitHub at line 76 of file HCalJetPhiShift.h

Referenced by FillTTree(), and Init().

float HCalJetPhiShift::m_vy
private

Definition at line 77 of file HCalJetPhiShift.h.

View newest version in sPHENIX GitHub at line 77 of file HCalJetPhiShift.h

Referenced by FillTTree(), and Init().

float HCalJetPhiShift::m_vz
private

Definition at line 78 of file HCalJetPhiShift.h.

View newest version in sPHENIX GitHub at line 78 of file HCalJetPhiShift.h

Referenced by FillTTree(), and Init().


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