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

#include <fun4all_coresoftware/blob/master/simulation/g4simulation/g4vertex/GlobalVertexv1.h>

+ Inheritance diagram for GlobalVertexv1:
+ Collaboration diagram for GlobalVertexv1:

Public Member Functions

 GlobalVertexv1 ()
 
 ~GlobalVertexv1 () override
 
void identify (std::ostream &os=std::cout) const override
 
void Reset () override
 Clear Event.
 
int isValid () const override
 isValid returns non zero if object contains vailid data
 
PHObjectCloneMe () const override
 Virtual copy constructor.
 
unsigned int get_id () const override
 
void set_id (unsigned int id) override
 
float get_t () const override
 
void set_t (float t) override
 
float get_t_err () const override
 
void set_t_err (float t_err) override
 
float get_x () const override
 
void set_x (float x) override
 
float get_y () const override
 
void set_y (float y) override
 
float get_z () const override
 
void set_z (float z) override
 
float get_chisq () const override
 
void set_chisq (float chisq) override
 
unsigned int get_ndof () const override
 
void set_ndof (unsigned int ndof) override
 
float get_position (unsigned int coor) const override
 
void set_position (unsigned int coor, float xi) override
 
float get_error (unsigned int i, unsigned int j) const override
 
void set_error (unsigned int i, unsigned int j, float value) override
 
bool empty_vtxids () const override
 
size_t size_vtxids () const override
 
size_t count_vtxids (GlobalVertex::VTXTYPE type) const override
 
void clear_vtxids () override
 
void insert_vtxids (GlobalVertex::VTXTYPE type, unsigned int vtxid) override
 
size_t erase_vtxids (GlobalVertex::VTXTYPE type) override
 
void erase_vtxids (GlobalVertex::VtxIter iter) override
 
void erase_vtxids (GlobalVertex::VtxIter first, GlobalVertex::VtxIter last) override
 
GlobalVertex::ConstVtxIter begin_vtxids () const override
 
GlobalVertex::ConstVtxIter find_vtxids (GlobalVertex::VTXTYPE type) const override
 
GlobalVertex::ConstVtxIter end_vtxids () const override
 
GlobalVertex::VtxIter begin_vtxids () override
 
GlobalVertex::VtxIter find_vtxids (GlobalVertex::VTXTYPE type) override
 
GlobalVertex::VtxIter end_vtxids () override
 
- Public Member Functions inherited from GlobalVertex
 ~GlobalVertex () override
 
- Public Member Functions inherited from PHObject
 PHObject ()
 ctor
 
 ~PHObject () override
 dtor
 
virtual PHObjectclone () const final
 
PHObjectClone (const char *newname="") const final
 
void Copy (TObject &object) const final
 
virtual int isValid (const float) const
 
virtual int isValid (const double) const
 
virtual int isValid (const int) const
 
virtual int isValid (const unsigned int) const
 
virtual int isImplemented (const float f) const
 
virtual int isImplemented (const double f) const
 
virtual int isImplemented (const int i) const
 
virtual int isImplemented (const unsigned int i) const
 
virtual int Integrate () const
 
virtual int Integrate (PHObject *)
 
virtual void CopyFrom (const PHObject *obj)
 

Private Member Functions

unsigned int covar_index (unsigned int i, unsigned int j) const
 
 ClassDefOverride (GlobalVertexv1, 1)
 

Private Attributes

unsigned int _id
 
float _t
 
float _t_err
 
float _pos [3]
 
float _chisq
 
unsigned int _ndof
 
float _err [6]
 
std::map
< GlobalVertex::VTXTYPE,
unsigned int > 
_vtx_ids
 

Additional Inherited Members

- Public Types inherited from GlobalVertex
enum  VTXTYPE { NONE = 0, BBC = 1, SVTX = 2 }
 
typedef std::map
< GlobalVertex::VTXTYPE,
unsigned int >::const_iterator 
ConstVtxIter
 
typedef std::map
< GlobalVertex::VTXTYPE,
unsigned int >::iterator 
VtxIter
 
- Protected Member Functions inherited from GlobalVertex
 GlobalVertex ()
 

Detailed Description

Definition at line 15 of file GlobalVertexv1.h.

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

Constructor & Destructor Documentation

GlobalVertexv1::GlobalVertexv1 ( )

Definition at line 7 of file GlobalVertexv1.cc.

View newest version in sPHENIX GitHub at line 7 of file GlobalVertexv1.cc

References _pos, and set_error().

