Analysis Software
Documentation for sPHENIX simulation 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/offline/packages/globalvertex/GlobalVertexReco.h>

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

Public Member Functions

 GlobalVertexReco (const std::string &name="GlobalVertexReco")
 
 ~GlobalVertexReco () override=default
 
int InitRun (PHCompositeNode *topNode) override
 
int process_event (PHCompositeNode *topNode) override
 
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 End (PHCompositeNode *)
 Called at the end of all processing.
 
virtual int EndRun (const int)
 Called at the end of each run.
 
virtual int Init (PHCompositeNode *)
 
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 = 0.
 
float _xerr = 0.3
 
float _ydefault = 0.
 
float _yerr = 0.3
 
float _tdefault = 0.
 
float _terr = 0.2
 

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

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 35 of file GlobalVertexReco.cc.

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

GlobalVertexReco::~GlobalVertexReco ( )
overridedefault

Member Function Documentation

int GlobalVertexReco::CreateNodes ( PHCompositeNode topNode)
private

Definition at line 284 of file GlobalVertexReco.cc.

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

References Fun4AllReturnCodes::ABORTRUN, PHCompositeNode::addNode(), Fun4AllReturnCodes::EVENT_OK, 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::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 40 of file GlobalVertexReco.cc.

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

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

+ Here is the call graph for this function:

int GlobalVertexReco::process_event ( PHCompositeNode )
overridevirtual

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

Reset track ids to the new vertex object

Reset track ids to the new vertex object

Associate any tracks that were not assigned a track-vertex

Check that the vertex hasn't already been assigned

Reimplemented from SubsysReco.

Definition at line 51 of file GlobalVertexReco.cc.

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

References SvtxVertexMap::begin(), SvtxVertex::begin_tracks(), dz, GlobalVertexMap::end(), SvtxVertexMap::end(), SvtxVertex::end_tracks(), Fun4AllReturnCodes::EVENT_OK, GlobalVertexMap::find(), SvtxVertex::get_error(), MbdVertex::get_id(), SvtxVertex::get_id(), GlobalVertex::get_id(), MbdVertex::get_z(), SvtxVertex::get_z(), MbdVertex::get_z_err(), GlobalVertexMap::identify(), GlobalVertex::identify(), GlobalVertexMap::insert(), GlobalVertex::insert_vtx(), GlobalVertex::MBD, PHWHERE, GlobalVertex::set_id(), sigma, GlobalVertexMap::size(), GlobalVertex::SVTX, and Fun4AllBase::Verbosity().

+ Here is the call graph for this function:

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

Definition at line 42 of file GlobalVertexReco.h.

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

References _tdefault, and _terr.

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

Definition at line 32 of file GlobalVertexReco.h.

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

References _xdefault, and _xerr.

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

Definition at line 37 of file GlobalVertexReco.h.

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

References _ydefault, and _yerr.

Member Data Documentation

float GlobalVertexReco::_tdefault = 0.
private

Definition at line 55 of file GlobalVertexReco.h.

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

Referenced by set_t_defaults().

float GlobalVertexReco::_terr = 0.2
private

Definition at line 56 of file GlobalVertexReco.h.

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

Referenced by set_t_defaults().

float GlobalVertexReco::_xdefault = 0.
private

Definition at line 51 of file GlobalVertexReco.h.

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

Referenced by set_x_defaults().

float GlobalVertexReco::_xerr = 0.3
private

Definition at line 52 of file GlobalVertexReco.h.

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

Referenced by set_x_defaults().

float GlobalVertexReco::_ydefault = 0.
private

Definition at line 53 of file GlobalVertexReco.h.

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

Referenced by set_y_defaults().

float GlobalVertexReco::_yerr = 0.3
private

Definition at line 54 of file GlobalVertexReco.h.

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

Referenced by set_y_defaults().


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