File indexing completed on 2024-04-06 12:25:31
0001 #ifndef RecoJets_JetProducers_interface_JetMuonHitsIDHelper_h
0002 #define RecoJets_JetProducers_interface_JetMuonHitsIDHelper_h
0003
0004 #include "FWCore/Framework/interface/Frameworkfwd.h"
0005 #include "FWCore/Framework/interface/Event.h"
0006 #include "FWCore/Framework/interface/EventSetup.h"
0007 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0008 #include "FWCore/ParameterSet/interface/ParameterSetDescription.h"
0009 #include "FWCore/Framework/interface/ConsumesCollector.h"
0010
0011 #include "DataFormats/JetReco/interface/Jet.h"
0012 #include "DataFormats/RPCRecHit/interface/RPCRecHitCollection.h"
0013
0014 #include "Geometry/CommonDetUnit/interface/GlobalTrackingGeometry.h"
0015 #include "Geometry/Records/interface/GlobalTrackingGeometryRecord.h"
0016
0017 namespace reco {
0018
0019 namespace helper {
0020
0021 class JetMuonHitsIDHelper {
0022 public:
0023
0024 JetMuonHitsIDHelper() {}
0025 JetMuonHitsIDHelper(edm::ParameterSet const& pset, edm::ConsumesCollector&& iC);
0026 ~JetMuonHitsIDHelper() {}
0027
0028 void fillDescription(edm::ParameterSetDescription& iDesc);
0029
0030 void initValues();
0031
0032
0033 void calculate(const edm::Event& event, const edm::EventSetup& isetup, const reco::Jet& jet, const int iDbg = 0);
0034
0035
0036 int numberOfHits1RPC() const { return numberOfHits1RPC_; }
0037 int numberOfHits2RPC() const { return numberOfHits2RPC_; }
0038 int numberOfHits3RPC() const { return numberOfHits3RPC_; }
0039 int numberOfHits4RPC() const { return numberOfHits4RPC_; }
0040 int numberOfHitsRPC() const { return numberOfHitsRPC_; }
0041
0042 private:
0043 edm::InputTag rpcRecHits_;
0044 bool isRECO_;
0045
0046 int numberOfHits1RPC_;
0047 int numberOfHits2RPC_;
0048 int numberOfHits3RPC_;
0049 int numberOfHits4RPC_;
0050 int numberOfHitsRPC_;
0051
0052 edm::EDGetTokenT<RPCRecHitCollection> input_rpchits_token_;
0053 edm::ESGetToken<GlobalTrackingGeometry, GlobalTrackingGeometryRecord> trackingGeometryToken_;
0054 };
0055 }
0056 }
0057 #endif