00001
00002
00003
00004
00005
00006
00007 #include<iostream>
00008 #include<vector>
00009 #include<cmath>
00010 #include<map>
00011 #include<string>
00012 #include <cstdlib>
00013
00014 #include "TRandom3.h"
00015
00016 #ifndef _JetEfficiencyEstimator_
00017 #define _JetEfficiencyEstimator_ 1
00018 class JetEfficiencyEstimator{
00019 public:
00020 JetEfficiencyEstimator();
00021 ~JetEfficiencyEstimator(){;}
00022
00023 bool getEfficiency(double, double, double&, double&, bool jetETMiss=true, int R=6);
00024 bool checkEvent(std::vector<double>, std::vector<double>, int&);
00025 bool checkEvent(std::vector<double>, std::vector<double>, int&, std::vector<bool>&);
00026 private:
00027 std::map<double, double > tcjMap;
00028 std::map<double,std::vector<double> > effMap;
00029 std::map<double,std::vector<double> > errMap;
00030 std::map<double, double > datMap;
00031
00032 TRandom3 m_rand;
00033 };
00034 #endif