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
ConfigurationDescriptions.h
trigger::TriggerFilterObjectWithRefs
Definition: TriggerFilterObjectWithRefs.h:35
Handle.h
HLT2L1TkMuonL1TkMuonMuRefDR
Definition: HLT2L1TkMuonL1TkMuonMuRefDR.h:23
edm::EDGetTokenT< trigger::TriggerFilterObjectWithRefs >
HLT2L1TkMuonL1TkMuonMuRefDR::etaScale_
static constexpr float etaScale_
Definition: HLT2L1TkMuonL1TkMuonMuRefDR.h:52
HLT2L1TkMuonL1TkMuonMuRefDR::minDR_
const double minDR_
Definition: HLT2L1TkMuonL1TkMuonMuRefDR.h:46
TriggerTypeDefs.h
HLT2L1TkMuonL1TkMuonMuRefDR::originTag1_
const std::vector< edm::InputTag > originTag1_
Definition: HLT2L1TkMuonL1TkMuonMuRefDR.h:40
HLT2L1TkMuonL1TkMuonMuRefDR::inputTag2_
const edm::InputTag inputTag2_
Definition: HLT2L1TkMuonL1TkMuonMuRefDR.h:43
HLTFilter
Definition: HLTFilter.h:28
edm::Ref
Definition: AssociativeIterator.h:58
TkMuon.h
HLT2L1TkMuonL1TkMuonMuRefDR::originTag2_
const std::vector< edm::InputTag > originTag2_
Definition: HLT2L1TkMuonL1TkMuonMuRefDR.h:41
HLT2L1TkMuonL1TkMuonMuRefDR::HLT2L1TkMuonL1TkMuonMuRefDR
HLT2L1TkMuonL1TkMuonMuRefDR(const edm::ParameterSet &)
Definition: HLT2L1TkMuonL1TkMuonMuRefDR.cc:20
HLT2L1TkMuonL1TkMuonMuRefDR::phiScale_
static constexpr float phiScale_
Definition: HLT2L1TkMuonL1TkMuonMuRefDR.h:53
HLTFilter.h
HLT2L1TkMuonL1TkMuonMuRefDR::inputTag1_
const edm::InputTag inputTag1_
Definition: HLT2L1TkMuonL1TkMuonMuRefDR.h:42
HLT2L1TkMuonL1TkMuonMuRefDR::min_N_
const int min_N_
Definition: HLT2L1TkMuonL1TkMuonMuRefDR.h:47
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
HLT2L1TkMuonL1TkMuonMuRefDR::inputToken2_
const edm::EDGetTokenT< trigger::TriggerFilterObjectWithRefs > inputToken2_
Definition: HLT2L1TkMuonL1TkMuonMuRefDR.h:45
edm::ParameterSet
Definition: ParameterSet.h:36
HLT2L1TkMuonL1TkMuonMuRefDR::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: HLT2L1TkMuonL1TkMuonMuRefDR.cc:34
HLT2L1TkMuonL1TkMuonMuRefDR::hltFilter
bool hltFilter(edm::Event &, const edm::EventSetup &, trigger::TriggerFilterObjectWithRefs &filterproduct) const override
Definition: HLT2L1TkMuonL1TkMuonMuRefDR.cc:134
HLT2L1TkMuonL1TkMuonMuRefDR::computeDR
bool computeDR(edm::Event &iEvent, l1t::TkMuonRef &c1, l1t::TkMuonRef &c2) const
Definition: HLT2L1TkMuonL1TkMuonMuRefDR.cc:124
HLT2L1TkMuonL1TkMuonMuRefDR::convertEtaPhi
std::pair< float, float > convertEtaPhi(l1t::TkMuonRef &tkmu) const
Definition: HLT2L1TkMuonL1TkMuonMuRefDR.cc:100
iEvent
int iEvent
Definition: GenABIO.cc:224
alignmentValidation.c1
c1
do drawing
Definition: alignmentValidation.py:1025
HLT2L1TkMuonL1TkMuonMuRefDR::inputToken1_
const edm::EDGetTokenT< trigger::TriggerFilterObjectWithRefs > inputToken1_
Definition: HLT2L1TkMuonL1TkMuonMuRefDR.h:44
M_PI
#define M_PI
Definition: BXVectorInputProducer.cc:50
HLT2L1TkMuonL1TkMuonMuRefDR::getCollections
bool getCollections(edm::Event &iEvent, std::vector< l1t::TkMuonRef > &coll1, std::vector< l1t::TkMuonRef > &coll2, trigger::TriggerFilterObjectWithRefs &filterproduct) const
Definition: HLT2L1TkMuonL1TkMuonMuRefDR.cc:49
edm::EventSetup
Definition: EventSetup.h:57
HLT2L1TkMuonL1TkMuonMuRefDR::emtfRegion_
static constexpr unsigned int emtfRegion_
Definition: HLT2L1TkMuonL1TkMuonMuRefDR.h:51
Ref.h
HLT2L1TkMuonL1TkMuonMuRefDR::same_
const bool same_
Definition: HLT2L1TkMuonL1TkMuonMuRefDR.h:48
HLT2L1TkMuonL1TkMuonMuRefDR::~HLT2L1TkMuonL1TkMuonMuRefDR
~HLT2L1TkMuonL1TkMuonMuRefDR() override
Definition: HLT2L1TkMuonL1TkMuonMuRefDR.cc:32
trigger
Definition: HLTPrescaleTableCond.h:8
edm::Event
Definition: Event.h:73
TkMuonFwd.h
edm::InputTag
Definition: InputTag.h:15