CMS 3D CMS Logo

Public Member Functions | Protected Member Functions

PhysicsTools::MVATrainerContainerSaveImpl< Record_t > Class Template Reference

#include <MVATrainerSaveImpl.h>

Inheritance diagram for PhysicsTools::MVATrainerContainerSaveImpl< Record_t >:
PhysicsTools::MVATrainerContainerSave edm::EDAnalyzer edm::EDConsumerBase

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.


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.

        { 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]
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(), patZpeak::handle, and edm::ESHandle< T >::product().

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