CMS 3D CMS Logo

HLT2L1TkMuonL1TkMuonMuRefDR.h
Go to the documentation of this file.
1 #ifndef HLT2L1TkMuonL1TkMuonMuRefDR_h
2 #define HLT2L1TkMuonL1TkMuonMuRefDR_h
3 
9 
12 
13 #include <string>
14 #include <vector>
15 namespace trigger {
16  class TriggerFilterObjectWithRefs;
17 }
18 
19 //
20 // class declaration
21 //
22 
24 public:
27  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
28  bool hltFilter(edm::Event&,
29  const edm::EventSetup&,
30  trigger::TriggerFilterObjectWithRefs& filterproduct) const override;
32  std::vector<l1t::TkMuonRef>& coll1,
33  std::vector<l1t::TkMuonRef>& coll2,
34  trigger::TriggerFilterObjectWithRefs& filterproduct) const;
36  std::pair<float, float> convertEtaPhi(l1t::TkMuonRef& tkmu) const;
37 
38 private:
39  // configuration
40  const std::vector<edm::InputTag> originTag1_; // input tag identifying originals 1st product
41  const std::vector<edm::InputTag> originTag2_; // input tag identifying originals 2nd product
42  const edm::InputTag inputTag1_; // input tag identifying filtered 1st product
43  const edm::InputTag inputTag2_; // input tag identifying filtered 2nd product
46  const double minDR_; // minimum dR between two muon regional candidates linked to L1TkMuon
47  const int min_N_; // number of pairs passing cuts required
48  const bool same_; // 1st and 2nd product are one and the same
49 
50  // eta and phi scaling for RegionalMuonCand
51  static constexpr unsigned int emtfRegion_{3};
52  static constexpr float etaScale_{0.010875};
53  static constexpr float phiScale_{2. * M_PI / 576.};
54 };
55 
56 #endif //HLT2L1TkMuonL1TkMuonMuRefDR_h
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const edm::EDGetTokenT< trigger::TriggerFilterObjectWithRefs > inputToken1_
bool computeDR(edm::Event &iEvent, l1t::TkMuonRef &c1, l1t::TkMuonRef &c2) const
bool getCollections(edm::Event &iEvent, std::vector< l1t::TkMuonRef > &coll1, std::vector< l1t::TkMuonRef > &coll2, trigger::TriggerFilterObjectWithRefs &filterproduct) const
const std::vector< edm::InputTag > originTag1_
std::pair< float, float > convertEtaPhi(l1t::TkMuonRef &tkmu) const
const std::vector< edm::InputTag > originTag2_
int iEvent
Definition: GenABIO.cc:224
bool hltFilter(edm::Event &, const edm::EventSetup &, trigger::TriggerFilterObjectWithRefs &filterproduct) const override
HLT2L1TkMuonL1TkMuonMuRefDR(const edm::ParameterSet &)
#define M_PI
static constexpr unsigned int emtfRegion_
const edm::EDGetTokenT< trigger::TriggerFilterObjectWithRefs > inputToken2_