24 inputTag1_(iConfig.getParameter<
edm::
InputTag>(
"inputTag1")),
25 inputTag2_(iConfig.getParameter<
edm::
InputTag>(
"inputTag2")),
26 inputToken1_(consumes<
trigger::TriggerFilterObjectWithRefs>(inputTag1_)),
27 inputToken2_(consumes<
trigger::TriggerFilterObjectWithRefs>(inputTag2_)),
28 minDR_(iConfig.getParameter<double>(
"MinDR")),
29 min_N_(iConfig.getParameter<
int>(
"MinN")),
43 desc.add<
double>(
"MinDR", -1.0);
44 desc.add<
int>(
"MinN", 1);
46 descriptions.
add(
"hlt2L1TkMuonL1TkMuonMuRefDR",
desc);
50 std::vector<l1t::TkMuonRef>& coll1,
51 std::vector<l1t::TkMuonRef>& coll2,
73 if (tagOld.
encode() != tagNew.encode()) {
88 if (tagOld.
encode() != tagNew.encode()) {
105 if (tkmu->muRef().
isNull())
106 return std::make_pair(muRefEta, muRefPhi);
108 muRefEta = tkmu->muRef()->hwEta() *
etaScale_;
110 tkmu->muRef()->hwPhi(), tkmu->muRef()->trackFinderType(), tkmu->muRef()->processor()));
113 if (tkmu->emtfTrk().
isNull())
114 return std::make_pair(muRefEta, muRefPhi);
116 muRefEta = tkmu->emtfTrk()->Eta();
121 return std::make_pair(muRefEta, muRefPhi);
142 std::vector<l1t::TkMuonRef> coll1;
143 std::vector<l1t::TkMuonRef> coll2;
150 for (
unsigned int i1 = 0;
i1 != coll1.size();
i1++) {
156 for (
unsigned int i2 =
I;
i2 != coll2.size();
i2++) {
void getObjects(Vids &ids, VRphoton &refs) const
various physics-level getters:
~HLT2L1TkMuonL1TkMuonMuRefDR() override
constexpr double convertDegToRad(NumType degrees)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
constexpr T reduceRange(T x)
static PFTauRenderPlugin instance
#define DEFINE_FWK_MODULE(type)
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
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
void addObject(int id, const reco::RecoEcalCandidateRef &ref)
setters for L3 collections: (id=physics type, and Ref<C>)
const std::vector< edm::InputTag > originTag2_
bool hltFilter(edm::Event &, const edm::EventSetup &, trigger::TriggerFilterObjectWithRefs &filterproduct) const override
HLT2L1TkMuonL1TkMuonMuRefDR(const edm::ParameterSet &)
const std::complex< double > I
static constexpr float phiScale_
bool isNull() const
Checks for null.
static constexpr unsigned int emtfRegion_
static int calcGlobalPhi(int locPhi, tftype t, int proc)
constexpr auto deltaR2(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
static void makeHLTFilterDescription(edm::ParameterSetDescription &desc)
static constexpr float etaScale_
void addCollectionTag(const edm::InputTag &collectionTag)
collectionTags
void add(std::string const &label, ParameterSetDescription const &psetDescription)
const edm::EDGetTokenT< trigger::TriggerFilterObjectWithRefs > inputToken2_