CMS 3D CMS Logo

PFNuclearInteraction.h
Go to the documentation of this file.
1 #ifndef _PFNuclarInteraction_H
2 #define _PFNuclarInteraction_H
3 
4 // class which contains the secondary PFRecTracks
5 // this dataformat will be used to create PFBlockElementNuclTrack
6 
7 // \author vincent roberfroid
8 
13 
14 namespace reco {
16  public:
19 
20  public:
23  : nuclInterRef_(nuclref), pfSecTracks_(pfSeconds) {}
24 
26  const edm::RefToBase<reco::Track>& primaryTrack() const { return nuclInterRef_->primaryTrack(); }
27 
29  trackRef_iterator secondaryTracks_begin() const { return nuclInterRef_->secondaryTracks_begin(); }
30 
32  trackRef_iterator secondaryTracks_end() const { return nuclInterRef_->secondaryTracks_end(); }
33 
36 
39 
41  double likelihood() const { return nuclInterRef_->likelihood(); }
42 
45 
46  int secondaryTracksSize() const { return nuclInterRef_->secondaryTracksSize(); }
47 
48  private:
49  // Reference to the initial NuclearInteraction
51 
52  // Collection of the secondary PFRecTracks
54  };
55 
57  typedef std::vector<PFNuclearInteraction> PFNuclearInteractionCollection;
62 } // namespace reco
63 #endif
PFRecTrackRefVector pfSecTracks_
trackRef_iterator secondaryTracks_begin() const
trackRef_iterator secondaryTracks_end() const
edm::RefVector< PFNuclearInteractionCollection > PFNuclearInteractionRefVector
vector of reference to Track in the same collection
pfTrackref_iterator secPFRecTracks_begin() const
NuclearInteractionRef nuclInterRef_
std::vector< PFNuclearInteraction > PFNuclearInteractionCollection
collection of NuclearInteractions
reco::Vertex::trackRef_iterator trackRef_iterator
NuclearInteraction::trackRef_iterator trackRef_iterator
PFRecTrackRefVector::const_iterator pfTrackref_iterator
const_iterator end() const
Termination of iteration.
Definition: RefVector.h:228
pfTrackref_iterator secPFRecTracks_end() const
const NuclearInteractionRef & nuclInterRef() const
fixed size matrix
const edm::RefToBase< reco::Track > & primaryTrack() const
const_iterator begin() const
Initialize an iterator over the RefVector.
Definition: RefVector.h:223
edm::Ref< PFNuclearInteractionCollection > PFNuclearInteractionRef
persistent reference to a NuclearInteraction
PFNuclearInteraction(const NuclearInteractionRef &nuclref, const PFRecTrackRefVector &pfSeconds)