Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:25:29

0001 // \class JetTracksAssociatorAtCaloFace JetTracksAssociatorAtCaloFace.cc
0002 // Associate jet with tracks extrapolated to CALO face
0003 // Accommodated for Jet Package by: Fedor Ratnikov Sep.7, 2007
0004 //
0005 //
0006 #ifndef JetTracksAssociatorAtCaloFace_h
0007 #define JetTracksAssociatorAtCaloFace_h
0008 
0009 #include "FWCore/Framework/interface/stream/EDProducer.h"
0010 #include "DataFormats/Common/interface/EDProductfwd.h"
0011 #include "FWCore/Utilities/interface/InputTag.h"
0012 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0013 
0014 #include "RecoJets/JetAssociationAlgorithms/interface/JetTracksAssociationXtrpCalo.h"
0015 
0016 #include "FWCore/Framework/interface/ESHandle.h"
0017 #include "Geometry/CaloGeometry/interface/CaloGeometry.h"
0018 #include "DataFormats/Common/interface/View.h"
0019 #include "DataFormats/JetReco/interface/JetTracksAssociation.h"
0020 
0021 class JetTracksAssociatorAtCaloFace : public edm::stream::EDProducer<> {
0022 public:
0023   JetTracksAssociatorAtCaloFace(const edm::ParameterSet&);
0024   ~JetTracksAssociatorAtCaloFace() override {}
0025 
0026   void produce(edm::Event&, const edm::EventSetup&) override;
0027 
0028 private:
0029   edm::EDGetTokenT<edm::View<reco::Jet>> mJets;
0030   edm::EDGetTokenT<std::vector<reco::TrackExtrapolation>> mExtrapolations;
0031   edm::ESGetToken<CaloGeometry, CaloGeometryRecord> mGeometry;
0032 
0033   JetTracksAssociationXtrpCalo mAssociator;
0034   double dR_;
0035 };
0036 
0037 #endif