CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GenericMVAComputerCache.h
Go to the documentation of this file.
1 #ifndef RecoBTau_JetTagComputer_GenericMVAComputerCache_h
2 #define RecoBTau_JetTagComputer_GenericMVAComputerCache_h
3 
4 #include <string>
5 #include <vector>
6 #include <memory>
7 
11 
13  public:
14  GenericMVAComputerCache(const std::vector<std::string> &labels);
16 
17  bool
19 
21  { return index >= 0 ? computers[index].computer.get() : 0; }
22 
23  inline bool isEmpty() const { return empty; }
24 
25  private:
30 
31  std::string label;
32  std::auto_ptr<GenericMVAComputer> computer;
34  };
35 
36  std::vector<IndividualComputer> computers;
39  bool empty;
40 };
41 
42 #endif // RecoBTau_JetTagComputer_GenericMVAComputerCache_h
PhysicsTools::Calibration::MVAComputerContainer::CacheId cacheId
PhysicsTools::Calibration::MVAComputer::CacheId cacheId
MVATrainerComputer * calib
Definition: MVATrainer.cc:64
bool update(const PhysicsTools::Calibration::MVAComputerContainer *calib)
GenericMVAComputerCache(const std::vector< std::string > &labels)
std::vector< IndividualComputer > computers
GenericMVAComputer * getComputer(int index) const
std::auto_ptr< GenericMVAComputer > computer