Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:58:25

0001 #ifndef CalibMuon_DTCalibration_DTSegmentSelector_h
0002 #define CalibMuon_DTCalibration_DTSegmentSelector_h
0003 
0004 /*
0005  *  \author A. Vilela Pereira
0006  */
0007 
0008 #include "FWCore/Framework/interface/one/EDAnalyzer.h"
0009 #include "FWCore/Framework/interface/Event.h"
0010 #include "FWCore/Framework/interface/EventSetup.h"
0011 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0012 #include "FWCore/Framework/interface/ESHandle.h"
0013 #include "FWCore/Framework/interface/ConsumesCollector.h"
0014 #include "FWCore/Utilities/interface/InputTag.h"
0015 #include "DataFormats/MuonReco/interface/Muon.h"
0016 #include "DataFormats/MuonReco/interface/MuonFwd.h"
0017 #include "CondFormats/DataRecord/interface/DTStatusFlagRcd.h"
0018 #include "CondFormats/DTObjects/interface/DTStatusFlag.h"
0019 
0020 #include <vector>
0021 
0022 class DTRecSegment4D;
0023 class DTRecHit1D;
0024 class DTStatusFlag;
0025 
0026 class DTSegmentSelector {
0027 public:
0028   DTSegmentSelector(edm::ParameterSet const& pset, edm::ConsumesCollector& iC);
0029   ~DTSegmentSelector() {}
0030   bool operator()(DTRecSegment4D const&, edm::Event const&, edm::EventSetup const&);
0031 
0032 private:
0033   bool checkNoisySegment(edm::ESHandle<DTStatusFlag> const&, std::vector<DTRecHit1D> const&);
0034 
0035   edm::InputTag muonTags_;
0036   edm::EDGetTokenT<reco::MuonCollection> muonToken_;
0037   bool checkNoisyChannels_;
0038   int minHitsPhi_;
0039   int minHitsZ_;
0040   double maxChi2_;
0041   double maxAnglePhi_;
0042   double maxAngleZ_;
0043   edm::ESGetToken<DTStatusFlag, DTStatusFlagRcd> theStatusMapToken_;
0044 };
0045 
0046 #endif