CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SimpleCutsIsolator.h
Go to the documentation of this file.
1 #ifndef SimpleCutsIsolator_H
2 #define SimpleCutsIsolator_H
3 
6 
7 
9  public:
11  theCuts(par.getParameter<std::vector<double> > ("EtaBounds"),
12  par.getParameter<std::vector<double> > ("ConeSizes"),
13  par.getParameter<std::vector<double> > ("Thresholds"))
14  {
15  }
16 
17  virtual ResultType resultType() const {return ISOL_BOOL_TYPE;}
18 
19  virtual Result result(DepositContainer deposits) const {
21  answer.valBool = false;
22  // fail miserably...
23  return answer;
24  }
25 
26  virtual Result result(DepositContainer deposits, const reco::Track& tk) const {
28 
29  muonisolation::Cuts::CutSpec cuts_here = theCuts(tk.eta());
30 
31  double conesize = cuts_here.conesize;
32  double dephlt = deposits.front().dep->depositWithin(conesize);
33  if (dephlt<cuts_here.threshold) {
34  answer.valBool = true;
35  } else {
36  answer.valBool = false;
37  }
38  return answer;
39  }
40 
41  private:
42 
43  // Isolation cuts
45 
46 
47 };
48 
49 #endif
answer
Definition: submit.py:44
virtual Result result(DepositContainer deposits, const reco::Track &tk) const
Compute and return the isolation variable, with vetoes and the muon.
double eta() const
pseudorapidity of momentum vector
Definition: TrackBase.h:141
muonisolation::Cuts theCuts
virtual Result result(DepositContainer deposits) const
Compute and return the isolation variable.
std::vector< DepositAndVetos > DepositContainer
SimpleCutsIsolator(const edm::ParameterSet &par)
virtual ResultType resultType() const
const double par[8 *NPar][4]