HLTL1TMuonSelector

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
#ifndef HLTTrigger_HLTL1TMuonSelector_HLTL1TMuonSelector_H
#define HLTTrigger_HLTL1TMuonSelector_HLTL1TMuonSelector_H

//-------------------------------------------------
//
/**  \class HLTL1TMuonSelector
 * 
 *   HLTL1TMuonSelector:
 *   Simple selector to output a subset of L1 muon collection 
 *   
 *   based on RecoMuon/L2MuonSeedGenerator
 *
 *
 *   \author  D. Olivito
 */
//
//--------------------------------------------------

#include "FWCore/Framework/interface/global/EDProducer.h"
#include "FWCore/Utilities/interface/InputTag.h"

// Data Formats
#include "DataFormats/TrajectoryState/interface/PTrajectoryStateOnDet.h"
#include "DataFormats/MuonDetId/interface/DTChamberId.h"
#include "DataFormats/MuonDetId/interface/CSCDetId.h"
#include "DataFormats/L1Trigger/interface/Muon.h"
#include "DataFormats/Common/interface/Handle.h"
#include "DataFormats/GeometrySurface/interface/BoundCylinder.h"
#include "DataFormats/Math/interface/deltaR.h"

namespace edm {
  class ParameterSet;
  class Event;
  class EventSetup;
}  // namespace edm

class HLTL1TMuonSelector : public edm::global::EDProducer<> {
public:
  /// Constructor
  explicit HLTL1TMuonSelector(const edm::ParameterSet&);

  /// Destructor
  ~HLTL1TMuonSelector() override;

  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
  void produce(edm::StreamID, edm::Event&, const edm::EventSetup&) const override;

private:
  edm::InputTag theSource;

  edm::EDGetTokenT<l1t::MuonBxCollection> muCollToken_;

  const double theL1MinPt;
  const double theL1MaxEta;
  const unsigned theL1MinQuality;

  /// use central bx only muons
  bool centralBxOnly_;
};

#endif