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

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

+ Inheritance diagram for mbdAnalysis:
+ Collaboration diagram for mbdAnalysis:

Public Member Functions

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

TFile * out
 
TTree * T = nullptr
 
std::vector< float > pmtcharge
 
std::vector< float > pmttime
 
std::vector< float > pmtx
 
std::vector< float > pmty
 
std::vector< float > pmtz
 
std::vector< float > pmtr
 
std::vector< float > pmtphi
 

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 13 of file mbdAnalysis.h.

View newest version in sPHENIX GitHub at line 13 of file mbdAnalysis.h

Constructor & Destructor Documentation

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

Definition at line 35 of file mbdAnalysis.cc.

View newest version in sPHENIX GitHub at line 35 of file mbdAnalysis.cc

mbdAnalysis::~mbdAnalysis ( )
override

Definition at line 42 of file mbdAnalysis.cc.

View newest version in sPHENIX GitHub at line 42 of file mbdAnalysis.cc

mbdAnalysis::mbdAnalysis ( const std::string &  name = "mbdAnalysis")
mbdAnalysis::~mbdAnalysis ( )
override

Member Function Documentation

int mbdAnalysis::End ( PHCompositeNode topNode)
overridevirtual

Called at the end of all processing.

Reimplemented from SubsysReco.

Definition at line 137 of file mbdAnalysis.cc.

View newest version in sPHENIX GitHub at line 137 of file mbdAnalysis.cc

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

+ Here is the call graph for this function:

int mbdAnalysis::End ( PHCompositeNode topNode)
overridevirtual

Called at the end of all processing.

Reimplemented from SubsysReco.

int mbdAnalysis::EndRun ( const int  runnumber)
overridevirtual

Called at the end of each run.

Reimplemented from SubsysReco.

int mbdAnalysis::EndRun ( const int  runnumber)
overridevirtual

Called at the end of each run.

Reimplemented from SubsysReco.

Definition at line 130 of file mbdAnalysis.cc.

View newest version in sPHENIX GitHub at line 130 of file mbdAnalysis.cc

References Fun4AllReturnCodes::EVENT_OK.

int mbdAnalysis::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 48 of file mbdAnalysis.cc.

View newest version in sPHENIX GitHub at line 48 of file mbdAnalysis.cc

References Branch(), Fun4AllReturnCodes::EVENT_OK, out, pmtcharge, pmtphi, pmtr, pmttime, pmtx, pmty, pmtz, and T.

+ Here is the call graph for this function:

int mbdAnalysis::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.

int mbdAnalysis::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 68 of file mbdAnalysis.cc.

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

References Fun4AllReturnCodes::EVENT_OK.

int mbdAnalysis::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.

void mbdAnalysis::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.

void mbdAnalysis::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 163 of file mbdAnalysis.cc.

View newest version in sPHENIX GitHub at line 163 of file mbdAnalysis.cc

int mbdAnalysis::process_event ( PHCompositeNode topNode)
overridevirtual

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

Reimplemented from SubsysReco.

int mbdAnalysis::process_event ( PHCompositeNode topNode)
overridevirtual

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

Reimplemented from SubsysReco.

Definition at line 75 of file mbdAnalysis.cc.

View newest version in sPHENIX GitHub at line 75 of file mbdAnalysis.cc

References Fun4AllReturnCodes::ABORTEVENT, Fun4AllReturnCodes::EVENT_OK, Fill(), MbdGeom::get_phi(), MbdGeom::get_r(), MbdGeom::get_x(), MbdGeom::get_y(), MbdGeom::get_z(), i, pmtcharge, pmtphi, pmtr, pmttime, pmtx, pmty, pmtz, and T.

+ Here is the call graph for this function:

int mbdAnalysis::Reset ( PHCompositeNode )
overridevirtual

Reset.

Reimplemented from SubsysReco.

int mbdAnalysis::Reset ( PHCompositeNode topNode)
overridevirtual

Reset.

Reimplemented from SubsysReco.

Definition at line 147 of file mbdAnalysis.cc.

View newest version in sPHENIX GitHub at line 147 of file mbdAnalysis.cc

References Fun4AllReturnCodes::EVENT_OK, pmtcharge, pmtphi, pmtr, pmttime, pmtx, pmty, and pmtz.

int mbdAnalysis::ResetEvent ( PHCompositeNode topNode)
overridevirtual

Clean up internals after each event.

Reimplemented from SubsysReco.

int mbdAnalysis::ResetEvent ( PHCompositeNode topNode)
overridevirtual

Clean up internals after each event.

Reimplemented from SubsysReco.

Definition at line 117 of file mbdAnalysis.cc.

View newest version in sPHENIX GitHub at line 117 of file mbdAnalysis.cc

References Fun4AllReturnCodes::EVENT_OK, pmtcharge, pmtphi, pmtr, pmttime, pmtx, pmty, and pmtz.

Member Data Documentation

TFile * mbdAnalysis::out
private

Definition at line 56 of file mbdAnalysis.h.

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

Referenced by End(), and Init().

std::vector< float > mbdAnalysis::pmtcharge
private

Definition at line 61 of file mbdAnalysis.h.

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

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

std::vector< float > mbdAnalysis::pmtphi
private

Definition at line 67 of file mbdAnalysis.h.

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

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

std::vector< float > mbdAnalysis::pmtr
private

Definition at line 66 of file mbdAnalysis.h.

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

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

std::vector< float > mbdAnalysis::pmttime
private

Definition at line 62 of file mbdAnalysis.h.

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

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

std::vector< float > mbdAnalysis::pmtx
private

Definition at line 63 of file mbdAnalysis.h.

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

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

std::vector< float > mbdAnalysis::pmty
private

Definition at line 64 of file mbdAnalysis.h.

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

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

std::vector< float > mbdAnalysis::pmtz
private

Definition at line 65 of file mbdAnalysis.h.

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

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

TTree * mbdAnalysis::T = nullptr
private

Definition at line 57 of file mbdAnalysis.h.

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

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


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