2 #include "Math/GenVector/VectorUtil.h" 24 mEt_Min(iConfig.getParameter<double>(
"EtMin")),
25 reduceTauContent(iConfig.getParameter<
bool>(
"ReduceTauContent")),
26 keepOriginalVertex(iConfig.getParameter<
bool>(
"KeepOriginalVertex")) {
27 produces<PFTauCollection>();
47 for (
unsigned int iL1Tau = 0; iL1Tau < tauCandRefVec.size(); iL1Tau++) {
48 for (
unsigned int iJet = 0; iJet < tauJets->size(); iJet++) {
50 const PFTau& myJet = (*tauJets)[iJet];
51 double deltaR2 = ROOT::Math::VectorUtil::DeltaR2(myJet.
p4().Vect(), (tauCandRefVec[iL1Tau]->p4()).Vect());
65 tauL2jets->push_back(myJet);
78 ->setComment(
"Name of trigger filter");
80 ->setComment(
"Input collection of PFTaus");
81 desc.add<
double>(
"EtMin", 0.0)->setComment(
"Minimal pT of PFTau to match");
82 desc.add<
bool>(
"ReduceTauContent",
true)->setComment(
"Should produce taus with reduced content (Only p4 and vertex)");
83 desc.add<
bool>(
"KeepOriginalVertex",
false)
84 ->setComment(
"Should use original vertex instead of setting the vertex to that of the leading charged hadron");
85 descriptions.
setComment(
"This module produces collection of PFTaus matched to L1 Taus / Jets passing a HLT filter.");
86 descriptions.
add(
"L1THLTTauMatching",
desc);
const edm::EDGetTokenT< reco::PFTauCollection > jetSrc
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
#define DEFINE_FWK_MODULE(type)
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