test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MVATrainerSave.h
Go to the documentation of this file.
1 #ifndef PhysicsTools_MVATrainer_MVATrainerSave_h
2 #define PhysicsTools_MVATrainer_MVATrainerSave_h
3 
4 #include <memory>
5 #include <string>
6 
11 
13 
14 namespace PhysicsTools {
15 
17  public:
18  explicit MVATrainerSave(const edm::ParameterSet &params);
19 
20  virtual void analyze(const edm::Event& iEvent,
21  const edm::EventSetup& iSetup);
22 
23  virtual void endJob();
24 
25  protected:
26  virtual const Calibration::MVAComputer *
27  getToPut(const edm::EventSetup& es) const = 0;
28 
29  virtual std::string getRecordName() const = 0;
30 
31  private:
32  std::auto_ptr<Calibration::MVAComputer> calib;
33  bool saved;
34 };
35 
36 } // namespace PhysicsTools
37 
38 #endif // PhysicsTools_MVATrainer_MVATrainerSave_h
std::auto_ptr< Calibration::MVAComputer > calib
int iEvent
Definition: GenABIO.cc:230
virtual void analyze(const edm::Event &iEvent, const edm::EventSetup &iSetup)
virtual const Calibration::MVAComputer * getToPut(const edm::EventSetup &es) const =0
virtual std::string getRecordName() const =0
MVATrainerSave(const edm::ParameterSet &params)