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
NuclearInteractionFwd.h
reco::PFNuclearInteraction::PFNuclearInteraction
PFNuclearInteraction()
Definition: PFNuclearInteraction.h:21
reco::PFNuclearInteractionRefVector
edm::RefVector< PFNuclearInteractionCollection > PFNuclearInteractionRefVector
vector of reference to Track in the same collection
Definition: PFNuclearInteraction.h:61
reco::PFNuclearInteraction::trackRef_iterator
NuclearInteraction::trackRef_iterator trackRef_iterator
Definition: PFNuclearInteraction.h:17
reco::PFNuclearInteraction::PFNuclearInteraction
PFNuclearInteraction(const NuclearInteractionRef &nuclref, const PFRecTrackRefVector &pfSeconds)
Definition: PFNuclearInteraction.h:22
reco::PFNuclearInteraction::nuclInterRef_
NuclearInteractionRef nuclInterRef_
Definition: PFNuclearInteraction.h:50
reco::PFNuclearInteraction::secPFRecTracks_begin
pfTrackref_iterator secPFRecTracks_begin() const
Definition: PFNuclearInteraction.h:35
edm::RefVector::begin
const_iterator begin() const
Initialize an iterator over the RefVector.
Definition: RefVector.h:223
NuclearInteraction.h
reco::PFNuclearInteraction
Definition: PFNuclearInteraction.h:15
reco::PFNuclearInteraction::secondaryTracksSize
int secondaryTracksSize() const
Definition: PFNuclearInteraction.h:46
reco::PFNuclearInteraction::nuclInterRef
const NuclearInteractionRef & nuclInterRef() const
Definition: PFNuclearInteraction.h:44
edm::RefVector< PFRecTrackCollection >
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
reco::PFNuclearInteractionRef
edm::Ref< PFNuclearInteractionCollection > PFNuclearInteractionRef
persistent reference to a NuclearInteraction
Definition: PFNuclearInteraction.h:59
edm::Ref< NuclearInteractionCollection >
edm::RefVector::end
const_iterator end() const
Termination of iteration.
Definition: RefVector.h:228
reco::PFNuclearInteraction::primaryTrack
const edm::RefToBase< reco::Track > & primaryTrack() const
Definition: PFNuclearInteraction.h:26
reco::PFNuclearInteraction::pfSecTracks_
PFRecTrackRefVector pfSecTracks_
Definition: PFNuclearInteraction.h:53
reco::PFNuclearInteractionCollection
std::vector< PFNuclearInteraction > PFNuclearInteractionCollection
collection of NuclearInteractions
Definition: PFNuclearInteraction.h:57
reco::PFNuclearInteraction::pfTrackref_iterator
PFRecTrackRefVector::const_iterator pfTrackref_iterator
Definition: PFNuclearInteraction.h:18
reco::PFNuclearInteraction::secondaryTracks_end
trackRef_iterator secondaryTracks_end() const
Definition: PFNuclearInteraction.h:32
reco::NuclearInteraction::trackRef_iterator
reco::Vertex::trackRef_iterator trackRef_iterator
Definition: NuclearInteraction.h:15
PFRecTrack.h
reco::PFNuclearInteraction::secondaryTracks_begin
trackRef_iterator secondaryTracks_begin() const
Definition: PFNuclearInteraction.h:29
reco::PFNuclearInteraction::likelihood
double likelihood() const
Definition: PFNuclearInteraction.h:41
edm::RefVectorIterator
Definition: EDProductfwd.h:33
edm::RefToBase< reco::Track >
PFRecTrackFwd.h
reco::PFNuclearInteraction::secPFRecTracks_end
pfTrackref_iterator secPFRecTracks_end() const
Definition: PFNuclearInteraction.h:38