test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Typedefs | Functions
reco::JetFloatAssociation Namespace Reference

Typedefs

typedef edm::AssociationVector
< reco::JetRefBaseProd, Values
Container
 
typedef edm::Ref< ContainerRef
 
typedef edm::RefProd< ContainerRefProd
 
typedef edm::RefVector< ContainerRefVector
 
typedef
Container::transient_vector_type 
transient_vector_type
 
typedef float Value
 
typedef Container::value_type value_type
 
typedef std::vector< ValueValues
 

Functions

std::vector< reco::JetBaseRefallJets (const Container &)
 fill list of all jets associated with values. Return # of jets in the list More...
 
float getValue (const Container &, const reco::JetBaseRef &)
 get value for the association. Throw exception if no association found More...
 
float getValue (const Container &, const reco::Jet &)
 get value for the association. Throw exception if no association found More...
 
bool hasJet (const Container &, const reco::JetBaseRef &)
 check if jet is associated More...
 
bool hasJet (const Container &, const reco::Jet &)
 check if jet is associated More...
 
bool setValue (Container &, const reco::JetBaseRef &, float)
 associate jet with value More...
 
bool setValue (Container *, const reco::JetBaseRef &, float)
 associate jet with value More...
 

Typedef Documentation

Definition at line 26 of file JetFloatAssociation.h.

Definition at line 29 of file JetFloatAssociation.h.

Definition at line 30 of file JetFloatAssociation.h.

Definition at line 31 of file JetFloatAssociation.h.

Definition at line 28 of file JetFloatAssociation.h.

Definition at line 24 of file JetFloatAssociation.h.

Definition at line 27 of file JetFloatAssociation.h.

Definition at line 25 of file JetFloatAssociation.h.

Function Documentation

std::vector< reco::JetBaseRef > reco::JetFloatAssociation::allJets ( const Container &  fContainer)

fill list of all jets associated with values. Return # of jets in the list

Definition at line 28 of file JetFloatAssociation.cc.

References reco::JetExtendedAssociation::allJets().

28  {
29  return JetAssociationTemplate::allJets (fContainer);
30 }
std::vector< reco::JetBaseRef > allJets(const Container &)
fill list of all jets associated with values. Return # of jets in the list
float reco::JetFloatAssociation::getValue ( const Container &  fContainer,
const reco::JetBaseRef fJet 
)

get value for the association. Throw exception if no association found

Definition at line 18 of file JetFloatAssociation.cc.

19  {
20  return JetAssociationTemplate::getValue<Container, Value> (fContainer, fJet);
21 }
float reco::JetFloatAssociation::getValue ( const Container &  fContainer,
const reco::Jet fJet 
)

get value for the association. Throw exception if no association found

Definition at line 23 of file JetFloatAssociation.cc.

24  {
25  return JetAssociationTemplate::getValue<Container, Value> (fContainer, fJet);
26 }
bool reco::JetFloatAssociation::hasJet ( const Container &  fContainer,
const reco::JetBaseRef fJet 
)

check if jet is associated

Definition at line 32 of file JetFloatAssociation.cc.

References reco::JetExtendedAssociation::hasJet().

33  {
34  return JetAssociationTemplate::hasJet (fContainer, fJet);
35 }
bool hasJet(const Container &, const reco::JetBaseRef &)
check if jet is associated
bool reco::JetFloatAssociation::hasJet ( const Container &  fContainer,
const reco::Jet fJet 
)

check if jet is associated

Definition at line 37 of file JetFloatAssociation.cc.

References reco::JetExtendedAssociation::hasJet().

38  {
39  return JetAssociationTemplate::hasJet (fContainer, fJet);
40 }
bool hasJet(const Container &, const reco::JetBaseRef &)
check if jet is associated
bool reco::JetFloatAssociation::setValue ( Container &  fContainer,
const reco::JetBaseRef fJet,
float  fValue 
)

associate jet with value

Definition at line 12 of file JetFloatAssociation.cc.

References reco::JetExtendedAssociation::setValue().

Referenced by JetChargeProducer::produce().

14  {
15  return JetAssociationTemplate::setValue (fContainer, fJet, fValue);
16 }
bool setValue(Container &, const reco::JetBaseRef &, const JetExtendedData &)
associate jet with value. Returns false and associate nothing if jet is already associated ...
bool reco::JetFloatAssociation::setValue ( Container *  fContainer,
const reco::JetBaseRef fJet,
float  fValue 
)

associate jet with value

Definition at line 6 of file JetFloatAssociation.cc.

References reco::JetExtendedAssociation::setValue().

8  {
9  return JetAssociationTemplate::setValue (fContainer, fJet, fValue);
10 }
bool setValue(Container &, const reco::JetBaseRef &, const JetExtendedData &)
associate jet with value. Returns false and associate nothing if jet is already associated ...