CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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) {}
std::vector< reco::JetBaseRef > allJets(const Container &)
fill list of all jets associated with values. Return # of jets in the list
Base class for all types of Jets.
Definition: Jet.h:20
const LorentzVector & tracksAtCaloP4(const Container &, const reco::JetBaseRef &)
p4 of tracks associated at calo face
const LorentzVector & tracksAtVertexP4(const Container &, const reco::JetBaseRef &)
p4 of tracks associated in the vertex
int tracksAtVertexNumber(const Container &, const reco::JetBaseRef &)
Number of tracks associated in the vertex.
bool setValue(Container &, const reco::JetBaseRef &, const JetExtendedData &)
associate jet with value. Returns false and associate nothing if jet is already associated ...
bool hasJet(const Container &, const reco::JetBaseRef &)
check if jet is associated
int tracksAtCaloNumber(const Container &, const reco::JetBaseRef &)
Number of tracks associated at calo face.
const JetExtendedData & getValue(const Container &, const reco::JetBaseRef &)
get value for the association. Throw exception if no association found
math::PtEtaPhiELorentzVectorF LorentzVector