2 #include "Math/GenVector/VectorUtil.h"
14 using namespace trigger;
19 mEt_Min(iConfig.getParameter<double>(
"EtMin")),
20 reduceTauContent(iConfig.getParameter<bool>(
"ReduceTauContent")),
21 keepOriginalVertex(iConfig.getParameter<bool>(
"KeepOriginalVertex")) {
22 produces<PFTauCollection>();
44 for (
unsigned int iL1Tau = 0; iL1Tau < tauCandRefVec.size(); iL1Tau++) {
45 for (
unsigned int iJet = 0; iJet < tauJets->size(); iJet++) {
47 const PFTau& myJet = (*tauJets)[iJet];
49 if (deltaR < matchingR) {
62 tauL2jets->push_back(myJet);
75 ->setComment(
"Name of trigger filter");
77 ->setComment(
"Input collection of PFTaus");
78 desc.
add<
double>(
"EtMin", 0.0)->
setComment(
"Minimal pT of PFTau to match");
79 desc.
add<
bool>(
"ReduceTauContent",
true)->setComment(
"Should produce taus with reduced content (Only p4 and vertex)");
80 desc.
add<
bool>(
"KeepOriginalVertex",
false)
81 ->setComment(
"Should use original vertex instead of setting the vertex to that of the leading charged hadron");
82 descriptions.
setComment(
"This module produces collection of PFTaus matched to L1 Taus / Jets passing a HLT filter.");
83 descriptions.
add(
"L1THLTTauMatching", desc);
const edm::EDGetTokenT< reco::PFTauCollection > jetSrc
~L1THLTTauMatching() override
L1THLTTauMatching(const edm::ParameterSet &)
void setComment(std::string const &value)
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
std::vector< PFTau > PFTauCollection
collection of PFTau objects
bool getByToken(EDGetToken token, Handle< PROD > &result) const
const Point & vertex() const override
vertex position (overwritten by PF...)
const bool keepOriginalVertex
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const edm::EDGetTokenT< trigger::TriggerFilterObjectWithRefs > tauTrigger
const CandidatePtr & leadChargedHadrCand() const
std::vector< TauRef > TauVectorRef
ParameterDescriptionBase * add(U const &iLabel, T const &value)
bool isNonnull() const
Checks for non-null.
void setComment(std::string const &value)
XYZPointD XYZPoint
point in space with cartesian internal representation
void add(std::string const &label, ParameterSetDescription const &psetDescription)
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
const bool reduceTauContent