CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
 
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

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::FSimVertex ( )

Default constructor.

Definition at line 4 of file FSimVertex.cc.

4 : SimVertex(), mom_(0), id_(-1) {;}
SimVertex()
constructor
Definition: SimVertex.cc:3
const FBaseSimEvent * mom_
Definition: FSimVertex.h:59
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().

46 { daugh_.push_back(i); }
int i
Definition: DBlmapReader.cc:9
std::vector< int > daugh_
Definition: FSimVertex.h:61
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_.

32 { return daugh_; }
std::vector< int > daugh_
Definition: FSimVertex.h:61
int FSimVertex::id ( void  ) const
inline

the index in FBaseSimEvent

Definition at line 44 of file FSimVertex.h.

References id_.

Referenced by operator<<(), and TrajectoryManager::updateWithDaughters().

44 { return id_; }
int FSimVertex::nDaughters ( ) const
inline

The number of daughters.

Definition at line 35 of file FSimVertex.h.

References daugh_.

Referenced by noDaughter().

35 { return daugh_.size(); }
std::vector< int > daugh_
Definition: FSimVertex.h:61
bool FSimVertex::noDaughter ( ) const
inline

no Daughters

Definition at line 41 of file FSimVertex.h.

References nDaughters().

41 { return !nDaughters(); }
int nDaughters() const
The number of daughters.
Definition: FSimVertex.h:35
const FSimTrack& FSimVertex::parent ( ) const
inline

parent track

Referenced by Vispa.Gui.ConnectableWidget.ConnectableWidget::addMenuEntry(), Vispa.Views.LineDecayView.LineDecayContainer::applyFilter(), Vispa.Views.BoxDecayView.BoxDecayContainer::arrangeUsingRelations(), Vispa.Views.BoxDecayView.BoxDecayContainer::autolayoutAlgorithm(), Vispa.Gui.ZoomableScrollableWidgetOwner.ZoomableScrollableWidgetOwner::autosizeScrollArea(), Vispa.Views.BoxDecayView.BoxDecayContainer::autosizeScrollArea(), Vispa.Gui.PortWidget.PortWidget::connectionPoint(), Vispa.Main.StartupScreen.StartupScreen::createDescriptionWidget(), Vispa.Views.BoxDecayView.BoxDecayContainer::dataAccessor(), Vispa.Views.LineDecayView.LineDecayContainer::dataAccessor(), Vispa.Views.LineDecayView.DecayLine::dataAccessor(), Vispa.Views.LineDecayView.LineDecayContainer::delete(), Vispa.Views.LineDecayView.DecayNode::delete(), Vispa.Views.LineDecayView.DecayLine::delete(), Vispa.Gui.VispaWidget.VispaWidget::delete(), Vispa.Gui.VispaWidget.VispaWidget::dragWidget(), Vispa.Share.ImageExporter.ImageExporter::exportImageDialog(), Vispa.Views.LineDecayView.DecayLine::extendedSize(), Vispa.Gui.VispaWidget.VispaWidget::keyPressEvent(), Vispa.Gui.MenuWidget.MenuWidget::leaveEvent(), Vispa.Gui.ConnectableWidget.ConnectableWidget::leaveEvent(), Vispa.Gui.PortWidget.PortWidget::moduleParent(), Vispa.Gui.WidgetContainer.WidgetContainer::mouseDoubleClickEvent(), Vispa.Gui.VispaWidget.VispaWidget::mouseDoubleClickEvent(), Vispa.Gui.PortConnection.PointToPointConnection::mousePressEvent(), Vispa.Gui.VispaWidget.VispaWidget::mousePressEvent(), Vispa.Views.LineDecayView.ParticleWidget::mousePressEvent(), Vispa.Views.LineDecayView.DecayNode::move(), Vispa.Views.LineDecayView.LineDecayContainer::noDecorationsMode(), Vispa.Views.LineDecayView.LineDecayContainer::operationId(), Vispa.Views.LineDecayView.DecayLine::paint(), Vispa.Gui.VispaWidget.VispaWidget::paintEvent(), Vispa.Gui.ConnectableWidget.ConnectableWidget::positionizeMenuWidget(), Vispa.Views.LineDecayView.DecayLine::qtLineStyle(), Vispa.Views.WidgetView.WidgetView::restoreSelection(), Vispa.Views.WidgetView.WidgetView::select(), Vispa.Gui.PortConnection.PointToPointConnection::select(), Vispa.Gui.VispaWidget.VispaWidget::select(), Vispa.Views.LineDecayView.LineDecayContainer::select(), Vispa.Views.LineDecayView.LineDecayContainer::sizeHint(), Vispa.Views.LineDecayView.LineDecayContainer::tabController(), Vispa.Views.BoxDecayView.BoxDecayContainer::toggleCollapsed(), Vispa.Views.LineDecayView.DecayNode::unite(), Vispa.Views.PropertyView.PropertyView::valueChanged(), Vispa.Views.BoxDecayView.BoxDecayContainer::widgetByObject(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::widgetDoubleClicked(), and Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::widgetDragged().

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

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

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

49 { return position_; }
math::XYZTLorentzVector position_
Definition: FSimVertex.h:63
void FSimVertex::setPosition ( const math::XYZTLorentzVector newPosition)
inline

Reset the position (to be used with care)

Definition at line 52 of file FSimVertex.h.

References position_.

Referenced by TrajectoryManager::updateWithDaughters().

52 {position_ = newPosition; }
math::XYZTLorentzVector position_
Definition: FSimVertex.h:63
const SimVertex& FSimVertex::simVertex ( ) const
inline

Simply returns the SimVertex.

Definition at line 55 of file FSimVertex.h.

55 { return *this; }

Member Data Documentation

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

Definition at line 61 of file FSimVertex.h.

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

int FSimVertex::id_
private

Definition at line 60 of file FSimVertex.h.

Referenced by id().

const FBaseSimEvent* FSimVertex::mom_
private

Definition at line 59 of file FSimVertex.h.

math::XYZTLorentzVector FSimVertex::position_
private

Definition at line 63 of file FSimVertex.h.

Referenced by position(), and setPosition().