CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
JetTracksAssociation.h
Go to the documentation of this file.
1 #ifndef JetReco_JetTracksAssociation_h
2 #define JetReco_JetTracksAssociation_h
3 
19 
20 namespace fwlite {
21  class Event;
22 }
23 
24 namespace reco {
28  typedef std::vector<Value> Values;
35 
37  int tracksNumber (const Container&, const reco::JetBaseRef);
39  int tracksNumber (const Container&, const reco::Jet&);
43  LorentzVector tracksP4 (const Container&, const reco::Jet&);
44 
52  const reco::TrackRefVector& getValue (const Container&, const reco::Jet&);
54  std::vector<reco::JetBaseRef > allJets (const Container&);
56  bool hasJet (const Container&, const reco::JetBaseRef&);
58  bool hasJet (const Container&, const reco::Jet&);
59  }
65 }
66 
67 #endif
edm::RefProd< Container > RefProd
JetTracksAssociation::Container JetTracksAssociationCollection
typedefs for backward compatibility
Base class for all types of Jets.
Definition: Jet.h:21
math::PtEtaPhiELorentzVectorF LorentzVector
JetTracksAssociation::Ref JetTracksAssociationRef
std::vector< value_type > transient_vector_type
JetTracksAssociation::RefVector JetTracksAssociationRefVector
edm::RefVector< Container > RefVector
JetTracksAssociation::RefProd JetTracksAssociationRefProd
Container::transient_vector_type transient_vector_type
bool setValue(Container &, const reco::JetBaseRef &, reco::TrackRefVector)
associate jet with value. Returns false and associate nothing if jet is already associated ...
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:21
edm::AssociationVector< reco::JetRefBaseProd, Values > Container
const reco::TrackRefVector & getValue(const Container &, const reco::JetBaseRef &)
get value for the association. Throw exception if no association found
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
LorentzVector tracksP4(const Container &, const reco::JetBaseRef)
Get LorentzVector as sum of all tracks associated with jet.
Association between jets and float value.
int tracksNumber(const Container &, const reco::JetBaseRef)
Get number of tracks associated with jet.
bool hasJet(const Container &, const reco::JetBaseRef &)
check if jet is associated