CMS 3D CMS Logo

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  void analyze(const edm::Event& iEvent,
22  const edm::EventSetup& iSetup) override;
23 
24  void endJob() override;
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::unique_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
std::unique_ptr< Calibration::MVAComputerContainer > calib
int iEvent
Definition: GenABIO.cc:230
virtual const Calibration::MVAComputerContainer * getToCopy(const edm::EventSetup &es) const =0
MVATrainerContainerSave(const edm::ParameterSet &params)
void analyze(const edm::Event &iEvent, const edm::EventSetup &iSetup) override
virtual const Calibration::MVAComputerContainer * getToPut(const edm::EventSetup &es) const =0