CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RecoTauRandomDiscriminant.cc
Go to the documentation of this file.
1 /*
2  * Produce a tau discriminator that produces a random discriminant output,
3  * useful for testing.
4  *
5  * Author: Evan Friis, UC Davis
6  *
7  */
8 
10 #include "TRandom3.h"
11 
13  public:
16  passRate_ = pset.getParameter<double>("passRate");
17  }
18 
19  double discriminate(const reco::PFTauRef& tau) override {
20  return randy_.Rndm() < passRate_;
21  }
22  private:
23  TRandom3 randy_;
24  double passRate_;
25 };
26 
T getParameter(std::string const &) const
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
double discriminate(const reco::PFTauRef &tau) override
PFTauRandomDiscriminator(const edm::ParameterSet &pset)