CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RecoTauDiscriminantCleanerPlugin.cc
Go to the documentation of this file.
1 /*
2  * RecoTauDiscriminantCleanerPlugin
3  *
4  * Author: Evan K. Friis, UC Davis
5  *
6  * A reco tau cleaner plugin that given a PFTau returns the associated value
7  * stored in a PFTauDiscrimiantor.
8  */
9 
12 
13 namespace reco { namespace tau {
14 
16  public:
19 
20  // Get discriminant value for a given tau Ref
21  double operator()(const reco::PFTauRef&) const;
22  // Hook called from base class at the beginning of each event
23  void beginEvent();
24 
25  private:
28 };
29 
31  const edm::ParameterSet& pset):RecoTauCleanerPlugin(pset) {
33 }
34 
36  // Load our handle to the discriminators from the event
38 }
39 
41  const reco::PFTauRef& tau) const {
42  // Get the discriminator result for this tau. N.B. result is negated! lower
43  // = more "tau like"! This is opposite to the normal case.
44  double result = -(*discriminator_)[tau];
45  return result;
46 }
47 
48 }} // end namespace reco::tau
49 
50 // Register our plugin
54  "RecoTauDiscriminantCleanerPlugin");
T getParameter(std::string const &) const
tuple result
Definition: query.py:137
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:361
#define DEFINE_EDM_PLUGIN(factory, type, name)