CMS 3D CMS Logo

JetExtendedAssociation.cc
Go to the documentation of this file.
1 #include "JetAssociationTemplate.icc"
2 
4 
7  return getValue(fContainer, fJet).mTracksAtVertexNumber;
8 }
10  return getValue(fContainer, fJet).mTracksAtVertexNumber;
11 }
14  const Container& fContainer, const reco::JetBaseRef& fJet) {
15  return getValue(fContainer, fJet).mTracksAtVertexP4;
16 }
18  const Container& fContainer, const reco::Jet& fJet) {
19  return getValue(fContainer, fJet).mTracksAtVertexP4;
20 }
23  return getValue(fContainer, fJet).mTracksAtCaloNumber;
24 }
26  return getValue(fContainer, fJet).mTracksAtCaloNumber;
27 }
30  const Container& fContainer, const reco::JetBaseRef& fJet) {
31  return getValue(fContainer, fJet).mTracksAtCaloP4;
32 }
34  const Container& fContainer, const reco::Jet& fJet) {
35  return getValue(fContainer, fJet).mTracksAtCaloP4;
36 }
37 
39  const reco::JetBaseRef& fJet,
41  return JetAssociationTemplate::setValue(fContainer, fJet, fValue);
42 }
43 
45  const reco::JetBaseRef& fJet,
47  return JetAssociationTemplate::setValue(fContainer, fJet, fValue);
48 }
49 
51  const Container& fContainer, const reco::JetBaseRef& fJet) {
52  return JetAssociationTemplate::getValue<Container, Value>(fContainer, fJet);
53 }
54 
56  const reco::Jet& fJet) {
57  return JetAssociationTemplate::getValue<Container, Value>(fContainer, fJet);
58 }
59 
60 std::vector<reco::JetBaseRef> reco::JetExtendedAssociation::allJets(const Container& fContainer) {
61  return JetAssociationTemplate::allJets(fContainer);
62 }
63 
64 bool reco::JetExtendedAssociation::hasJet(const Container& fContainer, const reco::JetBaseRef& fJet) {
65  return JetAssociationTemplate::hasJet(fContainer, fJet);
66 }
67 
68 bool reco::JetExtendedAssociation::hasJet(const Container& fContainer, const reco::Jet& fJet) {
69  return JetAssociationTemplate::hasJet(fContainer, fJet);
70 }
71 
73  : mTracksAtVertexNumber(0), mTracksAtVertexP4(0, 0, 0, 0), mTracksAtCaloNumber(0), mTracksAtCaloP4(0, 0, 0, 0) {}
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::Jet
Base class for all types of Jets.
Definition: Jet.h:20
reco::JetExtendedAssociation::hasJet
bool hasJet(const Container &, const reco::JetBaseRef &)
check if jet is associated
Definition: JetExtendedAssociation.cc:64
reco::JetExtendedAssociation::tracksAtCaloNumber
int tracksAtCaloNumber(const Container &, const reco::JetBaseRef &)
Number of tracks associated at calo face.
Definition: JetExtendedAssociation.cc:22
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::JetExtendedData
Definition: JetExtendedAssociation.h:67
edm::AssociationVector
Definition: AssociationVector.h:67
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
reco::JetExtendedAssociation::LorentzVector
math::PtEtaPhiELorentzVectorF LorentzVector
Definition: JetExtendedAssociation.h:25
JetExtendedAssociation.h
edm::RefToBase< Jet >
reco::JetExtendedAssociation::JetExtendedData::JetExtendedData
JetExtendedData()
Definition: JetExtendedAssociation.cc:72
reco::JetExtendedAssociation::tracksAtVertexNumber
int tracksAtVertexNumber(const Container &, const reco::JetBaseRef &)
Number of tracks associated in the vertex.
Definition: JetExtendedAssociation.cc:6
reco::JetExtendedAssociation::tracksAtCaloP4
const LorentzVector & tracksAtCaloP4(const Container &, const reco::JetBaseRef &)
p4 of tracks associated at calo face
Definition: JetExtendedAssociation.cc:29
reco::JetExtendedAssociation::tracksAtVertexP4
const LorentzVector & tracksAtVertexP4(const Container &, const reco::JetBaseRef &)
p4 of tracks associated in the vertex
Definition: JetExtendedAssociation.cc:13