2 #include "Math/GenVector/VectorUtil.h" 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];
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 getObjects(Vids &ids, VRphoton &refs) const
various physics-level getters:
std::vector< PFTau > PFTauCollection
collection of PFTau objects
const CandidatePtr & leadChargedHadrCand() const
const Point & vertex() const override
vertex position (overwritten by PF...)
const LorentzVector & p4() const final
four-momentum Lorentz vector
const bool keepOriginalVertex
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const edm::EDGetTokenT< trigger::TriggerFilterObjectWithRefs > tauTrigger
bool isNonnull() const
Checks for non-null.
std::vector< TauRef > TauVectorRef
virtual const Point & vertex() const =0
vertex position
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