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

◆ Container

Definition at line 29 of file JetExtendedAssociation.h.

◆ LorentzVector

Definition at line 25 of file JetExtendedAssociation.h.

◆ Ref

Definition at line 32 of file JetExtendedAssociation.h.

◆ RefProd

Definition at line 33 of file JetExtendedAssociation.h.

◆ RefVector

Definition at line 34 of file JetExtendedAssociation.h.

◆ transient_vector_type

Definition at line 31 of file JetExtendedAssociation.h.

◆ Value

Definition at line 27 of file JetExtendedAssociation.h.

◆ value_type

Definition at line 30 of file JetExtendedAssociation.h.

◆ Values

Definition at line 28 of file JetExtendedAssociation.h.

Function Documentation

◆ allJets()

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

◆ getValue() [1/2]

const reco::JetExtendedAssociation::JetExtendedData & reco::JetExtendedAssociation::getValue ( const Container fContainer,
const reco::JetBaseRef fJet 
)

◆ getValue() [2/2]

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 55 of file JetExtendedAssociation.cc.

56  {
57  return JetAssociationTemplate::getValue<Container, Value>(fContainer, fJet);
58 }

◆ hasJet() [1/2]

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

check if jet is associated

Definition at line 64 of file JetExtendedAssociation.cc.

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

64  {
65  return JetAssociationTemplate::hasJet(fContainer, fJet);
66 }
bool hasJet(const Container &, const reco::JetBaseRef &)
check if jet is associated

◆ hasJet() [2/2]

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

check if jet is associated

Definition at line 68 of file JetExtendedAssociation.cc.

References hasJet().

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

◆ setValue() [1/2]

bool reco::JetExtendedAssociation::setValue ( Container fContainer,
const reco::JetBaseRef fJet,
const JetExtendedData fValue 
)

◆ setValue() [2/2]

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

◆ tracksAtCaloNumber() [1/2]

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

◆ tracksAtCaloNumber() [2/2]

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

◆ tracksAtCaloP4() [1/2]

const reco::JetExtendedAssociation::LorentzVector & reco::JetExtendedAssociation::tracksAtCaloP4 ( const Container fContainer,
const reco::JetBaseRef fJet 
)

p4 of tracks associated at calo face

Definition at line 29 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

◆ tracksAtCaloP4() [2/2]

const reco::JetExtendedAssociation::LorentzVector & reco::JetExtendedAssociation::tracksAtCaloP4 ( const Container fContainer,
const reco::Jet fJet 
)

p4 of tracks associated at calo face

Definition at line 33 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

◆ tracksAtVertexNumber() [1/2]

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

◆ tracksAtVertexNumber() [2/2]

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

◆ tracksAtVertexP4() [1/2]

const reco::JetExtendedAssociation::LorentzVector & reco::JetExtendedAssociation::tracksAtVertexP4 ( const Container fContainer,
const reco::JetBaseRef fJet 
)

p4 of tracks associated in the vertex

Definition at line 13 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

◆ tracksAtVertexP4() [2/2]

const reco::JetExtendedAssociation::LorentzVector & reco::JetExtendedAssociation::tracksAtVertexP4 ( const Container fContainer,
const reco::Jet fJet 
)

Definition at line 17 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