CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
reco::tau::RecoTauPiZeroTrivialPlugin Class Reference
Inheritance diagram for reco::tau::RecoTauPiZeroTrivialPlugin:
reco::tau::RecoTauPiZeroBuilderPlugin reco::tau::RecoTauEventHolderPlugin reco::tau::RecoTauNamedPlugin

Public Member Functions

return_type operator() (const reco::Jet &jet) const override
 Build a collection of piZeros from objects in the input jet. More...
 
 RecoTauPiZeroTrivialPlugin (const edm::ParameterSet &pset, edm::ConsumesCollector &&iC)
 
 ~RecoTauPiZeroTrivialPlugin () override
 
- Public Member Functions inherited from reco::tau::RecoTauPiZeroBuilderPlugin
void beginEvent () override
 Hook called at the beginning of the event. More...
 
 RecoTauPiZeroBuilderPlugin (const edm::ParameterSet &pset, edm::ConsumesCollector &&iC)
 
 ~RecoTauPiZeroBuilderPlugin () override
 
- Public Member Functions inherited from reco::tau::RecoTauEventHolderPlugin
edm::Eventevt ()
 
const edm::Eventevt () const
 
const edm::EventSetupevtSetup () const
 
 RecoTauEventHolderPlugin (const edm::ParameterSet &pset)
 
void setup (edm::Event &, const edm::EventSetup &)
 
 ~RecoTauEventHolderPlugin () override
 
- Public Member Functions inherited from reco::tau::RecoTauNamedPlugin
const std::string & name () const
 
 RecoTauNamedPlugin (const edm::ParameterSet &pset)
 
virtual ~RecoTauNamedPlugin ()
 

Private Attributes

RecoTauQualityCuts qcuts_
 

Additional Inherited Members

- Public Types inherited from reco::tau::RecoTauPiZeroBuilderPlugin
typedef boost::ptr_vector< RecoTauPiZeroPiZeroVector
 
typedef std::unique_ptr< PiZeroVectorreturn_type
 

Detailed Description

Definition at line 24 of file RecoTauPiZeroTrivialPlugin.cc.

Constructor & Destructor Documentation

◆ RecoTauPiZeroTrivialPlugin()

reco::tau::RecoTauPiZeroTrivialPlugin::RecoTauPiZeroTrivialPlugin ( const edm::ParameterSet pset,
edm::ConsumesCollector &&  iC 
)
explicit

Definition at line 34 of file RecoTauPiZeroTrivialPlugin.cc.

36  qcuts_(pset.getParameterSet("qualityCuts").getParameterSet("signalQualityCuts")) {}

◆ ~RecoTauPiZeroTrivialPlugin()

reco::tau::RecoTauPiZeroTrivialPlugin::~RecoTauPiZeroTrivialPlugin ( )
inlineoverride

Definition at line 27 of file RecoTauPiZeroTrivialPlugin.cc.

27 {}

Member Function Documentation

◆ operator()()

RecoTauPiZeroBuilderPlugin::return_type reco::tau::RecoTauPiZeroTrivialPlugin::operator() ( const reco::Jet ) const
overridevirtual

Build a collection of piZeros from objects in the input jet.

Implements reco::tau::RecoTauPiZeroBuilderPlugin.

Definition at line 38 of file RecoTauPiZeroTrivialPlugin.cc.

38  {
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  }

References reco::tau::RecoTauQualityCuts::filterCandRefs(), CustomPhysics_cfi::gamma, metsig::jet, reco::RecoTauPiZero::kTrivial, eostools::move(), convertSQLitetoXML_cfg::output, reco::tau::pfGammas(), and qcuts_.

Member Data Documentation

◆ qcuts_

RecoTauQualityCuts reco::tau::RecoTauPiZeroTrivialPlugin::qcuts_
private

Definition at line 31 of file RecoTauPiZeroTrivialPlugin.cc.

Referenced by operator()().

convertSQLitetoXML_cfg.output
output
Definition: convertSQLitetoXML_cfg.py:72
reco::tau::RecoTauPiZeroTrivialPlugin::qcuts_
RecoTauQualityCuts qcuts_
Definition: RecoTauPiZeroTrivialPlugin.cc:31
CustomPhysics_cfi.gamma
gamma
Definition: CustomPhysics_cfi.py:17
reco::tau::RecoTauPiZeroBuilderPlugin::RecoTauPiZeroBuilderPlugin
RecoTauPiZeroBuilderPlugin(const edm::ParameterSet &pset, edm::ConsumesCollector &&iC)
Definition: RecoTauPiZeroPlugins.h:40
reco::tau::RecoTauPiZeroBuilderPlugin::PiZeroVector
boost::ptr_vector< RecoTauPiZero > PiZeroVector
Definition: RecoTauPiZeroPlugins.h:36
reco::tau::pfGammas
std::vector< CandidatePtr > pfGammas(const Jet &jet, bool sort=true)
Extract all pfGammas from a PFJet.
Definition: RecoTauCommonUtilities.cc:92
reco::tau::RecoTauQualityCuts::filterCandRefs
Coll filterCandRefs(const Coll &refcoll, bool invert=false) const
Filter a ref vector of Candidates.
Definition: RecoTauQualityCuts.h:86
eostools.move
def move(src, dest)
Definition: eostools.py:511
metsig::jet
Definition: SignAlgoResolutions.h:47
reco::RecoTauPiZero::kTrivial
Definition: RecoTauPiZero.h:12
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27