CMS 3D CMS Logo

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

#include <FSimVertex.h>

Inheritance diagram for FSimVertex:
SimVertex CoreSimVertex

Public Member Functions

void addDaughter (int i)
 
const FSimTrackdaughter (int i) const
 ith daughter More...
 
const std::vector< int > & daughters () const
 The vector of daughter indices. More...
 
 FSimVertex ()
 Default constructor. More...
 
 FSimVertex (const math::XYZTLorentzVector &v, int im, int id, FBaseSimEvent *mom)
 constructor from the embedded vertex index in the FBaseSimEvent More...
 
int id () const
 the index in FBaseSimEvent More...
 
int nDaughters () const
 The number of daughters. More...
 
bool noDaughter () const
 no Daughters More...
 
const FSimTrackparent () const
 parent track More...
 
const math::XYZTLorentzVectorposition () const
 Temporary (until CMSSW moves to Mathcore) - No ! Actually very useful. More...
 
void setPosition (const math::XYZTLorentzVector &newPosition)
 Reset the position (to be used with care) More...
 
const SimVertexsimVertex () const
 Simply returns the SimVertex. More...
 
- Public Member Functions inherited from SimVertex
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

std::vector< int > daugh_
 
int id_
 
const FBaseSimEventmom_
 
math::XYZTLorentzVector position_
 

Additional Inherited Members

- Public Types inherited from SimVertex
typedef CoreSimVertex Core
 

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() [1/2]

FSimVertex::FSimVertex ( )

Default constructor.

Definition at line 4 of file FSimVertex.cc.

4 : SimVertex(), mom_(nullptr), id_(-1) { ; }

◆ FSimVertex() [2/2]

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

constructor from the embedded vertex index in the FBaseSimEvent

Definition at line 7 of file FSimVertex.cc.

8  : // SimVertex(Hep3Vector(v.vect(),v.e(),im), mom_(mom), id_(id)
9  SimVertex(v.Vect(), v.T(), im, id),
10  mom_(mom),
11  id_(id),
12  position_(v) {
13  ;
14 }

Member Function Documentation

◆ addDaughter()

void FSimVertex::addDaughter ( int  i)
inline

Definition at line 45 of file FSimVertex.h.

45 { daugh_.push_back(i); }

References daugh_, and mps_fire::i.

Referenced by FBaseSimEvent::addSimTrack().

◆ daughter()

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

ith daughter

◆ daughters()

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

The vector of daughter indices.

Definition at line 31 of file FSimVertex.h.

31 { return daugh_; }

References daugh_.

◆ id()

int FSimVertex::id ( void  ) const
inline

the index in FBaseSimEvent

Definition at line 43 of file FSimVertex.h.

43 { return id_; }

References id_.

Referenced by TrajectoryManager::updateWithDaughters().

◆ nDaughters()

int FSimVertex::nDaughters ( ) const
inline

The number of daughters.

Definition at line 34 of file FSimVertex.h.

34 { return daugh_.size(); }

References daugh_.

Referenced by noDaughter().

◆ noDaughter()

bool FSimVertex::noDaughter ( ) const
inline

no Daughters

Definition at line 40 of file FSimVertex.h.

40 { return !nDaughters(); }

References nDaughters().

◆ parent()

const FSimTrack& FSimVertex::parent ( ) const
inline

parent track

◆ position()

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

Temporary (until CMSSW moves to Mathcore) - No ! Actually very useful.

Definition at line 48 of file FSimVertex.h.

48 { return position_; }

References position_.

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

◆ setPosition()

void FSimVertex::setPosition ( const math::XYZTLorentzVector newPosition)
inline

Reset the position (to be used with care)

Definition at line 51 of file FSimVertex.h.

51 { position_ = newPosition; }

References position_.

Referenced by TrajectoryManager::updateWithDaughters().

◆ simVertex()

const SimVertex& FSimVertex::simVertex ( ) const
inline

Simply returns the SimVertex.

Definition at line 54 of file FSimVertex.h.

54 { return *this; }

Member Data Documentation

◆ daugh_

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

Definition at line 59 of file FSimVertex.h.

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

◆ id_

int FSimVertex::id_
private

Definition at line 58 of file FSimVertex.h.

Referenced by id().

◆ mom_

const FBaseSimEvent* FSimVertex::mom_
private

Definition at line 57 of file FSimVertex.h.

◆ position_

math::XYZTLorentzVector FSimVertex::position_
private

Definition at line 61 of file FSimVertex.h.

Referenced by position(), and setPosition().

mps_fire.i
i
Definition: mps_fire.py:428
FSimVertex::position_
math::XYZTLorentzVector position_
Definition: FSimVertex.h:61
FSimVertex::id_
int id_
Definition: FSimVertex.h:58
findQualityFiles.v
v
Definition: findQualityFiles.py:179
FSimVertex::id
int id() const
the index in FBaseSimEvent
Definition: FSimVertex.h:43
FSimVertex::nDaughters
int nDaughters() const
The number of daughters.
Definition: FSimVertex.h:34
FSimVertex::mom_
const FBaseSimEvent * mom_
Definition: FSimVertex.h:57
SimVertex::SimVertex
SimVertex()
constructor
Definition: SimVertex.cc:3
FSimVertex::daugh_
std::vector< int > daugh_
Definition: FSimVertex.h:59