CMS 3D CMS Logo

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
Definition: EDProductfwd.h:25
reco::JetFloatAssociation::RefProd
edm::RefProd< Container > RefProd
Definition: JetFloatAssociation.h:30
reco::JetFloatAssociation::allJets
std::vector< reco::JetBaseRef > allJets(const Container &)
fill list of all jets associated with values. Return # of jets in the list
Definition: JetFloatAssociation.cc:21
reco::Jet
Base class for all types of Jets.
Definition: Jet.h:20
fwlite
Definition: TFileDirectory.h:16
reco::JetFloatAssociation::Container
edm::AssociationVector< reco::JetRefBaseProd, Values > Container
Definition: JetFloatAssociation.h:26
reco::JetFloatAssociation::value_type
Container::value_type value_type
Definition: JetFloatAssociation.h:27
reco::JetFloatAssociation::RefVector
edm::RefVector< Container > RefVector
Definition: JetFloatAssociation.h:31
edm::RefVector
Definition: EDProductfwd.h:27
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
edm::Ref
Definition: AssociativeIterator.h:58
reco::JetFloatAssociation::Ref
edm::Ref< Container > Ref
Definition: JetFloatAssociation.h:29
Event
JetCollection.h
edm::AssociationVector::transient_vector_type
std::vector< value_type > transient_vector_type
Definition: AssociationVector.h:78
RefToBase.h
reco::JetFloatAssociation::hasJet
bool hasJet(const Container &, const reco::JetBaseRef &)
check if jet is associated
Definition: JetFloatAssociation.cc:25
edm::AssociationVector
Definition: AssociationVector.h:67
reco::JetFloatAssociation::setValue
bool setValue(Container &, const reco::JetBaseRef &, float)
associate jet with value
Definition: JetFloatAssociation.cc:9
reco::JetFloatAssociation::getValue
float getValue(const Container &, const reco::JetBaseRef &)
get value for the association. Throw exception if no association found
Definition: JetFloatAssociation.cc:13
RefVector.h
reco::JetFloatAssociation::Values
std::vector< Value > Values
Definition: JetFloatAssociation.h:25
Ref.h
JetFloatAssociation
Association between jets and float value.
reco::JetFloatAssociation::Value
float Value
Definition: JetFloatAssociation.h:24
edm::RefToBase< Jet >
reco::JetFloatAssociation::transient_vector_type
Container::transient_vector_type transient_vector_type
Definition: JetFloatAssociation.h:28
AssociationVector.h
edm::AssociationVector::value_type
std::pair< KeyRef, typename CVal::value_type > value_type
Definition: AssociationVector.h:77