Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:53:44

0001 #include "JetAssociationTemplate.icc"
0002 
0003 #include "DataFormats/JetReco/interface/JetExtendedAssociation.h"
0004 
0005 /// Number of tracks associated in the vertex
0006 int reco::JetExtendedAssociation::tracksAtVertexNumber(const Container& fContainer, const reco::JetBaseRef& fJet) {
0007   return getValue(fContainer, fJet).mTracksAtVertexNumber;
0008 }
0009 int reco::JetExtendedAssociation::tracksAtVertexNumber(const Container& fContainer, const reco::Jet& fJet) {
0010   return getValue(fContainer, fJet).mTracksAtVertexNumber;
0011 }
0012 /// p4 of tracks associated in the vertex
0013 const reco::JetExtendedAssociation::LorentzVector& reco::JetExtendedAssociation::tracksAtVertexP4(
0014     const Container& fContainer, const reco::JetBaseRef& fJet) {
0015   return getValue(fContainer, fJet).mTracksAtVertexP4;
0016 }
0017 const reco::JetExtendedAssociation::LorentzVector& reco::JetExtendedAssociation::tracksAtVertexP4(
0018     const Container& fContainer, const reco::Jet& fJet) {
0019   return getValue(fContainer, fJet).mTracksAtVertexP4;
0020 }
0021 /// Number of tracks associated at calo face
0022 int reco::JetExtendedAssociation::tracksAtCaloNumber(const Container& fContainer, const reco::JetBaseRef& fJet) {
0023   return getValue(fContainer, fJet).mTracksAtCaloNumber;
0024 }
0025 int reco::JetExtendedAssociation::tracksAtCaloNumber(const Container& fContainer, const reco::Jet& fJet) {
0026   return getValue(fContainer, fJet).mTracksAtCaloNumber;
0027 }
0028 /// p4 of tracks associated at calo face
0029 const reco::JetExtendedAssociation::LorentzVector& reco::JetExtendedAssociation::tracksAtCaloP4(
0030     const Container& fContainer, const reco::JetBaseRef& fJet) {
0031   return getValue(fContainer, fJet).mTracksAtCaloP4;
0032 }
0033 const reco::JetExtendedAssociation::LorentzVector& reco::JetExtendedAssociation::tracksAtCaloP4(
0034     const Container& fContainer, const reco::Jet& fJet) {
0035   return getValue(fContainer, fJet).mTracksAtCaloP4;
0036 }
0037 
0038 bool reco::JetExtendedAssociation::setValue(Container* fContainer,
0039                                             const reco::JetBaseRef& fJet,
0040                                             const reco::JetExtendedAssociation::JetExtendedData& fValue) {
0041   return JetAssociationTemplate::setValue(fContainer, fJet, fValue);
0042 }
0043 
0044 bool reco::JetExtendedAssociation::setValue(Container& fContainer,
0045                                             const reco::JetBaseRef& fJet,
0046                                             const reco::JetExtendedAssociation::JetExtendedData& fValue) {
0047   return JetAssociationTemplate::setValue(fContainer, fJet, fValue);
0048 }
0049 
0050 const reco::JetExtendedAssociation::JetExtendedData& reco::JetExtendedAssociation::getValue(
0051     const Container& fContainer, const reco::JetBaseRef& fJet) {
0052   return JetAssociationTemplate::getValue<Container, Value>(fContainer, fJet);
0053 }
0054 
0055 const reco::JetExtendedAssociation::JetExtendedData& reco::JetExtendedAssociation::getValue(const Container& fContainer,
0056                                                                                             const reco::Jet& fJet) {
0057   return JetAssociationTemplate::getValue<Container, Value>(fContainer, fJet);
0058 }
0059 
0060 std::vector<reco::JetBaseRef> reco::JetExtendedAssociation::allJets(const Container& fContainer) {
0061   return JetAssociationTemplate::allJets(fContainer);
0062 }
0063 
0064 bool reco::JetExtendedAssociation::hasJet(const Container& fContainer, const reco::JetBaseRef& fJet) {
0065   return JetAssociationTemplate::hasJet(fContainer, fJet);
0066 }
0067 
0068 bool reco::JetExtendedAssociation::hasJet(const Container& fContainer, const reco::Jet& fJet) {
0069   return JetAssociationTemplate::hasJet(fContainer, fJet);
0070 }
0071 
0072 reco::JetExtendedAssociation::JetExtendedData::JetExtendedData()
0073     : mTracksAtVertexNumber(0), mTracksAtVertexP4(0, 0, 0, 0), mTracksAtCaloNumber(0), mTracksAtCaloP4(0, 0, 0, 0) {}