CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
SimVertex Class Reference

#include <SimVertex.h>

Inheritance diagram for SimVertex:
CoreSimVertex FSimVertex

Public Types

typedef CoreSimVertex Core
 

Public Member Functions

bool noParent () const
 
int parentIndex () const
 
unsigned int processType () const
 
void setProcessType (unsigned int ty)
 
void setVertexId (unsigned int n)
 
 SimVertex ()
 constructor More...
 
 SimVertex (const CoreSimVertex &t, int it)
 constructor from transient More...
 
 SimVertex (const math::XYZVectorD &v, float tof)
 
 SimVertex (const math::XYZVectorD &v, float tof, int it)
 full constructor (position, time, index of parent in final vector) More...
 
 SimVertex (const CoreSimVertex &t, int it, unsigned int vId)
 constructor from transient More...
 
 SimVertex (const math::XYZVectorD &v, float tof, unsigned int vId)
 
 SimVertex (const math::XYZVectorD &v, float tof, int it, unsigned int vId)
 full constructor (position, time, index of parent in final vector) More...
 
unsigned int vertexId () const
 
- Public Member Functions inherited from CoreSimVertex
 CoreSimVertex ()
 constructors More...
 
 CoreSimVertex (const math::XYZVectorD &v, float tof)
 
 CoreSimVertex (const math::XYZTLorentzVectorD &v)
 
EncodedEventId eventId () const
 
const math::XYZTLorentzVectorDposition () const
 
void setEventId (EncodedEventId e)
 
void setTof (float tof)
 

Private Attributes

int itrack
 
unsigned int procType
 
unsigned int vtxId
 

Detailed Description

Definition at line 5 of file SimVertex.h.

Member Typedef Documentation

◆ Core

Definition at line 7 of file SimVertex.h.

Constructor & Destructor Documentation

◆ SimVertex() [1/7]

SimVertex::SimVertex ( )

constructor

Definition at line 3 of file SimVertex.cc.

3 : itrack(-1), vtxId(0), procType(0) {}
int itrack
Definition: SimVertex.h:39
unsigned int vtxId
Definition: SimVertex.h:40
unsigned int procType
Definition: SimVertex.h:41

◆ SimVertex() [2/7]

SimVertex::SimVertex ( const CoreSimVertex t,
int  it 
)

constructor from transient

Definition at line 9 of file SimVertex.cc.

9 : Core(v), itrack(it), vtxId(0), procType(0) {}
int itrack
Definition: SimVertex.h:39
unsigned int vtxId
Definition: SimVertex.h:40
CoreSimVertex Core
Definition: SimVertex.h:7
unsigned int procType
Definition: SimVertex.h:41

◆ SimVertex() [3/7]

SimVertex::SimVertex ( const math::XYZVectorD v,
float  tof 
)

Definition at line 5 of file SimVertex.cc.

5 : Core(v, tof), itrack(-1), vtxId(0), procType(0) {}
int itrack
Definition: SimVertex.h:39
unsigned int vtxId
Definition: SimVertex.h:40
CoreSimVertex Core
Definition: SimVertex.h:7
unsigned int procType
Definition: SimVertex.h:41

◆ SimVertex() [4/7]

SimVertex::SimVertex ( const math::XYZVectorD v,
float  tof,
int  it 
)

full constructor (position, time, index of parent in final vector)

Definition at line 7 of file SimVertex.cc.

7 : Core(v, tof), itrack(it), vtxId(0), procType(0) {}
int itrack
Definition: SimVertex.h:39
unsigned int vtxId
Definition: SimVertex.h:40
CoreSimVertex Core
Definition: SimVertex.h:7
unsigned int procType
Definition: SimVertex.h:41

◆ SimVertex() [5/7]

SimVertex::SimVertex ( const CoreSimVertex t,
int  it,
unsigned int  vId 
)

constructor from transient

Definition at line 17 of file SimVertex.cc.

17 : Core(v), itrack(it), vtxId(vId), procType(0) {}
int itrack
Definition: SimVertex.h:39
unsigned int vtxId
Definition: SimVertex.h:40
CoreSimVertex Core
Definition: SimVertex.h:7
unsigned int procType
Definition: SimVertex.h:41

◆ SimVertex() [6/7]

SimVertex::SimVertex ( const math::XYZVectorD v,
float  tof,
unsigned int  vId 
)

Definition at line 11 of file SimVertex.cc.

12  : Core(v, tof), itrack(-1), vtxId(vId), procType(0) {}
int itrack
Definition: SimVertex.h:39
unsigned int vtxId
Definition: SimVertex.h:40
CoreSimVertex Core
Definition: SimVertex.h:7
unsigned int procType
Definition: SimVertex.h:41

◆ SimVertex() [7/7]

SimVertex::SimVertex ( const math::XYZVectorD v,
float  tof,
int  it,
unsigned int  vId 
)

full constructor (position, time, index of parent in final vector)

Definition at line 14 of file SimVertex.cc.

15  : Core(v, tof), itrack(it), vtxId(vId), procType(0) {}
int itrack
Definition: SimVertex.h:39
unsigned int vtxId
Definition: SimVertex.h:40
CoreSimVertex Core
Definition: SimVertex.h:7
unsigned int procType
Definition: SimVertex.h:41

Member Function Documentation

◆ noParent()

bool SimVertex::noParent ( ) const
inline

Definition at line 30 of file SimVertex.h.

References itrack.

Referenced by FBaseSimEvent::fill().

30 { return itrack == -1; }
int itrack
Definition: SimVertex.h:39

◆ parentIndex()

int SimVertex::parentIndex ( ) const
inline

G4 TrackId of the parent in the Event SimTrack container (-1 if no parent) BE CAREFUL this is not a vector index

Definition at line 29 of file SimVertex.h.

References itrack.

Referenced by edm::TestMix::analyze(), FBaseSimEvent::fill(), ElectronMCTruthFinder::find(), PizeroMCTruthFinder::find(), and PhotonMCTruthFinder::find().

29 { return itrack; }
int itrack
Definition: SimVertex.h:39

◆ processType()

unsigned int SimVertex::processType ( ) const
inline

Definition at line 36 of file SimVertex.h.

References procType.

36 { return procType; }
unsigned int procType
Definition: SimVertex.h:41

◆ setProcessType()

void SimVertex::setProcessType ( unsigned int  ty)
inline

Definition at line 35 of file SimVertex.h.

References procType.

35 { procType = ty; }
unsigned int procType
Definition: SimVertex.h:41

◆ setVertexId()

void SimVertex::setVertexId ( unsigned int  n)
inline

Definition at line 32 of file SimVertex.h.

References dqmiodumpmetadata::n, and vtxId.

32 { vtxId = n; }
unsigned int vtxId
Definition: SimVertex.h:40

◆ vertexId()

unsigned int SimVertex::vertexId ( ) const
inline

Definition at line 33 of file SimVertex.h.

References vtxId.

33 { return vtxId; }
unsigned int vtxId
Definition: SimVertex.h:40

Member Data Documentation

◆ itrack

int SimVertex::itrack
private

Definition at line 39 of file SimVertex.h.

Referenced by noParent(), and parentIndex().

◆ procType

unsigned int SimVertex::procType
private

Definition at line 41 of file SimVertex.h.

Referenced by processType(), and setProcessType().

◆ vtxId

unsigned int SimVertex::vtxId
private

Definition at line 40 of file SimVertex.h.

Referenced by setVertexId(), and vertexId().