CMS 3D CMS Logo

Public Member Functions | Protected Member Functions

PhysicsTools::MVATrainerFileSaveImpl< Record_t > Class Template Reference

#include <MVATrainerFileSaveImpl.h>

Inheritance diagram for PhysicsTools::MVATrainerFileSaveImpl< Record_t >:
PhysicsTools::MVATrainerFileSave edm::EDAnalyzer edm::EDConsumerBase

List of all members.

Public Member Functions

 MVATrainerFileSaveImpl (const edm::ParameterSet &params)

Protected Member Functions

virtual const
Calibration::MVAComputerContainer
getToPut (const edm::EventSetup &es) const

Detailed Description

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

Definition at line 21 of file MVATrainerFileSaveImpl.h.


Constructor & Destructor Documentation

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

Definition at line 23 of file MVATrainerFileSaveImpl.h.

                                                                       :
                MVATrainerFileSave(params) {}

Member Function Documentation

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

Implements PhysicsTools::MVATrainerFileSave.

Definition at line 28 of file MVATrainerFileSaveImpl.h.

References edm::EventSetup::get(), patZpeak::handle, edm::ESHandle< T >::product(), and PhysicsTools::MVATrainerFileSave::trained.

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