CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
JetFloatAssociation.h
Go to the documentation of this file.
1 #ifndef JetReco_JetFloatAssociation_h
2 #define JetReco_JetFloatAssociation_h
3 
17 
18 namespace fwlite {
19  class Event;
20 }
21 
22 namespace reco {
23  namespace JetFloatAssociation {
24  typedef float Value;
25  typedef std::vector<Value> Values;
32 
34  float getValue(const Container&, const reco::JetBaseRef&);
36  float getValue(const Container&, const reco::Jet&);
38  bool setValue(Container&, const reco::JetBaseRef&, float);
40  bool setValue(Container*, const reco::JetBaseRef&, float);
42  std::vector<reco::JetBaseRef> allJets(const Container&);
44  bool hasJet(const Container&, const reco::JetBaseRef&);
46  bool hasJet(const Container&, const reco::Jet&);
47  } // namespace JetFloatAssociation
48 } // namespace reco
49 
50 #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:20
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