Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:13:57

0001 #ifndef EPCOMBINATIONTOOL_H
0002 #define EPCOMBINATIONTOOL_H
0003 
0004 #include <string>
0005 #include "CondFormats/GBRForest/interface/GBRForest.h"
0006 #include "EgammaAnalysis/ElectronTools/interface/SimpleElectron.h"
0007 
0008 class GBRForest;
0009 
0010 class EpCombinationTool {
0011 public:
0012   EpCombinationTool();
0013   ~EpCombinationTool();
0014   // forbid copy and assignment, since we have a custom deleter
0015   EpCombinationTool(const EpCombinationTool& other) = delete;
0016   EpCombinationTool& operator=(const EpCombinationTool& other) = delete;
0017 
0018   bool init(const GBRForest* forest);
0019   bool init(const std::string& regressionFile, const std::string& bdtName);
0020   void combine(SimpleElectron& mySimpleElectron) const;
0021 
0022 private:
0023   const GBRForest* m_forest;
0024   bool m_ownForest;
0025 };
0026 
0027 #endif