HLTMuonTrkL1TkMuFilter

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
#ifndef HLTMuonTrkL1TkMuFilter_h
#define HLTMuonTrkL1TkMuFilter_h

#include "HLTrigger/HLTcore/interface/HLTFilter.h"
#include "DataFormats/RecoCandidate/interface/RecoChargedCandidateFwd.h"
#include "DataFormats/MuonReco/interface/MuonFwd.h"
#include "DataFormats/MuonReco/interface/MuonSelectors.h"
#include "DataFormats/L1TMuonPhase2/interface/TrackerMuon.h"
#include "DataFormats/L1Trigger/interface/P2GTAlgoBlock.h"

namespace edm {
  class ConfigurationDescriptions;
}

class HLTMuonTrkL1TkMuFilter : public HLTFilter {
public:
  HLTMuonTrkL1TkMuFilter(const edm::ParameterSet&);
  ~HLTMuonTrkL1TkMuFilter() override {}
  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
  bool hltFilter(edm::Event&,
                 const edm::EventSetup&,
                 trigger::TriggerFilterObjectWithRefs& filterproduct) const override;

private:
  // WARNING: two input collection represent should be aligned and represent
  // the same list of muons, just stored in different containers
  edm::InputTag m_muonsTag;                             // input collection of muons
  edm::EDGetTokenT<reco::MuonCollection> m_muonsToken;  // input collection of muons
  edm::InputTag m_candsTag;                             // input collection of candidates to be referenced
  edm::EDGetTokenT<reco::RecoChargedCandidateCollection> m_candsToken;  // input collection of candidates to be referenced
  edm::InputTag m_l1GTAlgoBlockTag;
  edm::EDGetTokenT<l1t::P2GTAlgoBlockMap> m_algoBlockToken;
  std::vector<std::string> m_l1GTAlgoNames;
  int m_minTrkHits;
  int m_minMuonHits;
  int m_minMuonStations;
  double m_maxNormalizedChi2;
  double m_minPt;
  unsigned int m_minN;
  double m_maxAbsEta;
  bool m_saveTags;
};

#endif  //HLTMuonTrkL1TkMuFilter_h