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::Jet &)
 get value for the association. Throw exception if no association found More...
 
float getValue (const Container &, const reco::JetBaseRef &)
 get value for the association. Throw exception if no association found More...
 
bool hasJet (const Container &, const reco::Jet &)
 check if jet is associated More...
 
bool hasJet (const Container &, const reco::JetBaseRef &)
 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.

21  {
22  return JetAssociationTemplate::allJets(fContainer);
23 }

References reco::JetExtendedAssociation::allJets().

◆ getValue() [1/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 }

◆ getValue() [2/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 }

◆ hasJet() [1/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.

29  {
30  return JetAssociationTemplate::hasJet(fContainer, fJet);
31 }

References reco::JetExtendedAssociation::hasJet().

◆ hasJet() [2/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.

25  {
26  return JetAssociationTemplate::hasJet(fContainer, fJet);
27 }

References reco::JetExtendedAssociation::hasJet().

◆ 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.

9  {
10  return JetAssociationTemplate::setValue(fContainer, fJet, fValue);
11 }

References reco::JetExtendedAssociation::setValue().

Referenced by JetChargeProducer::produce().

◆ 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.

5  {
6  return JetAssociationTemplate::setValue(fContainer, fJet, fValue);
7 }

References reco::JetExtendedAssociation::setValue().

reco::JetExtendedAssociation::setValue
bool setValue(Container &, const reco::JetBaseRef &, const JetExtendedData &)
associate jet with value. Returns false and associate nothing if jet is already associated
Definition: JetExtendedAssociation.cc:44
reco::JetExtendedAssociation::hasJet
bool hasJet(const Container &, const reco::JetBaseRef &)
check if jet is associated
Definition: JetExtendedAssociation.cc:64
reco::JetExtendedAssociation::allJets
std::vector< reco::JetBaseRef > allJets(const Container &)
fill list of all jets associated with values. Return # of jets in the list
Definition: JetExtendedAssociation.cc:60