Referenced by CloneMe(), and Reset().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GlobalVertexv1::~GlobalVertexv1 ( )
override

Definition at line 28 of file GlobalVertexv1.cc.

View newest version in sPHENIX GitHub at line 28 of file GlobalVertexv1.cc

Member Function Documentation

GlobalVertex::ConstVtxIter GlobalVertexv1::begin_vtxids ( ) const
inlineoverridevirtual

Reimplemented from GlobalVertex.

Definition at line 74 of file GlobalVertexv1.h.

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

References _vtx_ids.

Referenced by identify().

+ Here is the caller graph for this function:

GlobalVertex::VtxIter GlobalVertexv1::begin_vtxids ( )
inlineoverridevirtual

Reimplemented from GlobalVertex.

Definition at line 78 of file GlobalVertexv1.h.

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

References _vtx_ids.

GlobalVertexv1::ClassDefOverride ( GlobalVertexv1  ,
 
)
private
void GlobalVertexv1::clear_vtxids ( )
inlineoverridevirtual

Reimplemented from GlobalVertex.

Definition at line 68 of file GlobalVertexv1.h.

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

References _vtx_ids.

PHObject* GlobalVertexv1::CloneMe ( ) const
inlineoverridevirtual

Virtual copy constructor.

Reimplemented from GlobalVertex.

Definition at line 26 of file GlobalVertexv1.h.

View newest version in sPHENIX GitHub at line 26 of file GlobalVertexv1.h

References GlobalVertexv1().

+ Here is the call graph for this function:

size_t GlobalVertexv1::count_vtxids ( GlobalVertex::VTXTYPE  type) const
inlineoverridevirtual

Reimplemented from GlobalVertex.

Definition at line 66 of file GlobalVertexv1.h.

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

References _vtx_ids.

unsigned int GlobalVertexv1::covar_index ( unsigned int  i,
unsigned int  j 
) const
private

Definition at line 101 of file GlobalVertexv1.cc.

View newest version in sPHENIX GitHub at line 101 of file GlobalVertexv1.cc

References boost::swap().

Referenced by get_error(), and set_error().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool GlobalVertexv1::empty_vtxids ( ) const
inlineoverridevirtual

Reimplemented from GlobalVertex.

Definition at line 64 of file GlobalVertexv1.h.

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

References _vtx_ids.

GlobalVertex::ConstVtxIter GlobalVertexv1::end_vtxids ( ) const
inlineoverridevirtual

Reimplemented from GlobalVertex.

Definition at line 76 of file GlobalVertexv1.h.

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

References _vtx_ids.

Referenced by identify().

+ Here is the caller graph for this function:

GlobalVertex::VtxIter GlobalVertexv1::end_vtxids ( )
inlineoverridevirtual

Reimplemented from GlobalVertex.

Definition at line 80 of file GlobalVertexv1.h.

View newest version in sPHENIX GitHub at line 80 of file GlobalVertexv1.h

References _vtx_ids.

size_t GlobalVertexv1::erase_vtxids ( GlobalVertex::VTXTYPE  type)
inlineoverridevirtual

Reimplemented from GlobalVertex.

Definition at line 70 of file GlobalVertexv1.h.

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

References _vtx_ids.

void GlobalVertexv1::erase_vtxids ( GlobalVertex::VtxIter  iter)
inlineoverridevirtual

Reimplemented from GlobalVertex.

Definition at line 71 of file GlobalVertexv1.h.

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

References _vtx_ids.

void GlobalVertexv1::erase_vtxids ( GlobalVertex::VtxIter  first,
GlobalVertex::VtxIter  last 
)
inlineoverridevirtual

Reimplemented from GlobalVertex.

Definition at line 72 of file GlobalVertexv1.h.

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

References _vtx_ids.

GlobalVertex::ConstVtxIter GlobalVertexv1::find_vtxids ( GlobalVertex::VTXTYPE  type) const
inlineoverridevirtual

Reimplemented from GlobalVertex.

Definition at line 75 of file GlobalVertexv1.h.

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

References _vtx_ids.

GlobalVertex::VtxIter GlobalVertexv1::find_vtxids ( GlobalVertex::VTXTYPE  type)
inlineoverridevirtual

Reimplemented from GlobalVertex.

Definition at line 79 of file GlobalVertexv1.h.

View newest version in sPHENIX GitHub at line 79 of file GlobalVertexv1.h

References _vtx_ids.

float GlobalVertexv1::get_chisq ( ) const
inlineoverridevirtual

Reimplemented from GlobalVertex.

