Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:25:34

0001 #ifndef RECOMET_METPRODUCERS_CSCHALODATAPRODUCER_H
0002 #define RECOMET_METPRODUCERS_CSCHALODATAPRODUCER_H
0003 
0004 /*
0005   [class]:  CSCHaloDataProducer
0006   [authors]: R. Remington, The University of Florida
0007   [description]: EDProducer which runs the CSCHaloAlgo and stores the CSCHaloData object in the event
0008   [date]: October 15, 2009
0009 */
0010 
0011 //Standard C++ classes
0012 #include <iostream>
0013 #include <string>
0014 #include <map>
0015 #include <vector>
0016 #include <utility>
0017 #include <ostream>
0018 #include <fstream>
0019 #include <algorithm>
0020 #include <cmath>
0021 #include <memory>
0022 #include <iomanip>
0023 #include <cstdlib>
0024 
0025 // user include files
0026 #include "FWCore/Utilities/interface/EDGetToken.h"
0027 #include "FWCore/Utilities/interface/ESGetToken.h"
0028 #include "FWCore/Framework/interface/Frameworkfwd.h"
0029 #include "FWCore/Framework/interface/stream/EDProducer.h"
0030 #include "FWCore/Framework/interface/Event.h"
0031 #include "FWCore/Framework/interface/MakerMacros.h"
0032 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0033 
0034 #include "DataFormats/METReco/interface/CSCHaloData.h"
0035 #include "RecoMET/METAlgorithms/interface/CSCHaloAlgo.h"
0036 //Included Classes (semi-alphabetical)
0037 #include "CondFormats/CSCObjects/interface/CSCDBCrosstalk.h"
0038 #include "CondFormats/CSCObjects/interface/CSCDBGains.h"
0039 #include "CondFormats/CSCObjects/interface/CSCDBNoiseMatrix.h"
0040 #include "CondFormats/CSCObjects/interface/CSCDBPedestals.h"
0041 #include "CondFormats/DataRecord/interface/CSCDBCrosstalkRcd.h"
0042 #include "CondFormats/DataRecord/interface/CSCDBGainsRcd.h"
0043 #include "CondFormats/DataRecord/interface/CSCDBNoiseMatrixRcd.h"
0044 #include "CondFormats/DataRecord/interface/CSCDBPedestalsRcd.h"
0045 
0046 #include "DataFormats/Candidate/interface/CandidateFwd.h"
0047 #include "DataFormats/Candidate/interface/Candidate.h"
0048 #include "DataFormats/CLHEP/interface/AlgebraicObjects.h"
0049 #include "DataFormats/Common/interface/Handle.h"
0050 #include "DataFormats/Common/interface/View.h"
0051 #include "DataFormats/Common/interface/TriggerResults.h"
0052 #include "DataFormats/CSCDigi/interface/CSCCorrelatedLCTDigiCollection.h"
0053 #include "DataFormats/CSCDigi/interface/CSCWireDigi.h"
0054 #include "DataFormats/CSCDigi/interface/CSCWireDigiCollection.h"
0055 #include "DataFormats/CSCDigi/interface/CSCStripDigi.h"
0056 #include "DataFormats/CSCDigi/interface/CSCStripDigiCollection.h"
0057 #include "DataFormats/CSCDigi/interface/CSCComparatorDigi.h"
0058 #include "DataFormats/CSCDigi/interface/CSCComparatorDigiCollection.h"
0059 #include "DataFormats/CSCDigi/interface/CSCALCTDigi.h"
0060 #include "DataFormats/CSCDigi/interface/CSCALCTDigiCollection.h"
0061 #include "DataFormats/CSCRecHit/interface/CSCRecHit2D.h"
0062 #include "DataFormats/CSCRecHit/interface/CSCSegmentCollection.h"
0063 #include "DataFormats/CSCRecHit/interface/CSCRecHit2DCollection.h"
0064 #include "DataFormats/CSCRecHit/interface/CSCSegment.h"
0065 #include "DataFormats/DetId/interface/DetId.h"
0066 #include "DataFormats/GeometrySurface/interface/Cylinder.h"
0067 #include "DataFormats/GeometrySurface/interface/Plane.h"
0068 #include "DataFormats/GeometrySurface/interface/Cone.h"
0069 #include "DataFormats/GeometryVector/interface/GlobalPoint.h"
0070 #include "DataFormats/GeometryVector/interface/GlobalVector.h"
0071 #include "DataFormats/GeometryVector/interface/LocalPoint.h"
0072 #include "DataFormats/GeometryVector/interface/LocalVector.h"
0073 #include "DataFormats/L1CSCTrackFinder/interface/L1CSCTrackCollection.h"
0074 #include "DataFormats/L1CSCTrackFinder/interface/L1CSCStatusDigiCollection.h"
0075 #include "DataFormats/L1GlobalMuonTrigger/interface/L1MuRegionalCand.h"
0076 #include "DataFormats/L1GlobalMuonTrigger/interface/L1MuGMTReadoutRecord.h"
0077 #include "DataFormats/L1GlobalMuonTrigger/interface/L1MuGMTReadoutCollection.h"
0078 #include "DataFormats/MuonDetId/interface/CSCIndexer.h"
0079 #include "DataFormats/MuonDetId/interface/CSCDetId.h"
0080 #include "DataFormats/MuonReco/interface/MuonFwd.h"
0081 #include "DataFormats/MuonReco/interface/Muon.h"
0082 #include "DataFormats/RecoCandidate/interface/RecoCandidate.h"
0083 #include "DataFormats/RPCDigi/interface/RPCDigiCollection.h"
0084 #include "DataFormats/RPCRecHit/interface/RPCRecHitCollection.h"
0085 #include "DataFormats/TrackingRecHit/interface/RecSegment.h"
0086 #include "DataFormats/TrackReco/interface/TrackFwd.h"
0087 #include "DataFormats/TrackReco/interface/Track.h"
0088 #include "DataFormats/TrajectorySeed/interface/TrajectorySeedCollection.h"
0089 
0090 #include "FWCore/Framework/interface/Frameworkfwd.h"
0091 #include "FWCore/Framework/interface/Event.h"
0092 #include "FWCore/Framework/interface/MakerMacros.h"
0093 #include "FWCore/Framework/interface/EventSetup.h"
0094 #include "FWCore/Framework/interface/ESHandle.h"
0095 #include "FWCore/Framework/interface/stream/EDProducer.h"
0096 
0097 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0098 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0099 #include "FWCore/PluginManager/interface/ModuleDef.h"
0100 
0101 #include "Geometry/CommonDetUnit/interface/GeomDet.h"
0102 #include "Geometry/CSCGeometry/interface/CSCGeometry.h"
0103 #include "Geometry/CSCGeometry/interface/CSCChamber.h"
0104 #include "Geometry/CSCGeometry/interface/CSCLayer.h"
0105 #include "Geometry/CSCGeometry/interface/CSCLayerGeometry.h"
0106 #include "Geometry/Records/interface/GlobalTrackingGeometryRecord.h"
0107 #include "Geometry/RPCGeometry/interface/RPCRoll.h"
0108 #include "Geometry/RPCGeometry/interface/RPCGeometry.h"
0109 #include "Geometry/Records/interface/MuonGeometryRecord.h"
0110 #include "Geometry/Records/interface/GlobalTrackingGeometryRecord.h"
0111 #include "L1Trigger/CSCTrackFinder/interface/CSCSectorReceiverLUT.h"
0112 #include "L1Trigger/CSCTrackFinder/interface/CSCSectorReceiverLUT.h"
0113 #include "MagneticField/Records/interface/IdealMagneticFieldRecord.h"
0114 #include "MagneticField/Engine/interface/MagneticField.h"
0115 
0116 #include "RecoMuon/MuonIdentification/interface/TimeMeasurementSequence.h"
0117 #include "RecoMuon/TrackingTools/interface/MuonPatternRecoDumper.h"
0118 #include "RecoMuon/TrackingTools/interface/MuonSegmentMatcher.h"
0119 #include "RecoMuon/TransientTrackingRecHit/interface/MuonTransientTrackingRecHitBuilder.h"
0120 #include "RecoMuon/TransientTrackingRecHit/interface/MuonTransientTrackingRecHit.h"
0121 
0122 #include "TrackingTools/GeomPropagators/interface/Propagator.h"
0123 #include "TrackingTools/GeomPropagators/interface/AnalyticalPropagator.h"
0124 #include "TrackPropagation/SteppingHelixPropagator/interface/SteppingHelixPropagator.h"
0125 #include "TrackingTools/TransientTrack/interface/TransientTrack.h"
0126 
0127 class MuonServiceProxy;
0128 
0129 namespace reco {
0130   class CSCHaloDataProducer : public edm::stream::EDProducer<> {
0131   public:
0132     explicit CSCHaloDataProducer(const edm::ParameterSet &);
0133     ~CSCHaloDataProducer() override;
0134 
0135   private:
0136     void produce(edm::Event &, const edm::EventSetup &) override;
0137 
0138     //CSCHaloAlgo
0139     CSCHaloAlgo CSCAlgo;
0140 
0141     //Digi Level
0142     edm::InputTag IT_L1MuGMTReadout;
0143     edm::InputTag IT_ALCT;
0144 
0145     //HLT
0146     edm::InputTag IT_HLTResult;
0147     std::vector<edm::InputTag> vIT_HLTBit;
0148 
0149     //Muon-Segment Matching
0150     MuonSegmentMatcher *TheMatcher;
0151 
0152     //RecHit Level
0153     edm::InputTag IT_CSCRecHit;
0154 
0155     //Calo rechits
0156     edm::InputTag IT_HBHErh;
0157     edm::InputTag IT_ECALBrh;
0158     edm::InputTag IT_ECALErh;
0159 
0160     //Higher Level Reco
0161     edm::InputTag IT_CosmicMuon;
0162     edm::InputTag IT_CSCSegment;
0163     edm::InputTag IT_Muon;
0164     edm::InputTag IT_SA;
0165 
0166     // TOKENS
0167     edm::ESGetToken<CSCGeometry, MuonGeometryRecord> cscGeometry_token;
0168     edm::EDGetTokenT<reco::MuonCollection> cosmicmuon_token_;
0169     edm::EDGetTokenT<reco::MuonTimeExtraMap> csctimemap_token_;
0170     edm::EDGetTokenT<reco::MuonCollection> muon_token_;
0171     edm::EDGetTokenT<CSCSegmentCollection> cscsegment_token_;
0172     edm::EDGetTokenT<CSCRecHit2DCollection> cscrechit_token_;
0173     edm::EDGetTokenT<HBHERecHitCollection> hbhereco_token_;
0174     edm::EDGetTokenT<EcalRecHitCollection> EcalRecHitsEB_token_;
0175     edm::EDGetTokenT<EcalRecHitCollection> EcalRecHitsEE_token_;
0176     edm::EDGetTokenT<CSCALCTDigiCollection> cscalct_token_;
0177     edm::EDGetTokenT<L1MuGMTReadoutCollection> l1mugmtro_token_;
0178     edm::EDGetTokenT<edm::TriggerResults> hltresult_token_;
0179   };
0180 }  // namespace reco
0181 
0182 #endif