CMS 3D CMS Logo

JetTracksAssociation.h
Go to the documentation of this file.
1 #ifndef JetReco_JetTracksAssociation_h
2 #define JetReco_JetTracksAssociation_h
3 
18 
19 namespace fwlite {
20  class Event;
21 }
22 
23 namespace reco {
27  typedef std::vector<Value> Values;
34 
36  int tracksNumber (const Container&, const reco::JetBaseRef);
38  int tracksNumber (const Container&, const reco::Jet&);
40  LorentzVector tracksP4 (const Container&, const reco::JetBaseRef);
42  LorentzVector tracksP4 (const Container&, const reco::Jet&);
43 
45  bool setValue (Container&, const reco::JetBaseRef&, reco::TrackRefVector);
47  bool setValue (Container*, const reco::JetBaseRef&, reco::TrackRefVector);
49  const reco::TrackRefVector& getValue (const Container&, const reco::JetBaseRef&);
51  const reco::TrackRefVector& getValue (const Container&, const reco::Jet&);
53  std::vector<reco::JetBaseRef > allJets (const Container&);
55  bool hasJet (const Container&, const reco::JetBaseRef&);
57  bool hasJet (const Container&, const reco::Jet&);
58  }
64 }
65 
66 #endif
edm::RefProd< Container > RefProd
bool setValue(Container *, const reco::JetBaseRef &, reco::TrackRefVector)
associate jet with value. Returns false and associate nothing if jet is already associated ...
bool hasJet(const Container &, const reco::Jet &)
check if jet is associated
JetTracksAssociation::Container JetTracksAssociationCollection
typedefs for backward compatibility
Base class for all types of Jets.
Definition: Jet.h:20
math::PtEtaPhiELorentzVectorF LorentzVector
JetTracksAssociation::Ref JetTracksAssociationRef
std::vector< value_type > transient_vector_type
JetTracksAssociation::RefVector JetTracksAssociationRefVector
edm::RefVector< Container > RefVector
LorentzVector tracksP4(const Container &, const reco::Jet &)
Get LorentzVector as sum of all tracks associated with jet.
JetTracksAssociation::RefProd JetTracksAssociationRefProd
const reco::TrackRefVector & getValue(const Container &, const reco::Jet &)
get value for the association. Throw exception if no association found
Container::transient_vector_type transient_vector_type
std::pair< KeyRef, typename CVal::value_type > value_type
ROOT::Math::LorentzVector< ROOT::Math::PtEtaPhiE4D< float > > PtEtaPhiELorentzVectorF
Lorentz vector with cartesian internal representation.
Definition: LorentzVector.h:20
edm::AssociationVector< reco::JetRefBaseProd, Values > Container
std::vector< reco::JetBaseRef > allJets(const Container &)
fill list of all jets associated with values. Return # of jets in the list
Container::value_type value_type
Association between jets and float value.
fixed size matrix
int tracksNumber(const Container &, const reco::Jet &)
Get number of tracks associated with jet.