CMS 3D CMS Logo

RecoTauPiZeroTrivialPlugin.cc
Go to the documentation of this file.
1 /*
2  * RecoTauPiZeroTrivialPlugin
3  *
4  * Author: Evan K. Friis (UC Davis)
5  *
6  * Given an input PFJet, produces collection of trivial 'un-merged' PiZero
7  * RecoTauPiZeros. Each PiZero is composed of only one photon from
8  * the jet.
9  *
10  *
11  */
12 
18 
21 
22 namespace reco::tau {
23 
25  public:
28  return_type operator()(const reco::Jet& jet) const override;
29 
30  private:
32  };
33 
36  qcuts_(pset.getParameterSet("qualityCuts").getParameterSet("signalQualityCuts")) {}
37 
39  std::vector<CandidatePtr> pfGammaCands = qcuts_.filterCandRefs(pfGammas(jet));
41  output.reserve(pfGammaCands.size());
42 
43  for (auto const& gamma : pfGammaCands) {
44  std::unique_ptr<RecoTauPiZero> piZero(
45  new RecoTauPiZero(0, (*gamma).p4(), (*gamma).vertex(), 22, 1000, true, RecoTauPiZero::kTrivial));
46  piZero->addDaughter(gamma);
47  output.push_back(std::move(piZero));
48  }
49  return output.release();
50  }
51 
52 } // namespace reco::tau
53 
57  "RecoTauPiZeroTrivialPlugin");
reco::Jet
Base class for all types of Jets.
Definition: Jet.h:20
reco::tau::RecoTauPiZeroTrivialPlugin::~RecoTauPiZeroTrivialPlugin
~RecoTauPiZeroTrivialPlugin() override
Definition: RecoTauPiZeroTrivialPlugin.cc:27
reco::tau::RecoTauQualityCuts
Definition: RecoTauQualityCuts.h:34
convertSQLitetoXML_cfg.output
output
Definition: convertSQLitetoXML_cfg.py:32
reco::tau::RecoTauPiZeroTrivialPlugin
Definition: RecoTauPiZeroTrivialPlugin.cc:24
PFJet.h
reco::tau::RecoTauPiZeroTrivialPlugin::qcuts_
RecoTauQualityCuts qcuts_
Definition: RecoTauPiZeroTrivialPlugin.cc:31
CustomPhysics_cfi.gamma
gamma
Definition: CustomPhysics_cfi.py:17
RecoTauPiZeroPlugins.h
RecoTauPiZero.h
CandidateFwd.h
reco::tau::RecoTauPiZeroTrivialPlugin::RecoTauPiZeroTrivialPlugin
RecoTauPiZeroTrivialPlugin(const edm::ParameterSet &pset, edm::ConsumesCollector &&iC)
Definition: RecoTauPiZeroTrivialPlugin.cc:34
MakerMacros.h
RecoTauCommonUtilities.h
DEFINE_EDM_PLUGIN
#define DEFINE_EDM_PLUGIN(factory, type, name)
Definition: PluginFactory.h:124
reco::tau::RecoTauPiZeroBuilderPlugin::PiZeroVector
boost::ptr_vector< RecoTauPiZero > PiZeroVector
Definition: RecoTauPiZeroPlugins.h:36
RecoTauQualityCuts.h
reco::tau::pfGammas
std::vector< CandidatePtr > pfGammas(const Jet &jet, bool sort=true)
Extract all pfGammas from a PFJet.
Definition: RecoTauCommonUtilities.cc:91
reco::tau::RecoTauQualityCuts::filterCandRefs
Coll filterCandRefs(const Coll &refcoll, bool invert=false) const
Filter a ref vector of Candidates.
Definition: RecoTauQualityCuts.h:85
edm::ParameterSet
Definition: ParameterSet.h:36
edmplugin::PluginFactory
Definition: PluginFactory.h:34
edm::getParameterSet
ParameterSet const & getParameterSet(ParameterSetID const &id)
Definition: ParameterSet.cc:855
reco::RecoTauPiZero
Definition: RecoTauPiZero.h:7
eostools.move
def move(src, dest)
Definition: eostools.py:511
std
Definition: JetResolutionObject.h:76
metsig::jet
Definition: SignAlgoResolutions.h:47
reco::tau::RecoTauPiZeroBuilderPlugin
Definition: RecoTauPiZeroPlugins.h:33
reco::RecoTauPiZero::kTrivial
Definition: RecoTauPiZero.h:12
reco::tau::RecoTauPiZeroTrivialPlugin::operator()
return_type operator()(const reco::Jet &jet) const override
Build a collection of piZeros from objects in the input jet.
Definition: RecoTauPiZeroTrivialPlugin.cc:38
Candidate.h
reco::tau
Definition: PFRecoTauChargedHadron.h:11
edm::ConsumesCollector
Definition: ConsumesCollector.h:39
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
reco::tau::RecoTauPiZeroBuilderPlugin::return_type
std::unique_ptr< PiZeroVector > return_type
Definition: RecoTauPiZeroPlugins.h:39