CMS 3D CMS Logo

FSimVertex Class Reference

A class that mimics SimVertex, with enhanced features. More...

#include <FastSimulation/Event/interface/FSimVertex.h>

Inheritance diagram for FSimVertex:

SimVertex CoreSimVertex

List of all members.

Public Member Functions

void addDaughter (int i)
const FSimTrackdaughter (int i) const
 ith daughter
const std::vector< int > & daughters () const
 The vector of daughter indices.
 FSimVertex (const math::XYZTLorentzVector &v, int im, int id, FBaseSimEvent *mom)
 constructor from the embedded vertex index in the FBaseSimEvent
 FSimVertex ()
 Default constructor.
int id () const
 the index in FBaseSimEvent
int nDaughters () const
 The number of daughters.
bool noDaughter () const
 no Daughters
const FSimTrackparent () const
 parent track
const math::XYZTLorentzVectorposition () const
 Temporary (until CMSSW moves to Mathcore).
const SimVertexsimVertex () const
 Simply returns the SimVertex.

Private Attributes

std::vector< intdaugh_
int id_
const FBaseSimEventmom_
math::XYZTLorentzVector position_


Detailed Description

A class that mimics SimVertex, with enhanced features.

Essentially an interface to SimVertex.

Author:
Patrick Janot, CERN $Date: 9-Dec-2003

Definition at line 19 of file FSimVertex.h.


Constructor & Destructor Documentation

FSimVertex::FSimVertex (  ) 

Default constructor.

Definition at line 4 of file FSimVertex.cc.

00004 : SimVertex(), mom_(0), id_(-1) {;}

FSimVertex::FSimVertex ( const math::XYZTLorentzVector v,
int  im,
int  id,
FBaseSimEvent mom 
)

constructor from the embedded vertex index in the FBaseSimEvent


Member Function Documentation

void FSimVertex::addDaughter ( int  i  )  [inline]

Definition at line 46 of file FSimVertex.h.

References daugh_.

Referenced by FBaseSimEvent::addSimTrack().

00046 { daugh_.push_back(i); }

const FSimTrack& FSimVertex::daughter ( int  i  )  const [inline]

ith daughter

const std::vector<int>& FSimVertex::daughters (  )  const [inline]

The vector of daughter indices.

Definition at line 32 of file FSimVertex.h.

References daugh_.

00032 { return daugh_; }

int FSimVertex::id ( void   )  const [inline]

the index in FBaseSimEvent

Definition at line 44 of file FSimVertex.h.

References id_.

Referenced by operator<<().

00044 { return id_; }

int FSimVertex::nDaughters (  )  const [inline]

The number of daughters.

Definition at line 35 of file FSimVertex.h.

References daugh_.

Referenced by noDaughter().

00035 { return daugh_.size(); }

bool FSimVertex::noDaughter (  )  const [inline]

no Daughters

Definition at line 41 of file FSimVertex.h.

References nDaughters().

00041 { return !nDaughters(); }

const FSimTrack& FSimVertex::parent (  )  const [inline]

parent track

const math::XYZTLorentzVector& FSimVertex::position (  )  const [inline]

Temporary (until CMSSW moves to Mathcore).

Reimplemented from CoreSimVertex.

Definition at line 49 of file FSimVertex.h.

References position_.

Referenced by EcalHitMaker::buildSegments(), EcalHitMaker::cellLine(), FBaseSimEvent::fill(), MaterialEffects::interact(), TrajectoryManager::makeSinglePSimHit(), operator<<(), ParticlePropagator::ParticlePropagator(), and PFSimParticleProducer::produce().

00049 { return position_; }

const SimVertex& FSimVertex::simVertex (  )  const [inline]

Simply returns the SimVertex.

Definition at line 52 of file FSimVertex.h.

00052 { return *this; }


Member Data Documentation

std::vector<int> FSimVertex::daugh_ [private]

Definition at line 58 of file FSimVertex.h.

Referenced by addDaughter(), daughters(), and nDaughters().

int FSimVertex::id_ [private]

Definition at line 57 of file FSimVertex.h.

Referenced by id().

const FBaseSimEvent* FSimVertex::mom_ [private]

Definition at line 56 of file FSimVertex.h.

math::XYZTLorentzVector FSimVertex::position_ [private]

Definition at line 60 of file FSimVertex.h.

Referenced by position().


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