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 
35  pfTrackref_iterator secPFRecTracks_begin() const { return pfSecTracks_.begin(); }
36 
38  pfTrackref_iterator secPFRecTracks_end() const { return pfSecTracks_.end(); }
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
edm::RefVector< PFNuclearInteractionCollection > PFNuclearInteractionRefVector
vector of reference to Track in the same collection
const_iterator end() const
Termination of iteration.
Definition: RefVector.h:228
const_iterator begin() const
Initialize an iterator over the RefVector.
Definition: RefVector.h:223
NuclearInteractionRef nuclInterRef_
pfTrackref_iterator secPFRecTracks_end() const
trackRef_iterator secondaryTracks_end() const
std::vector< PFNuclearInteraction > PFNuclearInteractionCollection
collection of NuclearInteractions
reco::Vertex::trackRef_iterator trackRef_iterator
NuclearInteraction::trackRef_iterator trackRef_iterator
PFRecTrackRefVector::const_iterator pfTrackref_iterator
const edm::RefToBase< reco::Track > & primaryTrack() const
fixed size matrix
pfTrackref_iterator secPFRecTracks_begin() const
edm::Ref< PFNuclearInteractionCollection > PFNuclearInteractionRef
persistent reference to a NuclearInteraction
const NuclearInteractionRef & nuclInterRef() const
PFNuclearInteraction(const NuclearInteractionRef &nuclref, const PFRecTrackRefVector &pfSeconds)