CMS 3D CMS Logo

Typedefs | Functions
reco::JetFloatAssociation Namespace Reference

Typedefs

typedef edm::AssociationVector< reco::JetRefBaseProd, ValuesContainer
 
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

◆ Container

Definition at line 26 of file JetFloatAssociation.h.

◆ Ref

Definition at line 29 of file JetFloatAssociation.h.

◆ RefProd

Definition at line 30 of file JetFloatAssociation.h.

◆ RefVector

Definition at line 31 of file JetFloatAssociation.h.

◆ transient_vector_type

Definition at line 28 of file JetFloatAssociation.h.

◆ Value

Definition at line 24 of file JetFloatAssociation.h.

◆ value_type

Definition at line 27 of file JetFloatAssociation.h.

◆ Values

Definition at line 25 of file JetFloatAssociation.h.

Function Documentation

◆ allJets()

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 21 of file JetFloatAssociation.cc.

References reco::JetExtendedAssociation::allJets().

21  {
22  return JetAssociationTemplate::allJets(fContainer);
23 }
std::vector< reco::JetBaseRef > allJets(const Container &)
fill list of all jets associated with values. Return # of jets in the list

◆ getValue() [1/2]

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 13 of file JetFloatAssociation.cc.

13  {
14  return JetAssociationTemplate::getValue<Container, Value>(fContainer, fJet);
15 }

◆ getValue() [2/2]

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 17 of file JetFloatAssociation.cc.

17  {
18  return JetAssociationTemplate::getValue<Container, Value>(fContainer, fJet);
19 }

◆ hasJet() [1/2]

bool reco::JetFloatAssociation::hasJet ( const Container fContainer,
const reco::JetBaseRef fJet 
)

check if jet is associated

Definition at line 25 of file JetFloatAssociation.cc.

References reco::JetExtendedAssociation::hasJet().

25  {
26  return JetAssociationTemplate::hasJet(fContainer, fJet);
27 }
bool hasJet(const Container &, const reco::JetBaseRef &)
check if jet is associated

◆ hasJet() [2/2]

bool reco::JetFloatAssociation::hasJet ( const Container fContainer,
const reco::Jet fJet 
)

check if jet is associated

Definition at line 29 of file JetFloatAssociation.cc.

References reco::JetExtendedAssociation::hasJet().

29  {
30  return JetAssociationTemplate::hasJet(fContainer, fJet);
31 }
bool hasJet(const Container &, const reco::JetBaseRef &)
check if jet is associated

◆ setValue() [1/2]

bool reco::JetFloatAssociation::setValue ( Container fContainer,
const reco::JetBaseRef fJet,
float  fValue 
)

associate jet with value

Definition at line 9 of file JetFloatAssociation.cc.

References reco::JetExtendedAssociation::setValue().

Referenced by JetChargeProducer::produce().

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

◆ setValue() [2/2]

bool reco::JetFloatAssociation::setValue ( Container fContainer,
const reco::JetBaseRef fJet,
float  fValue 
)

associate jet with value

Definition at line 5 of file JetFloatAssociation.cc.

References reco::JetExtendedAssociation::setValue().

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