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::Jet &)
 get value for the association. Throw exception if no association found More...
 
const JetExtendedDatagetValue (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 &, 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::Jet &)
 Number of tracks associated at calo face. More...
 
int tracksAtCaloNumber (const Container &, const reco::JetBaseRef &)
 Number of tracks associated at calo face. More...
 
const LorentzVectortracksAtCaloP4 (const Container &, const reco::Jet &)
 p4 of tracks associated at calo face More...
 
const LorentzVectortracksAtCaloP4 (const Container &, const reco::JetBaseRef &)
 p4 of tracks associated at calo face More...
 
int tracksAtVertexNumber (const Container &, const reco::Jet &)
 Number of tracks associated in the vertex. More...
 
int tracksAtVertexNumber (const Container &, const reco::JetBaseRef &)
 Number of tracks associated in the vertex. More...
 
const LorentzVectortracksAtVertexP4 (const Container &, const reco::Jet &)
 
const LorentzVectortracksAtVertexP4 (const Container &, const reco::JetBaseRef &)
 p4 of tracks associated in the vertex More...
 

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::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 }

◆ getValue() [2/2]

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

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

68  {
69  return JetAssociationTemplate::hasJet(fContainer, fJet);
70 }

References hasJet().

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

64  {
65  return JetAssociationTemplate::hasJet(fContainer, fJet);
66 }

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

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

40  {
41  return JetAssociationTemplate::setValue(fContainer, fJet, fValue);
42 }

References setValue().

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

25  {
26  return getValue(fContainer, fJet).mTracksAtCaloNumber;
27 }

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

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

22  {
23  return getValue(fContainer, fJet).mTracksAtCaloNumber;
24 }

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

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

34  {
35  return getValue(fContainer, fJet).mTracksAtCaloP4;
36 }

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

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

30  {
31  return getValue(fContainer, fJet).mTracksAtCaloP4;
32 }

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

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

9  {
10  return getValue(fContainer, fJet).mTracksAtVertexNumber;
11 }

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

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

6  {
7  return getValue(fContainer, fJet).mTracksAtVertexNumber;
8 }

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

◆ tracksAtVertexP4() [1/2]

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

Definition at line 17 of file JetExtendedAssociation.cc.

18  {
19  return getValue(fContainer, fJet).mTracksAtVertexP4;
20 }

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

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

14  {
15  return getValue(fContainer, fJet).mTracksAtVertexP4;
16 }

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

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::JetExtendedData::mTracksAtCaloP4
LorentzVector mTracksAtCaloP4
Definition: JetExtendedAssociation.h:74
reco::JetExtendedAssociation::JetExtendedData::mTracksAtCaloNumber
int mTracksAtCaloNumber
Definition: JetExtendedAssociation.h:73
reco::JetExtendedAssociation::JetExtendedData::mTracksAtVertexNumber
int mTracksAtVertexNumber
Definition: JetExtendedAssociation.h:71
reco::JetExtendedAssociation::JetExtendedData::mTracksAtVertexP4
LorentzVector mTracksAtVertexP4
Definition: JetExtendedAssociation.h:72
reco::JetExtendedAssociation::getValue
const JetExtendedData & getValue(const Container &, const reco::JetBaseRef &)
get value for the association. Throw exception if no association found
Definition: JetExtendedAssociation.cc:50
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