|
|
Go to the documentation of this file.
2 #include "Math/GenVector/VectorUtil.h"
13 L1JetSrc_(consumes<
trigger::TriggerFilterObjectWithRefs>(iConfig.getParameter<
edm::
InputTag>(
"L1JetSrc"))),
14 matchingR2_(iConfig.getParameter<double>(
"MatchingdR") * iConfig.getParameter<double>(
"MatchingdR")),
15 minTauPt_(iConfig.getParameter<double>(
"MinTauPt")),
16 minL1TPt_(iConfig.getParameter<double>(
"MinL1TPt")) {
17 produces<reco::PFTauCollection>();
38 for (
unsigned int iTau = 0; iTau <
taus->size(); iTau++) {
41 for (
unsigned int iJet = 0; iJet < jetCandRefVec.size(); iJet++) {
51 L1TmatchedPFTau->push_back((*
taus)[iTau]);
59 ->setComment(
"Input filter objects passing L1 seed");
61 ->setComment(
"Input collection of PFTaus");
62 desc.
add<
double>(
"MatchingdR", 0.5)->
setComment(
"Maximum dR for matching between PFTaus and L1 filter jets");
63 desc.
add<
double>(
"MinTauPt", 20.0)->
setComment(
"PFTaus above this pt will be considered");
64 desc.
add<
double>(
"MinL1TPt", 115.0)->
setComment(
"L1T Objects above this pt will be considered");
66 "This module produces a collection of PFTaus matched to the leading jet passing the L1 seed filter.");
67 descriptions.
add(
"PFTauL1TJetsMatching", desc);
ParameterDescriptionBase * add(U const &iLabel, T const &value)
std::vector< JetRef > JetVectorRef
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::vector< l1t::PFTau > PFTauCollection
std::vector< PFTau > PFTauCollection
collection of PFTau objects
~PFTauL1TJetsMatching() override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
bool isMatched(TrackingRecHit const &hit)
constexpr auto deltaR2(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
void setComment(std::string const &value)
PFTauL1TJetsMatching(const edm::ParameterSet &)
const edm::EDGetTokenT< reco::PFTauCollection > tauSrc_
const edm::EDGetTokenT< trigger::TriggerFilterObjectWithRefs > L1JetSrc_
void setComment(std::string const &value)
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override