Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:18:35

0001 #ifndef HLTTrigger_HLTL1TMuonSelector_HLTL1TMuonSelector_H
0002 #define HLTTrigger_HLTL1TMuonSelector_HLTL1TMuonSelector_H
0003 
0004 //-------------------------------------------------
0005 //
0006 /**  \class HLTL1TMuonSelector
0007  * 
0008  *   HLTL1TMuonSelector:
0009  *   Simple selector to output a subset of L1 muon collection 
0010  *   
0011  *   based on RecoMuon/L2MuonSeedGenerator
0012  *
0013  *
0014  *   \author  D. Olivito
0015  */
0016 //
0017 //--------------------------------------------------
0018 
0019 #include "FWCore/Framework/interface/global/EDProducer.h"
0020 #include "FWCore/Utilities/interface/InputTag.h"
0021 
0022 // Data Formats
0023 #include "DataFormats/TrajectoryState/interface/PTrajectoryStateOnDet.h"
0024 #include "DataFormats/MuonDetId/interface/DTChamberId.h"
0025 #include "DataFormats/MuonDetId/interface/CSCDetId.h"
0026 #include "DataFormats/L1Trigger/interface/Muon.h"
0027 #include "DataFormats/Common/interface/Handle.h"
0028 #include "DataFormats/GeometrySurface/interface/BoundCylinder.h"
0029 #include "DataFormats/Math/interface/deltaR.h"
0030 
0031 namespace edm {
0032   class ParameterSet;
0033   class Event;
0034   class EventSetup;
0035 }  // namespace edm
0036 
0037 class HLTL1TMuonSelector : public edm::global::EDProducer<> {
0038 public:
0039   /// Constructor
0040   explicit HLTL1TMuonSelector(const edm::ParameterSet&);
0041 
0042   /// Destructor
0043   ~HLTL1TMuonSelector() override;
0044 
0045   static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
0046   void produce(edm::StreamID, edm::Event&, const edm::EventSetup&) const override;
0047 
0048 private:
0049   edm::InputTag theSource;
0050 
0051   edm::EDGetTokenT<l1t::MuonBxCollection> muCollToken_;
0052 
0053   const double theL1MinPt;
0054   const double theL1MaxEta;
0055   const unsigned theL1MinQuality;
0056 
0057   /// use central bx only muons
0058   bool centralBxOnly_;
0059 };
0060 
0061 #endif