#include <MVATrainerLooper.h>
Classes | |
class | Trainer |
class | TrainerContainer |
class | UntrainedMVAComputer |
class | UntrainedMVAComputerContainer |
Public Types | |
typedef boost::shared_ptr < Calibration::MVAComputerContainer > | TrainContainer |
typedef boost::shared_ptr < Calibration::MVAComputer > | TrainObject |
Public Types inherited from edm::eventsetup::DataProxyProvider | |
typedef std::vector< std::pair < DataKey, boost::shared_ptr < DataProxy > > > | KeyedProxies |
typedef std::vector < EventSetupRecordKey > | Keys |
typedef std::map < EventSetupRecordKey, KeyedProxies > | RecordProxies |
Public Types inherited from edm::EDLooperBase | |
enum | Status { kContinue, kStop } |
Static Public Member Functions | |
template<class T > | |
static bool | isUntrained (const T *ptr) |
Static Public Member Functions inherited from edm::eventsetup::DataProxyProvider | |
static void | prevalidate (ConfigurationDescriptions &) |
Protected Member Functions | |
void | addTrainer (Trainer *trainer) |
const TrainerContainer & | getTrainers () const |
Protected Member Functions inherited from edm::ESProducerLooper | |
virtual void | registerFactoryWithKey (const eventsetup::EventSetupRecordKey &iRecord, std::auto_ptr< eventsetup::ProxyFactoryBase > &iFactory, const std::string &iLabel=std::string()) |
void | setIntervalFor (const eventsetup::EventSetupRecordKey &iKey, const IOVSyncValue &iTime, ValidityInterval &oInterval) |
Protected Member Functions inherited from edm::ESProducer | |
template<typename T > | |
void | setWhatProduced (T *iThis, const es::Label &iLabel=es::Label()) |
template<typename T > | |
void | setWhatProduced (T *iThis, const char *iLabel) |
template<typename T > | |
void | setWhatProduced (T *iThis, const std::string &iLabel) |
template<typename T , typename TDecorator > | |
void | setWhatProduced (T *iThis, const TDecorator &iDec, const es::Label &iLabel=es::Label()) |
template<typename T , typename TReturn , typename TRecord > | |
void | setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const es::Label &iLabel=es::Label()) |
template<typename T , typename TReturn , typename TRecord , typename TArg > | |
void | setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const TArg &iDec, const es::Label &iLabel=es::Label()) |
Protected Member Functions inherited from edm::ESProxyFactoryProducer | |
template<class TFactory > | |
void | registerFactory (std::auto_ptr< TFactory > iFactory, const std::string &iLabel=std::string()) |
virtual void | registerProxies (const eventsetup::EventSetupRecordKey &iRecord, KeyedProxies &aProxyList) |
override DataProxyProvider method More... | |
Protected Member Functions inherited from edm::eventsetup::DataProxyProvider | |
void | eraseAll (const EventSetupRecordKey &iRecordKey) |
deletes all the Proxies in aStream More... | |
void | invalidateProxies (const EventSetupRecordKey &iRecordKey) |
template<class T > | |
void | usingRecord () |
void | usingRecordWithKey (const EventSetupRecordKey &) |
Protected Member Functions inherited from edm::EventSetupRecordIntervalFinder | |
template<class T > | |
void | findingRecord () |
void | findingRecordWithKey (const eventsetup::EventSetupRecordKey &) |
Protected Member Functions inherited from edm::EDLooperBase | |
ModuleChanger const * | moduleChanger () const |
This only returns a non-zero value during the call to endOfLoop. More... | |
ScheduleInfo const * | scheduleInfo () const |
This returns a non-zero value after the constructor has been called. More... | |
Private Attributes | |
bool | dataProcessedInLoop |
TrainerContainer | trainers |
Definition at line 18 of file MVATrainerLooper.h.
typedef boost::shared_ptr<Calibration::MVAComputerContainer> PhysicsTools::MVATrainerLooper::TrainContainer |
Definition at line 31 of file MVATrainerLooper.h.
typedef boost::shared_ptr<Calibration::MVAComputer> PhysicsTools::MVATrainerLooper::TrainObject |
Definition at line 29 of file MVATrainerLooper.h.
PhysicsTools::MVATrainerLooper::MVATrainerLooper | ( | const edm::ParameterSet & | params | ) |
Definition at line 73 of file MVATrainerLooper.cc.
|
virtual |
Definition at line 78 of file MVATrainerLooper.cc.
|
inlineprotected |
Definition at line 76 of file MVATrainerLooper.h.
References PhysicsTools::MVATrainerLooper::TrainerContainer::add(), and trainers.
Referenced by PhysicsTools::MVATrainerContainerLooperImpl< Record_t >::MVATrainerContainerLooperImpl(), and PhysicsTools::MVATrainerLooperImpl< Record_t >::MVATrainerLooperImpl().
|
virtual |
Called after all event modules have had a chance to process the edm::Event.
Implements edm::EDLooper.
Definition at line 96 of file MVATrainerLooper.cc.
References PhysicsTools::MVATrainerLooper::TrainerContainer::begin(), PhysicsTools::MVATrainerLooper::TrainerContainer::clear(), dataProcessedInLoop, PhysicsTools::MVATrainerLooper::TrainerContainer::empty(), PhysicsTools::MVATrainerLooper::TrainerContainer::end(), getDQMSummary::iter, edm::EDLooperBase::kContinue, edm::EDLooperBase::kStop, and trainers.
|
virtual |
Called after the system has finished one loop over the events. Thar argument is a count of how many loops have been processed before this loo. For the first time through the events the argument will be 0.
Implements edm::EDLooperBase.
Definition at line 113 of file MVATrainerLooper.cc.
References cms::Exception::addContext(), PhysicsTools::MVATrainerLooper::TrainerContainer::begin(), dataProcessedInLoop, PhysicsTools::MVATrainerLooper::TrainerContainer::empty(), PhysicsTools::MVATrainerLooper::TrainerContainer::end(), getDQMSummary::iter, edm::EDLooperBase::kContinue, edm::EDLooperBase::kStop, PhysicsTools::MVATrainerLooper::Trainer::trainCalib, PhysicsTools::MVATrainerLooper::Trainer::trainer, and trainers.
|
inlineprotected |
Definition at line 78 of file MVATrainerLooper.h.
References trainers.
Referenced by PhysicsTools::MVATrainerLooperImpl< Record_t >::produce(), and PhysicsTools::MVATrainerContainerLooperImpl< Record_t >::produce().
|
inlinestatic |
|
inline |
Definition at line 86 of file MVATrainerLooper.h.
|
inline |
Definition at line 90 of file MVATrainerLooper.h.
|
virtual |
Called before system starts to loop over the events. The argument is a count of how many loops have been processed. For the first time through the events the argument will be 0.
Implements edm::EDLooperBase.
Definition at line 82 of file MVATrainerLooper.cc.
References PhysicsTools::MVATrainerLooper::TrainerContainer::begin(), dataProcessedInLoop, PhysicsTools::MVATrainerLooper::TrainerContainer::end(), getDQMSummary::iter, PhysicsTools::MVATrainerLooper::Trainer::trainCalib, PhysicsTools::MVATrainerLooper::Trainer::trainer, and trainers.
|
private |
Definition at line 82 of file MVATrainerLooper.h.
Referenced by duringLoop(), endOfLoop(), and startingNewLoop().
|
private |
Definition at line 81 of file MVATrainerLooper.h.
Referenced by addTrainer(), duringLoop(), endOfLoop(), getTrainers(), PhysicsTools::MVATrainerContainerLooperImpl< Record_t >::MVATrainerContainerLooperImpl(), and startingNewLoop().