CMS 3D CMS Logo

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.

20  {
21  seeds_ = tseeds;
22  vertex_ = vtx;
23  likelihood_ = lkh;
24  }

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

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.

54 { return likelihood_; }

References likelihood_.

Referenced by NuclearTrackCorrector::produce().

◆ 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.

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

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

Referenced by NuclearTrackCorrector::produce().

◆ secondaryTracks_begin()

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

first iterator over secondary tracks

Definition at line 33 of file NuclearInteraction.h.

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

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

◆ secondaryTracks_end()

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

last iterator over secondary tracks

Definition at line 36 of file NuclearInteraction.h.

36 { return vertex_.tracks_end(); }

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

◆ secondaryTracksSize()

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

return the number of secondary tracks

Definition at line 30 of file NuclearInteraction.h.

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

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

◆ seeds()

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

return the seeds

Definition at line 42 of file NuclearInteraction.h.

42 { return seeds_; }

References seeds_.

◆ seeds_begin()

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

first iterator over seeds

Definition at line 45 of file NuclearInteraction.h.

45 { return seeds_.begin(); }

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

◆ seeds_end()

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

last iterator over seeds

Definition at line 48 of file NuclearInteraction.h.

48 { return seeds_.end(); }

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

◆ seedsSize()

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

return the number of seeds

Definition at line 39 of file NuclearInteraction.h.

39 { return seeds_.size(); }

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

◆ vertex()

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

return the vertex

Definition at line 51 of file NuclearInteraction.h.

51 { return vertex_; }

References vertex_.

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

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

reco::NuclearInteraction::vertex_
reco::Vertex vertex_
The calculated vertex position.
Definition: NuclearInteraction.h:64
edm::RefVector::begin
const_iterator begin() const
Initialize an iterator over the RefVector.
Definition: RefVector.h:223
edm::RefVector::end
const_iterator end() const
Termination of iteration.
Definition: RefVector.h:228
reco::NuclearInteraction::likelihood_
double likelihood_
Varaible used to measure the quality of the reconstructed nuclear interaction.
Definition: NuclearInteraction.h:67
reco::Vertex::tracks_end
trackRef_iterator tracks_end() const
last iterator over tracks
Definition: Vertex.cc:73
badGlobalMuonTaggersAOD_cff.vtx
vtx
Definition: badGlobalMuonTaggersAOD_cff.py:5
reco::NuclearInteraction::seeds_
TrajectorySeedRefVector seeds_
The refitted primary track after removing eventually some outer rechits.
Definition: NuclearInteraction.h:61
reco::Vertex::tracks_begin
trackRef_iterator tracks_begin() const
first iterator over tracks
Definition: Vertex.cc:71
reco::Vertex::tracksSize
size_t tracksSize() const
number of tracks
Definition: Vertex.cc:69
edm::RefVector::size
size_type size() const
Size of the RefVector.
Definition: RefVector.h:102