test
CMS 3D CMS Logo

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