CMS 3D CMS Logo

reco::NuclearInteraction Class Reference

#include <DataFormats/VertexReco/interface/NuclearInteraction.h>

List of all members.

Public Types

typedef
TrajectorySeedRefVector::iterator 
seedRef_iterator
typedef
reco::Vertex::trackRef_iterator 
trackRef_iterator
typedef edm::Ref
< TrajectorySeedCollection
TrajectorySeedRef
typedef edm::RefVector
< TrajectorySeedCollection
TrajectorySeedRefVector

Public Member Functions

double likelihood () const
 return the likelihood ~ probability that the vertex is a real nuclear interaction
 NuclearInteraction (const TrajectorySeedRefVector &tseeds, const reco::Vertex &vtx, double lkh)
 NuclearInteraction ()
const edm::RefToBase
< reco::Track > & 
primaryTrack () const
 return the base reference to the primary track
trackRef_iterator secondaryTracks_begin () const
 first iterator over secondary tracks
trackRef_iterator secondaryTracks_end () const
 last iterator over secondary tracks
int secondaryTracksSize () const
 return the number of secondary tracks
const TrajectorySeedRefVectorseeds ()
 return the seeds
seedRef_iterator seeds_begin () const
 first iterator over seeds
seedRef_iterator seeds_end () const
 last iterator over seeds
int seedsSize () const
 return the number of seeds
const reco::Vertexvertex () const
 return the vertex

Private Attributes

double likelihood_
 Varaible used to measure the quality of the reconstructed nuclear interaction.
TrajectorySeedRefVector seeds_
 The refitted primary track after removing eventually some outer rechits.
reco::Vertex vertex_
 The calculated vertex position.


Detailed Description

Definition at line 11 of file NuclearInteraction.h.


Member Typedef Documentation

typedef TrajectorySeedRefVector::iterator reco::NuclearInteraction::seedRef_iterator

Definition at line 18 of file NuclearInteraction.h.

typedef reco::Vertex::trackRef_iterator reco::NuclearInteraction::trackRef_iterator

Definition at line 17 of file NuclearInteraction.h.

typedef edm::Ref<TrajectorySeedCollection> reco::NuclearInteraction::TrajectorySeedRef

Definition at line 16 of file NuclearInteraction.h.

typedef edm::RefVector<TrajectorySeedCollection> reco::NuclearInteraction::TrajectorySeedRefVector

Definition at line 15 of file NuclearInteraction.h.


Constructor & Destructor Documentation

reco::NuclearInteraction::NuclearInteraction (  )  [inline]

Definition at line 20 of file NuclearInteraction.h.

00020 {}

reco::NuclearInteraction::NuclearInteraction ( const TrajectorySeedRefVector tseeds,
const reco::Vertex vtx,
double  lkh 
) [inline]

Definition at line 22 of file NuclearInteraction.h.

References likelihood_, seeds_, and vertex_.

00022                                                                                                      { 
00023                          seeds_ = tseeds;
00024                          vertex_ = vtx;
00025                          likelihood_ = lkh;
00026        }


Member Function Documentation

double reco::NuclearInteraction::likelihood (  )  const [inline]

return the likelihood ~ probability that the vertex is a real nuclear interaction

Definition at line 56 of file NuclearInteraction.h.

References likelihood_.

Referenced by print(), and NuclearTrackCorrector::produce().

00056 { return likelihood_; }

const edm::RefToBase<reco::Track>& reco::NuclearInteraction::primaryTrack (  )  const [inline]

return the base reference to the primary track

Definition at line 29 of file NuclearInteraction.h.

References reco::Vertex::tracks_begin(), and vertex_.

Referenced by print(), and NuclearTrackCorrector::produce().

00029 { return *(vertex_.tracks_begin()); }

trackRef_iterator reco::NuclearInteraction::secondaryTracks_begin (  )  const [inline]

first iterator over secondary tracks

Definition at line 35 of file NuclearInteraction.h.

References reco::Vertex::tracks_begin(), and vertex_.

Referenced by print().

00035 { return vertex_.tracks_begin()+1; }

trackRef_iterator reco::NuclearInteraction::secondaryTracks_end (  )  const [inline]

last iterator over secondary tracks

Definition at line 38 of file NuclearInteraction.h.

References reco::Vertex::tracks_end(), and vertex_.

Referenced by print().

00038 { return vertex_.tracks_end(); }

int reco::NuclearInteraction::secondaryTracksSize (  )  const [inline]

return the number of secondary tracks

Definition at line 32 of file NuclearInteraction.h.

References reco::Vertex::tracksSize(), and vertex_.

Referenced by print().

00032 { return vertex_.tracksSize()-1; }

const TrajectorySeedRefVector& reco::NuclearInteraction::seeds (  )  [inline]

return the seeds

Definition at line 44 of file NuclearInteraction.h.

References seeds_.

Referenced by NuclearInteractionEDProducer::findAdditionalSecondaryTracks().

00044 { return seeds_; }

seedRef_iterator reco::NuclearInteraction::seeds_begin (  )  const [inline]

first iterator over seeds

Definition at line 47 of file NuclearInteraction.h.

References edm::RefVector< C, T, F >::begin(), and seeds_.

00047 { return seeds_.begin(); }

seedRef_iterator reco::NuclearInteraction::seeds_end (  )  const [inline]

last iterator over seeds

Definition at line 50 of file NuclearInteraction.h.

References edm::RefVector< C, T, F >::end(), and seeds_.

00050 { return seeds_.end(); }

int reco::NuclearInteraction::seedsSize (  )  const [inline]

return the number of seeds

Definition at line 41 of file NuclearInteraction.h.

References seeds_, and edm::RefVector< C, T, F >::size().

Referenced by print().

00041 { return seeds_.size(); }

const reco::Vertex& reco::NuclearInteraction::vertex (  )  const [inline]

return the vertex

Definition at line 53 of file NuclearInteraction.h.

References vertex_.

Referenced by NuclearTrackCorrector::newTrajNeeded(), and print().

00053 { return vertex_; }


Member Data Documentation

double reco::NuclearInteraction::likelihood_ [private]

Varaible used to measure the quality of the reconstructed nuclear interaction.

Definition at line 70 of file NuclearInteraction.h.

Referenced by likelihood(), and NuclearInteraction().

TrajectorySeedRefVector reco::NuclearInteraction::seeds_ [private]

The refitted primary track after removing eventually some outer rechits.

Reference to the TrajectorySeeds produced by NuclearSeedGenerator

Definition at line 64 of file NuclearInteraction.h.

Referenced by NuclearInteraction(), seeds(), seeds_begin(), seeds_end(), and seedsSize().

reco::Vertex reco::NuclearInteraction::vertex_ [private]

The calculated vertex position.

Definition at line 67 of file NuclearInteraction.h.

Referenced by NuclearInteraction(), primaryTrack(), secondaryTracks_begin(), secondaryTracks_end(), secondaryTracksSize(), and vertex().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:51:17 2009 for CMSSW by  doxygen 1.5.4