CMS 3D CMS Logo

SimVertex Class Reference

#include <SimDataFormats/Vertex/interface/SimVertex.h>

Inheritance diagram for SimVertex:

CoreSimVertex FSimVertex

List of all members.

Public Types

typedef CoreSimVertex Core

Public Member Functions

bool noParent () const
int parentIndex () const
 G4 TrackId of the parent in the Event SimTrack container (-1 if no parent) BE CAREFUL this is not a vector index.
 SimVertex (const CoreSimVertex &t, int it)
 constructor from transient
 SimVertex (const math::XYZVectorD &v, float tof, int it)
 full constructor (position, time, index of parent in final vector)
 SimVertex (const math::XYZVectorD &v, float tof)
 SimVertex ()
 constructor

Private Attributes

int itrack


Detailed Description

Definition at line 5 of file SimVertex.h.


Member Typedef Documentation

typedef CoreSimVertex SimVertex::Core

Definition at line 10 of file SimVertex.h.


Constructor & Destructor Documentation

SimVertex::SimVertex (  ) 

constructor

Definition at line 3 of file SimVertex.cc.

00003 {}

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

Definition at line 5 of file SimVertex.cc.

00005                                                        :
00006     Core(v,tof), itrack(-1) {}
 

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

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

Definition at line 8 of file SimVertex.cc.

00008                                                                :
00009     Core(v,tof), itrack(it) {}
 

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

constructor from transient

Definition at line 11 of file SimVertex.cc.

00011                                                     :
00012     Core(v), itrack(it) {}
 


Member Function Documentation

bool SimVertex::noParent (  )  const [inline]

Definition at line 24 of file SimVertex.h.

References itrack.

Referenced by FBaseSimEvent::fill(), pat::PATGenCandsFromSimTracksProducer::findGeantMother(), and JetMatchingTools::generatorId().

00024 { return  itrack==-1; }

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 23 of file SimVertex.h.

References itrack.

Referenced by FBaseSimEvent::fill(), PizeroMCTruthFinder::find(), ElectronMCTruthFinder::find(), PhotonMCTruthFinder::find(), pat::PATGenCandsFromSimTracksProducer::findGeantMother(), JetMatchingTools::generatorId(), and operator<<().

00023 { return  itrack; }


Member Data Documentation

int SimVertex::itrack [private]

Definition at line 27 of file SimVertex.h.

Referenced by noParent(), and parentIndex().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:31:45 2009 for CMSSW by  doxygen 1.5.4