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

simple truth vertex smearing algorithm More...

#include <coresoftware/blob/master/simulation/g4simulation/g4vertex/GlobalVertexReco.h>

+ Inheritance diagram for GlobalVertexReco:
+ Collaboration diagram for GlobalVertexReco:

Public Member Functions

 GlobalVertexReco (const std::string &name="GlobalVertexReco")
 
 ~GlobalVertexReco () 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 set_x_defaults (float xdefault, float xerr)
 
void set_y_defaults (float ydefault, float yerr)
 
void set_t_defaults (float tdefault, float terr)
 
- 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)
 

Private Attributes

float _xdefault
 
float _xerr
 
float _ydefault
 
float _yerr
 
float _tdefault
 
float _terr
 

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

simple truth vertex smearing algorithm

Definition at line 23 of file GlobalVertexReco.h.

View newest version in sPHENIX GitHub at line 23 of file GlobalVertexReco.h

Constructor & Destructor Documentation

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

Definition at line 34 of file GlobalVertexReco.cc.

View newest version in sPHENIX GitHub at line 34 of file GlobalVertexReco.cc

GlobalVertexReco::~GlobalVertexReco ( )
override

Definition at line 45 of file GlobalVertexReco.cc.

View newest version in sPHENIX GitHub at line 45 of file GlobalVertexReco.cc

Member Function Documentation

int GlobalVertexReco::CreateNodes ( PHCompositeNode topNode)
private

Definition at line 253 of file GlobalVertexReco.cc.

View newest version in sPHENIX GitHub at line 253 of file GlobalVertexReco.cc

References Fun4AllReturnCodes::ABORTRUN, PHCompositeNode::addNode(), Fun4AllReturnCodes::EVENT_OK, g4zmq::exit(), PHNodeIterator::findFirst(), and PHWHERE.

Referenced by InitRun().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int GlobalVertexReco::End ( PHCompositeNode )
overridevirtual

Called at the end of all processing.

Reimplemented from SubsysReco.

Definition at line 248 of file GlobalVertexReco.cc.

View newest version in sPHENIX GitHub at line 248 of file GlobalVertexReco.cc

References Fun4AllReturnCodes::EVENT_OK.

int GlobalVertexReco::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 47 of file GlobalVertexReco.cc.

View newest version in sPHENIX GitHub at line 47 of file GlobalVertexReco.cc

References Fun4AllReturnCodes::EVENT_OK.

int GlobalVertexReco::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 52 of file GlobalVertexReco.cc.

View newest version in sPHENIX GitHub at line 52 of file GlobalVertexReco.cc

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

+ Here is the call graph for this function:

void GlobalVertexReco::set_t_defaults ( float  tdefault,
float  terr 
)
inline

Definition at line 44 of file GlobalVertexReco.h.

View newest version in sPHENIX GitHub at line 44 of file GlobalVertexReco.h

References _tdefault, and _terr.

void GlobalVertexReco::set_x_defaults ( float  xdefault,
float  xerr 
)
inline

Definition at line 34 of file GlobalVertexReco.h.

View newest version in sPHENIX GitHub at line 34 of file GlobalVertexReco.h

References _xdefault, and _xerr.

void GlobalVertexReco::set_y_defaults ( float  ydefault,
float  yerr 
)
inline

Definition at line 39 of file GlobalVertexReco.h.

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

References _ydefault, and _yerr.

Member Data Documentation

float GlobalVertexReco::_tdefault
private

Definition at line 55 of file GlobalVertexReco.h.

View newest version in sPHENIX GitHub at line 55 of file GlobalVertexReco.h

Referenced by process_event(), and set_t_defaults().

float GlobalVertexReco::_terr
private

Definition at line 55 of file GlobalVertexReco.h.

View newest version in sPHENIX GitHub at line 55 of file GlobalVertexReco.h

Referenced by process_event(), and set_t_defaults().

float GlobalVertexReco::_xdefault
private

Definition at line 53 of file GlobalVertexReco.h.

View newest version in sPHENIX GitHub at line 53 of file GlobalVertexReco.h

Referenced by process_event(), and set_x_defaults().

float GlobalVertexReco::_xerr
private

Definition at line 53 of file GlobalVertexReco.h.

View newest version in sPHENIX GitHub at line 53 of file GlobalVertexReco.h

Referenced by process_event(), and set_x_defaults().

float GlobalVertexReco::_ydefault
private

Definition at line 54 of file GlobalVertexReco.h.

View newest version in sPHENIX GitHub at line 54 of file GlobalVertexReco.h

Referenced by process_event(), and set_y_defaults().

float GlobalVertexReco::_yerr
private

Definition at line 54 of file GlobalVertexReco.h.

View newest version in sPHENIX GitHub at line 54 of file GlobalVertexReco.h

Referenced by process_event(), and set_y_defaults().


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