/afs/hep.man.ac.uk/u/markowen/ATLAS/SFrameProof/2011EPS/topUtils/src/JetEfficiencyEstimator.h

00001 //_________________________________________________________________________________________________
00002 // copied from twiki:
00003 // https://twiki.cern.ch/twiki/bin/view/AtlasProtected/TopJetReconstructionEfficiency
00004 // on 22 Feb 2011
00005 // replaced std library random number with root one (so can control seed)
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   //bool getEfficiency(double, double, double&, double&, bool jetETMiss=true);
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

Generated on Thu Jun 30 11:40:04 2011 for manTreeSFrame by  doxygen 1.4.7