CMS 3D CMS Logo

PhysicsTools::MVATrainerContainerSaveImpl< Record_t > Class Template Reference

#include <PhysicsTools/MVATrainer/interface/MVATrainerSaveImpl.h>

Inheritance diagram for PhysicsTools::MVATrainerContainerSaveImpl< Record_t >:

PhysicsTools::MVATrainerContainerSave edm::EDAnalyzer

List of all members.

Public Member Functions

 MVATrainerContainerSaveImpl (const edm::ParameterSet &params)

Protected Member Functions

virtual std::string getRecordName () const
virtual const
Calibration::MVAComputerContainer
getToCopy (const edm::EventSetup &es) const
virtual const
Calibration::MVAComputerContainer
getToPut (const edm::EventSetup &es) const


Detailed Description

template<typename Record_t>
class PhysicsTools::MVATrainerContainerSaveImpl< Record_t >

Definition at line 41 of file MVATrainerSaveImpl.h.


Constructor & Destructor Documentation

template<typename Record_t>
PhysicsTools::MVATrainerContainerSaveImpl< Record_t >::MVATrainerContainerSaveImpl ( const edm::ParameterSet params  )  [inline, explicit]

Definition at line 43 of file MVATrainerSaveImpl.h.

00043                                                                             :
00044                 MVATrainerContainerSave(params) {}


Member Function Documentation

template<typename Record_t>
virtual std::string PhysicsTools::MVATrainerContainerSaveImpl< Record_t >::getRecordName (  )  const [inline, protected, virtual]

Implements PhysicsTools::MVATrainerContainerSave.

Definition at line 63 of file MVATrainerSaveImpl.h.

00064         { return Record_t::keyForClass().type().name(); }

template<typename Record_t>
virtual const Calibration::MVAComputerContainer* PhysicsTools::MVATrainerContainerSaveImpl< Record_t >::getToCopy ( const edm::EventSetup es  )  const [inline, protected, virtual]

Implements PhysicsTools::MVATrainerContainerSave.

Definition at line 56 of file MVATrainerSaveImpl.h.

References edm::EventSetup::get(), and edm::ESHandle< T >::product().

00057         {
00058                 edm::ESHandle<Calibration::MVAComputerContainer> handle;
00059                 es.get<Record_t>().get(handle);
00060                 return handle.product();
00061         }

template<typename Record_t>
virtual const Calibration::MVAComputerContainer* PhysicsTools::MVATrainerContainerSaveImpl< Record_t >::getToPut ( const edm::EventSetup es  )  const [inline, protected, virtual]

Implements PhysicsTools::MVATrainerContainerSave.

Definition at line 48 of file MVATrainerSaveImpl.h.

References edm::EventSetup::get(), and edm::ESHandle< T >::product().

00049         {
00050                 edm::ESHandle<Calibration::MVAComputerContainer> handle;
00051                 es.get<Record_t>().get("trained", handle);
00052                 return handle.product();
00053         }


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:50:14 2009 for CMSSW by  doxygen 1.5.4