CMS 3D CMS Logo

NuclearInteraction.h
Go to the documentation of this file.
1 #ifndef DATAFORMAT_NUCLEARINTERACTION_
2 #define DATAFORMAT_NUCLEARINTERACTION_
3 
8 
9 namespace reco {
10 
12  public:
17 
19 
20  NuclearInteraction(const TrajectorySeedRefVector& tseeds, const reco::Vertex& vtx, double lkh) {
21  seeds_ = tseeds;
22  vertex_ = vtx;
23  likelihood_ = lkh;
24  }
25 
28 
30  int secondaryTracksSize() const { return vertex_.tracksSize() - 1; }
31 
34 
37 
39  int seedsSize() const { return seeds_.size(); }
40 
42  const TrajectorySeedRefVector& seeds() { return seeds_; }
43 
45  seedRef_iterator seeds_begin() const { return seeds_.begin(); }
46 
48  seedRef_iterator seeds_end() const { return seeds_.end(); }
49 
51  const reco::Vertex& vertex() const { return vertex_; }
52 
54  double likelihood() const { return likelihood_; }
55 
56  private:
58  //reco::Track refittedPrimaryTrack_; // to be included in a futur version
59 
62 
65 
67  double likelihood_;
68  };
69 } // namespace reco
70 #endif
reco::Vertex::trackRef_iterator
std::vector< TrackBaseRef >::const_iterator trackRef_iterator
The iteratator for the vector<TrackRef>
Definition: Vertex.h:38
reco::NuclearInteraction::seeds_end
seedRef_iterator seeds_end() const
last iterator over seeds
Definition: NuclearInteraction.h:48
reco::NuclearInteraction::seeds
const TrajectorySeedRefVector & seeds()
return the seeds
Definition: NuclearInteraction.h:42
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
reco::NuclearInteraction::TrajectorySeedRefVector
edm::RefVector< TrajectorySeedCollection > TrajectorySeedRefVector
Definition: NuclearInteraction.h:13
edm::RefVector< TrajectorySeedCollection >
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
edm::Ref
Definition: AssociativeIterator.h:58
reco::NuclearInteraction::secondaryTracks_begin
trackRef_iterator secondaryTracks_begin() const
first iterator over secondary tracks
Definition: NuclearInteraction.h:33
edm::RefVector::end
const_iterator end() const
Termination of iteration.
Definition: RefVector.h:228
Track.h
TrackFwd.h
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
reco::NuclearInteraction::seedsSize
int seedsSize() const
return the number of seeds
Definition: NuclearInteraction.h:39
reco::NuclearInteraction::NuclearInteraction
NuclearInteraction(const TrajectorySeedRefVector &tseeds, const reco::Vertex &vtx, double lkh)
Definition: NuclearInteraction.h:20
Vertex.h
reco::NuclearInteraction::NuclearInteraction
NuclearInteraction()
Definition: NuclearInteraction.h:18
reco::NuclearInteraction::seedRef_iterator
TrajectorySeedRefVector::iterator seedRef_iterator
Definition: NuclearInteraction.h:16
reco::NuclearInteraction::seeds_
TrajectorySeedRefVector seeds_
The refitted primary track after removing eventually some outer rechits.
Definition: NuclearInteraction.h:61
reco::NuclearInteraction::trackRef_iterator
reco::Vertex::trackRef_iterator trackRef_iterator
Definition: NuclearInteraction.h:15
reco::Vertex::tracks_begin
trackRef_iterator tracks_begin() const
first iterator over tracks
Definition: Vertex.cc:71
reco::NuclearInteraction::primaryTrack
const edm::RefToBase< reco::Track > & primaryTrack() const
return the base reference to the primary track
Definition: NuclearInteraction.h:27
reco::NuclearInteraction::secondaryTracks_end
trackRef_iterator secondaryTracks_end() const
last iterator over secondary tracks
Definition: NuclearInteraction.h:36
reco::Vertex::tracksSize
size_t tracksSize() const
number of tracks
Definition: Vertex.cc:69
reco::NuclearInteraction::vertex
const reco::Vertex & vertex() const
return the vertex
Definition: NuclearInteraction.h:51
TrajectorySeedCollection.h
reco::NuclearInteraction::TrajectorySeedRef
edm::Ref< TrajectorySeedCollection > TrajectorySeedRef
Definition: NuclearInteraction.h:14
extraflags_cff.vtx
vtx
Definition: extraflags_cff.py:18
edm::RefVectorIterator
Definition: EDProductfwd.h:33
edm::RefToBase< reco::Track >
reco::NuclearInteraction::likelihood
double likelihood() const
return the likelihood ~ probability that the vertex is a real nuclear interaction
Definition: NuclearInteraction.h:54
reco::NuclearInteraction::seeds_begin
seedRef_iterator seeds_begin() const
first iterator over seeds
Definition: NuclearInteraction.h:45
edm::RefVector::size
size_type size() const
Size of the RefVector.
Definition: RefVector.h:102
reco::Vertex
Definition: Vertex.h:35
reco::NuclearInteraction::secondaryTracksSize
int secondaryTracksSize() const
return the number of secondary tracks
Definition: NuclearInteraction.h:30
reco::NuclearInteraction
Definition: NuclearInteraction.h:11