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 override;
22  // Hook called from base class at the beginning of each event
23  void beginEvent() override;
24 
25  private:
29 };
30 
35 }
36 
38  // Load our handle to the discriminators from the event
40 }
41 
43  const reco::PFTauRef& tau) const {
44  // Get the discriminator result for this tau. N.B. result is negated! lower
45  // = more "tau like"! This is opposite to the normal case.
46  double result = -(*discriminator_)[tau];
47  return result;
48 }
49 
50 }} // end namespace reco::tau
51 
52 // Register our plugin
56  "RecoTauDiscriminantCleanerPlugin");
T getParameter(std::string const &) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:462
edm::EDGetTokenT< PFTauDiscriminator > discriminator_token
tuple result
Definition: mps_fire.py:84
double operator()(const reco::PFTauRef &) const override
def move
Definition: eostools.py:510
RecoTauDiscriminantCleanerPlugin(const edm::ParameterSet &pset, edm::ConsumesCollector &&iC)
#define DEFINE_EDM_PLUGIN(factory, type, name)