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 CoreSimVertex &t, int it, unsigned int vId)
 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 math::XYZVectorD &v, float tof, int it, unsigned int vId)
 full constructor (position, time, index of parent in final vector) More...
 
 SimVertex (const math::XYZVectorD &v, float tof, unsigned int vId)
 
unsigned int vertexId () const
 
- Public Member Functions inherited from CoreSimVertex
 CoreSimVertex ()
 constructors More...
 
 CoreSimVertex (const math::XYZTLorentzVectorD &v)
 
 CoreSimVertex (const math::XYZVectorD &v, float tof)
 
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) {}

◆ 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) {}

◆ 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) {}

◆ 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) {}

◆ 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) {}

◆ 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) {}

◆ 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) {}

Member Function Documentation

◆ noParent()

bool SimVertex::noParent ( ) const
inline

Definition at line 30 of file SimVertex.h.

30 { return itrack == -1; }

References itrack.

Referenced by FBaseSimEvent::fill().

◆ 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.

29 { return itrack; }

References itrack.

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

◆ processType()

unsigned int SimVertex::processType ( ) const
inline

Definition at line 36 of file SimVertex.h.

36 { return procType; }

References procType.

◆ setProcessType()

void SimVertex::setProcessType ( unsigned int  ty)
inline

Definition at line 35 of file SimVertex.h.

35 { procType = ty; }

References procType.

◆ setVertexId()

void SimVertex::setVertexId ( unsigned int  n)
inline

Definition at line 32 of file SimVertex.h.

32 { vtxId = n; }

References dqmiodumpmetadata::n, and vtxId.

◆ vertexId()

unsigned int SimVertex::vertexId ( ) const
inline

Definition at line 33 of file SimVertex.h.

33 { return vtxId; }

References vtxId.

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().

dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
SimVertex::vtxId
unsigned int vtxId
Definition: SimVertex.h:40
findQualityFiles.v
v
Definition: findQualityFiles.py:179
SimVertex::procType
unsigned int procType
Definition: SimVertex.h:41
SimVertex::Core
CoreSimVertex Core
Definition: SimVertex.h:7
SimVertex::itrack
int itrack
Definition: SimVertex.h:39