CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PFTauDiscriminatorLogicalAndProducer.cc
Go to the documentation of this file.
2 
3 /*
4  * class PFRecoTauDiscriminatioLogicalAndProducer
5  *
6  * Applies a boolean operator (AND or OR) to a set
7  * of PFTauDiscriminators. Note that the set of PFTauDiscriminators
8  * is accessed/combined in the base class (the Prediscriminants).
9  *
10  * This class merely exposes this behavior directly by
11  * returning true for all taus that pass the prediscriminants
12  *
13  * revised : Mon Aug 31 12:59:50 PDT 2009
14  * Authors : Michele Pioppi, Evan Friis (UC Davis)
15  */
16 
17 using namespace reco;
18 
20  public:
23  double discriminate(const PFTauRef& pfTau) const override;
24  private:
25  double passResult_;
26 };
27 
29 {
30  passResult_ = iConfig.getParameter<double>("PassValue");
31  prediscriminantFailValue_ = iConfig.getParameter<double>("FailValue"); //defined in base class
32 }
33 
34 double
36 {
37  // if this function is called on a tau, it is has passed (in the base class)
38  // the set of prediscriminants, using the prescribed boolean operation. thus
39  // we only need to return TRUE
40  return passResult_;
41 }
42 
T getParameter(std::string const &) const
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
double discriminate(const PFTauRef &pfTau) const override