CMS 3D CMS Logo

Classes | Typedefs | Functions
reco::JetExtendedAssociation Namespace Reference

Classes

class  JetExtendedData
 

Typedefs

typedef edm::AssociationVector< reco::JetRefBaseProd, ValuesContainer
 
typedef math::PtEtaPhiELorentzVectorF LorentzVector
 
typedef edm::Ref< ContainerRef
 
typedef edm::RefProd< ContainerRefProd
 
typedef edm::RefVector< ContainerRefVector
 
typedef Container::transient_vector_type transient_vector_type
 
typedef reco::JetExtendedAssociation::JetExtendedData 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...
 
const JetExtendedDatagetValue (const Container &, const reco::JetBaseRef &)
 get value for the association. Throw exception if no association found More...
 
const JetExtendedDatagetValue (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 &, const JetExtendedData &)
 associate jet with value. Returns false and associate nothing if jet is already associated More...
 
bool setValue (Container *, const reco::JetBaseRef &, const JetExtendedData &)
 associate jet with value. Returns false and associate nothing if jet is already associated More...
 
int tracksAtCaloNumber (const Container &, const reco::JetBaseRef &)
 Number of tracks associated at calo face. More...
 
int tracksAtCaloNumber (const Container &, const reco::Jet &)
 Number of tracks associated at calo face. More...
 
const LorentzVectortracksAtCaloP4 (const Container &, const reco::JetBaseRef &)
 p4 of tracks associated at calo face More...
 
const LorentzVectortracksAtCaloP4 (const Container &, const reco::Jet &)
 p4 of tracks associated at calo face More...
 
int tracksAtVertexNumber (const Container &, const reco::JetBaseRef &)
 Number of tracks associated in the vertex. More...
 
int tracksAtVertexNumber (const Container &, const reco::Jet &)
 Number of tracks associated in the vertex. More...
 
const LorentzVectortracksAtVertexP4 (const Container &, const reco::JetBaseRef &)
 p4 of tracks associated in the vertex More...
 
const LorentzVectortracksAtVertexP4 (const Container &, const reco::Jet &)
 

Typedef Documentation

Definition at line 29 of file JetExtendedAssociation.h.

Definition at line 25 of file JetExtendedAssociation.h.

Definition at line 32 of file JetExtendedAssociation.h.

Definition at line 33 of file JetExtendedAssociation.h.

Definition at line 34 of file JetExtendedAssociation.h.

Definition at line 31 of file JetExtendedAssociation.h.

Definition at line 27 of file JetExtendedAssociation.h.

Definition at line 30 of file JetExtendedAssociation.h.

Definition at line 28 of file JetExtendedAssociation.h.

Function Documentation

std::vector< reco::JetBaseRef > reco::JetExtendedAssociation::allJets ( const Container fContainer)
const reco::JetExtendedAssociation::JetExtendedData & reco::JetExtendedAssociation::getValue ( const Container fContainer,
const reco::JetBaseRef fJet 
)
const reco::JetExtendedAssociation::JetExtendedData & reco::JetExtendedAssociation::getValue ( const Container fContainer,
const reco::Jet fJet 
)

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

Definition at line 57 of file JetExtendedAssociation.cc.

58  {
59  return JetAssociationTemplate::getValue<Container, Value> (fContainer, fJet);
60 }
bool reco::JetExtendedAssociation::hasJet ( const Container fContainer,
const reco::JetBaseRef fJet 
)

check if jet is associated

Definition at line 66 of file JetExtendedAssociation.cc.

Referenced by reco::JetFloatAssociation::hasJet(), reco::JetTracksAssociation::hasJet(), and hasJet().

67  {
68  return JetAssociationTemplate::hasJet (fContainer, fJet);
69 }
bool hasJet(const Container &, const reco::JetBaseRef &)
check if jet is associated
bool reco::JetExtendedAssociation::hasJet ( const Container fContainer,
const reco::Jet fJet 
)

check if jet is associated

Definition at line 71 of file JetExtendedAssociation.cc.

References hasJet().

72  {
73  return JetAssociationTemplate::hasJet (fContainer, fJet);
74 }
bool hasJet(const Container &, const reco::JetBaseRef &)
check if jet is associated
bool reco::JetExtendedAssociation::setValue ( Container fContainer,
const reco::JetBaseRef fJet,
const JetExtendedData fValue 
)

associate jet with value. Returns false and associate nothing if jet is already associated

Definition at line 44 of file JetExtendedAssociation.cc.

Referenced by Mixins._Parameterizable::__setattr__(), Mixins::_modifyParametersFromDict(), JetExtender::produce(), GenJetBCEnergyRatio::produce(), reco::JetFloatAssociation::setValue(), reco::JetTracksAssociation::setValue(), setValue(), and edm::AssociationVector< PFTauRefProd, std::vector< int > >::value().

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

associate jet with value. Returns false and associate nothing if jet is already associated

