CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
JetFloatAssociation.h
Go to the documentation of this file.
1 #ifndef JetReco_JetFloatAssociation_h
2 #define JetReco_JetFloatAssociation_h
3 
18 
19 namespace fwlite {
20  class Event;
21 }
22 
23 namespace reco {
24  namespace JetFloatAssociation {
25  typedef float Value;
26  typedef std::vector<Value> Values;
33 
35  float getValue (const Container&, const reco::JetBaseRef&);
37  float getValue (const Container&, const reco::Jet&);
39  bool setValue (Container&, const reco::JetBaseRef&, float);
41  bool setValue (Container*, const reco::JetBaseRef&, float);
43  std::vector<reco::JetBaseRef > allJets (const Container&);
45  bool hasJet (const Container&, const reco::JetBaseRef&);
47  bool hasJet (const Container&, const reco::Jet&);
48  }
49 }
50 
51 #endif
edm::RefProd< Container > RefProd
float getValue(const Container &, const reco::JetBaseRef &)
get value for the association. Throw exception if no association found
Base class for all types of Jets.
Definition: Jet.h:21
std::vector< value_type > transient_vector_type
edm::AssociationVector< reco::JetRefBaseProd, Values > Container
Association between jets and float value.
Container::value_type value_type
std::pair< KeyRef, typename CVal::value_type > value_type
Container::transient_vector_type transient_vector_type
bool setValue(Container &, const reco::JetBaseRef &, float)
associate jet with value
edm::Ref< Container > Ref
edm::RefVector< Container > RefVector
bool hasJet(const Container &, const reco::JetBaseRef &)
check if jet is associated
std::vector< Value > Values
std::vector< reco::JetBaseRef > allJets(const Container &)
fill list of all jets associated with values. Return # of jets in the list