Definition at line 48 of file GlobalVertexv1.h.

View newest version in sPHENIX GitHub at line 48 of file GlobalVertexv1.h

References _chisq.

Referenced by identify().

+ Here is the caller graph for this function:

float GlobalVertexv1::get_error ( unsigned int  i,
unsigned int  j 
) const
overridevirtual

Reimplemented from GlobalVertex.

Definition at line 96 of file GlobalVertexv1.cc.

View newest version in sPHENIX GitHub at line 96 of file GlobalVertexv1.cc

References _err, and covar_index().

Referenced by identify(), and isValid().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

unsigned int GlobalVertexv1::get_id ( ) const
inlineoverridevirtual

Reimplemented from GlobalVertex.

Definition at line 30 of file GlobalVertexv1.h.

View newest version in sPHENIX GitHub at line 30 of file GlobalVertexv1.h

References _id.

Referenced by identify().

+ Here is the caller graph for this function:

unsigned int GlobalVertexv1::get_ndof ( ) const
inlineoverridevirtual

Reimplemented from GlobalVertex.

Definition at line 51 of file GlobalVertexv1.h.

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

References _ndof.

Referenced by identify().

+ Here is the caller graph for this function:

float GlobalVertexv1::get_position ( unsigned int  coor) const
inlineoverridevirtual

Reimplemented from GlobalVertex.

Definition at line 54 of file GlobalVertexv1.h.

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

References _pos.

Referenced by identify().

+ Here is the caller graph for this function:

float GlobalVertexv1::get_t ( ) const
inlineoverridevirtual

Reimplemented from GlobalVertex.

Definition at line 33 of file GlobalVertexv1.h.

View newest version in sPHENIX GitHub at line 33 of file GlobalVertexv1.h

References _t.

Referenced by identify().

+ Here is the caller graph for this function:

float GlobalVertexv1::get_t_err ( ) const
inlineoverridevirtual

Reimplemented from GlobalVertex.

Definition at line 36 of file GlobalVertexv1.h.

View newest version in sPHENIX GitHub at line 36 of file GlobalVertexv1.h

References _t_err.

float GlobalVertexv1::get_x ( ) const
inlineoverridevirtual

Reimplemented from GlobalVertex.

Definition at line 39 of file GlobalVertexv1.h.

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

References _pos.

float GlobalVertexv1::get_y ( ) const
inlineoverridevirtual

Reimplemented from GlobalVertex.

Definition at line 42 of file GlobalVertexv1.h.

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

References _pos.

float GlobalVertexv1::get_z ( ) const
inlineoverridevirtual

Reimplemented from GlobalVertex.

Definition at line 45 of file GlobalVertexv1.h.

View newest version in sPHENIX GitHub at line 45 of file GlobalVertexv1.h

References _pos.

void GlobalVertexv1::identify ( std::ostream &  os = std::cout) const
overridevirtual

identify Function from PHObject

Parameters
osOutput Stream

Reimplemented from GlobalVertex.

Definition at line 30 of file GlobalVertexv1.cc.

View newest version in sPHENIX GitHub at line 30 of file GlobalVertexv1.cc

References begin_vtxids(), end_vtxids(), get_chisq(), get_error(), get_id(), get_ndof(), get_position(), and get_t().

+ Here is the call graph for this function:

void GlobalVertexv1::insert_vtxids ( GlobalVertex::VTXTYPE  type,
unsigned int  vtxid 
)
inlineoverridevirtual

Reimplemented from GlobalVertex.

Definition at line 69 of file GlobalVertexv1.h.

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

References _vtx_ids.

int GlobalVertexv1::isValid ( ) const
overridevirtual

isValid returns non zero if object contains vailid data

Reimplemented from GlobalVertex.

Definition at line 67 of file GlobalVertexv1.cc.

View newest version in sPHENIX GitHub at line 67 of file GlobalVertexv1.cc

References _chisq, _id, _ndof, _pos, _t, _t_err, _vtx_ids, and get_error().

+ Here is the call graph for this function:

void GlobalVertexv1::Reset ( )
inlineoverridevirtual

Clear Event.

Reimplemented from PHObject.

Definition at line 24 of file GlobalVertexv1.h.

View newest version in sPHENIX GitHub at line 24 of file GlobalVertexv1.h

References GlobalVertexv1().

+ Here is the call graph for this function:

void GlobalVertexv1::set_chisq ( float  chisq)
inlineoverridevirtual

Reimplemented from GlobalVertex.

Definition at line 49 of file GlobalVertexv1.h.