Definition at line 38 of file JetExtendedAssociation.cc.

References setValue().

40  {
41  return JetAssociationTemplate::setValue (fContainer, fJet, fValue);
42 }
bool setValue(Container &, const reco::JetBaseRef &, const JetExtendedData &)
associate jet with value. Returns false and associate nothing if jet is already associated ...
int reco::JetExtendedAssociation::tracksAtCaloNumber ( const Container fContainer,
const reco::JetBaseRef fJet 
)

Number of tracks associated at calo face.

Definition at line 22 of file JetExtendedAssociation.cc.

References getValue(), and reco::JetExtendedAssociation::JetExtendedData::mTracksAtCaloNumber.

22  {
23  return getValue (fContainer, fJet).mTracksAtCaloNumber;
24 }
const JetExtendedData & getValue(const Container &, const reco::JetBaseRef &)
get value for the association. Throw exception if no association found
int reco::JetExtendedAssociation::tracksAtCaloNumber ( const Container fContainer,
const reco::Jet fJet 
)

Number of tracks associated at calo face.

Definition at line 25 of file JetExtendedAssociation.cc.

References getValue(), and reco::JetExtendedAssociation::JetExtendedData::mTracksAtCaloNumber.

25  {
26  return getValue (fContainer, fJet).mTracksAtCaloNumber;
27 }
const JetExtendedData & getValue(const Container &, const reco::JetBaseRef &)
get value for the association. Throw exception if no association found
const reco::JetExtendedAssociation::LorentzVector & reco::JetExtendedAssociation::tracksAtCaloP4 ( const Container fContainer,
const reco::JetBaseRef fJet 
)

p4 of tracks associated at calo face

Definition at line 30 of file JetExtendedAssociation.cc.

References getValue(), and reco::JetExtendedAssociation::JetExtendedData::mTracksAtCaloP4.

30  {
31  return getValue (fContainer, fJet).mTracksAtCaloP4;
32 }
const JetExtendedData & getValue(const Container &, const reco::JetBaseRef &)
get value for the association. Throw exception if no association found
const reco::JetExtendedAssociation::LorentzVector & reco::JetExtendedAssociation::tracksAtCaloP4 ( const Container fContainer,
const reco::Jet fJet 
)

p4 of tracks associated at calo face

Definition at line 34 of file JetExtendedAssociation.cc.

References getValue(), and reco::JetExtendedAssociation::JetExtendedData::mTracksAtCaloP4.

34  {
35  return getValue (fContainer, fJet).mTracksAtCaloP4;
36 }
const JetExtendedData & getValue(const Container &, const reco::JetBaseRef &)
get value for the association. Throw exception if no association found
int reco::JetExtendedAssociation::tracksAtVertexNumber ( const Container fContainer,
const reco::JetBaseRef fJet 
)

Number of tracks associated in the vertex.

Definition at line 6 of file JetExtendedAssociation.cc.

References getValue(), and reco::JetExtendedAssociation::JetExtendedData::mTracksAtVertexNumber.

6  {
7  return getValue (fContainer, fJet).mTracksAtVertexNumber;
8 }
const JetExtendedData & getValue(const Container &, const reco::JetBaseRef &)
get value for the association. Throw exception if no association found
int reco::JetExtendedAssociation::tracksAtVertexNumber ( const Container fContainer,
const reco::Jet fJet 
)

Number of tracks associated in the vertex.

Definition at line 9 of file JetExtendedAssociation.cc.

References getValue(), and reco::JetExtendedAssociation::JetExtendedData::mTracksAtVertexNumber.

9  {
10  return getValue (fContainer, fJet).mTracksAtVertexNumber;
11 }
const JetExtendedData & getValue(const Container &, const reco::JetBaseRef &)
get value for the association. Throw exception if no association found
const reco::JetExtendedAssociation::LorentzVector & reco::JetExtendedAssociation::tracksAtVertexP4 ( const Container fContainer,
const reco::JetBaseRef fJet 
)

p4 of tracks associated in the vertex

Definition at line 14 of file JetExtendedAssociation.cc.

References getValue(), and reco::JetExtendedAssociation::JetExtendedData::mTracksAtVertexP4.

14  {
15  return getValue (fContainer, fJet).mTracksAtVertexP4;
16 }
const JetExtendedData & getValue(const Container &, const reco::JetBaseRef &)
get value for the association. Throw exception if no association found
const reco::JetExtendedAssociation::LorentzVector & reco::JetExtendedAssociation::tracksAtVertexP4 ( const Container fContainer,
const reco::Jet fJet 
)

Definition at line 18 of file JetExtendedAssociation.cc.

References getValue(), and reco::JetExtendedAssociation::JetExtendedData::mTracksAtVertexP4.

18  {
19  return getValue (fContainer, fJet).mTracksAtVertexP4;
20 }
const JetExtendedData & getValue(const Container &, const reco::JetBaseRef &)
get value for the association. Throw exception if no association found