CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
List of all members | Public Types | Public Member Functions | Private Attributes
reco::NuclearInteraction Class Reference

#include <NuclearInteraction.h>

Public Types

typedef TrajectorySeedRefVector::iterator seedRef_iterator
 
typedef reco::Vertex::trackRef_iterator trackRef_iterator
 
typedef edm::Ref< TrajectorySeedCollectionTrajectorySeedRef
 
typedef edm::RefVector< TrajectorySeedCollectionTrajectorySeedRefVector
 

Public Member Functions

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

Private Attributes

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

Detailed Description

Definition at line 11 of file NuclearInteraction.h.

Member Typedef Documentation

◆ seedRef_iterator

Definition at line 16 of file NuclearInteraction.h.

◆ trackRef_iterator

Definition at line 15 of file NuclearInteraction.h.

◆ TrajectorySeedRef

Definition at line 14 of file NuclearInteraction.h.

◆ TrajectorySeedRefVector

Definition at line 13 of file NuclearInteraction.h.

Constructor & Destructor Documentation

◆ NuclearInteraction() [1/2]

reco::NuclearInteraction::NuclearInteraction ( )
inline

Definition at line 18 of file NuclearInteraction.h.

18 {}

◆ NuclearInteraction() [2/2]

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

Definition at line 20 of file NuclearInteraction.h.

References likelihood_, seeds_, vertex_, and L1BJetProducer_cff::vtx.

20  {
21  seeds_ = tseeds;
22  vertex_ = vtx;
23  likelihood_ = lkh;
24  }
reco::Vertex vertex_
The calculated vertex position.
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.

Member Function Documentation

◆ likelihood()

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

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

Definition at line 54 of file NuclearInteraction.h.

References likelihood_.

Referenced by NuclearTrackCorrector::produce().

54 { return likelihood_; }
double likelihood_
Varaible used to measure the quality of the reconstructed nuclear interaction.

◆ primaryTrack()

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

return the base reference to the primary track

Definition at line 27 of file NuclearInteraction.h.

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

Referenced by NuclearTrackCorrector::produce().

27 { return *(vertex_.tracks_begin()); }
reco::Vertex vertex_
The calculated vertex position.
trackRef_iterator tracks_begin() const
first iterator over tracks
Definition: Vertex.h:109

◆ secondaryTracks_begin()

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

first iterator over secondary tracks

Definition at line 33 of file NuclearInteraction.h.

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

33 { return vertex_.tracks_begin() + 1; }
reco::Vertex vertex_
The calculated vertex position.
trackRef_iterator tracks_begin() const
first iterator over tracks
Definition: Vertex.h:109

◆ secondaryTracks_end()

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

last iterator over secondary tracks

Definition at line 36 of file NuclearInteraction.h.

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

36 { return vertex_.tracks_end(); }
reco::Vertex vertex_
The calculated vertex position.
trackRef_iterator tracks_end() const
last iterator over tracks
Definition: Vertex.h:111

◆ secondaryTracksSize()

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

return the number of secondary tracks

Definition at line 30 of file NuclearInteraction.h.

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

30 { return vertex_.tracksSize() - 1; }
reco::Vertex vertex_
The calculated vertex position.
size_t tracksSize() const
number of tracks
Definition: Vertex.h:113

◆ seeds()

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

return the seeds

Definition at line 42 of file NuclearInteraction.h.

References seeds_.

42 { return seeds_; }
TrajectorySeedRefVector seeds_
The refitted primary track after removing eventually some outer rechits.

◆ seeds_begin()

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

first iterator over seeds

Definition at line 45 of file NuclearInteraction.h.

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

45 { return seeds_.begin(); }
TrajectorySeedRefVector seeds_
The refitted primary track after removing eventually some outer rechits.
const_iterator begin() const
Initialize an iterator over the RefVector.
Definition: RefVector.h:223

◆ seeds_end()

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

last iterator over seeds

Definition at line 48 of file NuclearInteraction.h.

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

48 { return seeds_.end(); }
TrajectorySeedRefVector seeds_
The refitted primary track after removing eventually some outer rechits.
const_iterator end() const
Termination of iteration.
Definition: RefVector.h:228

◆ seedsSize()

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

return the number of seeds

Definition at line 39 of file NuclearInteraction.h.

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

39 { return seeds_.size(); }
TrajectorySeedRefVector seeds_
The refitted primary track after removing eventually some outer rechits.
size_type size() const
Size of the RefVector.
Definition: RefVector.h:102

◆ vertex()

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

return the vertex

Definition at line 51 of file NuclearInteraction.h.

References vertex_.

Referenced by Tau.Tau::dxy(), and NuclearTrackCorrector::newTrajNeeded().

51 { return vertex_; }
reco::Vertex vertex_
The calculated vertex position.

Member Data Documentation

◆ likelihood_

double reco::NuclearInteraction::likelihood_
private

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

Definition at line 67 of file NuclearInteraction.h.

Referenced by likelihood(), and NuclearInteraction().

◆ seeds_

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 61 of file NuclearInteraction.h.

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

◆ vertex_

reco::Vertex reco::NuclearInteraction::vertex_
private

The calculated vertex position.

Definition at line 64 of file NuclearInteraction.h.

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