test
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 
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&);
42  LorentzVector tracksP4 (const Container&, const reco::Jet&);
43 
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
JetTracksAssociation::Container JetTracksAssociationCollection
typedefs for backward compatibility
Base class for all types of Jets.
Definition: Jet.h:20
math::PtEtaPhiELorentzVectorF LorentzVector
JetTracksAssociation::Ref JetTracksAssociationRef
JetTracksAssociation::RefVector JetTracksAssociationRefVector
Definition: Event.h:16
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< typename helper::RefFromRefProdTrait< reco::JetRefBaseProd >::ref_type, typename Values::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
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