View newest version in sPHENIX GitHub at line 49 of file GlobalVertexv1.h

References _chisq.

void GlobalVertexv1::set_error ( unsigned int  i,
unsigned int  j,
float  value 
)
overridevirtual

Reimplemented from GlobalVertex.

Definition at line 90 of file GlobalVertexv1.cc.

View newest version in sPHENIX GitHub at line 90 of file GlobalVertexv1.cc

References _err, covar_index(), and value.

Referenced by GlobalVertexv1().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void GlobalVertexv1::set_id ( unsigned int  id)
inlineoverridevirtual

Reimplemented from GlobalVertex.

Definition at line 31 of file GlobalVertexv1.h.

View newest version in sPHENIX GitHub at line 31 of file GlobalVertexv1.h

References _id.

void GlobalVertexv1::set_ndof ( unsigned int  ndof)
inlineoverridevirtual

Reimplemented from GlobalVertex.

Definition at line 52 of file GlobalVertexv1.h.

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

References _ndof.

void GlobalVertexv1::set_position ( unsigned int  coor,
float  xi 
)
inlineoverridevirtual

Reimplemented from GlobalVertex.

Definition at line 55 of file GlobalVertexv1.h.

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

References _pos.

void GlobalVertexv1::set_t ( float  t)
inlineoverridevirtual

Reimplemented from GlobalVertex.

Definition at line 34 of file GlobalVertexv1.h.

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

References _t, and t.

void GlobalVertexv1::set_t_err ( float  t_err)
inlineoverridevirtual

Reimplemented from GlobalVertex.

Definition at line 37 of file GlobalVertexv1.h.

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

References _t_err.

void GlobalVertexv1::set_x ( float  x)
inlineoverridevirtual

Reimplemented from GlobalVertex.

Definition at line 40 of file GlobalVertexv1.h.

View newest version in sPHENIX GitHub at line 40 of file GlobalVertexv1.h

References _pos, and x.

void GlobalVertexv1::set_y ( float  y)
inlineoverridevirtual

Reimplemented from GlobalVertex.

Definition at line 43 of file GlobalVertexv1.h.

View newest version in sPHENIX GitHub at line 43 of file GlobalVertexv1.h

References _pos, and y.

void GlobalVertexv1::set_z ( float  z)
inlineoverridevirtual

Reimplemented from GlobalVertex.

Definition at line 46 of file GlobalVertexv1.h.

View newest version in sPHENIX GitHub at line 46 of file GlobalVertexv1.h

References _pos, and z.

size_t GlobalVertexv1::size_vtxids ( ) const
inlineoverridevirtual

Reimplemented from GlobalVertex.

Definition at line 65 of file GlobalVertexv1.h.

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

References _vtx_ids.

Member Data Documentation

float GlobalVertexv1::_chisq
private

Definition at line 89 of file GlobalVertexv1.h.

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

Referenced by get_chisq(), isValid(), and set_chisq().

float GlobalVertexv1::_err[6]
private

Definition at line 91 of file GlobalVertexv1.h.

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

Referenced by get_error(), and set_error().

unsigned int GlobalVertexv1::_id
private

Definition at line 85 of file GlobalVertexv1.h.

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

Referenced by get_id(), isValid(), and set_id().

unsigned int GlobalVertexv1::_ndof
private

Definition at line 90 of file GlobalVertexv1.h.

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

Referenced by get_ndof(), isValid(), and set_ndof().

float GlobalVertexv1::_pos[3]
private

Definition at line 88 of file GlobalVertexv1.h.

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

Referenced by get_position(), get_x(), get_y(), get_z(), GlobalVertexv1(), isValid(), set_position(), set_x(), set_y(), and set_z().

float GlobalVertexv1::_t
private

Definition at line 86 of file GlobalVertexv1.h.

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

Referenced by get_t(), isValid(), and set_t().

float GlobalVertexv1::_t_err
private

Definition at line 87 of file GlobalVertexv1.h.

View newest version in sPHENIX GitHub at line 87 of file GlobalVertexv1.h

Referenced by get_t_err(), isValid(), and set_t_err().

std::map<GlobalVertex::VTXTYPE, unsigned int> GlobalVertexv1::_vtx_ids
private

Definition at line 92 of file GlobalVertexv1.h.

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

Referenced by begin_vtxids(), clear_vtxids(), count_vtxids(), empty_vtxids(), end_vtxids(), erase_vtxids(), find_vtxids(), insert_vtxids(), isValid(), and size_vtxids().


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