CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | Friends
PhysicsTools::Calibration::MVAComputer Class Reference

#include <MVAComputer.h>

Inheritance diagram for PhysicsTools::Calibration::MVAComputer:
PhysicsTools::MVATrainerLooper::UntrainedMVAComputer PhysicsTools::TrainMVAComputerCalibration

Public Types

typedef unsigned int CacheId
 

Public Member Functions

void addProcessor (const VarProcessor *proc)
 
bool changed (CacheId old) const
 
CacheId getCacheId () const
 
virtual std::vector< VarProcessor * > getProcessors () const
 
 MVAComputer ()
 
 MVAComputer (const MVAComputer &orig)
 
MVAComputeroperator= (const MVAComputer &orig)
 
virtual ~MVAComputer ()
 

Public Attributes

std::vector< VariableinputSet
 
unsigned int output
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

CacheId cacheId
 
std::vector< VarProcessor * > processors
 

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 

Detailed Description

Definition at line 218 of file MVAComputer.h.

Member Typedef Documentation

Definition at line 230 of file MVAComputer.h.

Constructor & Destructor Documentation

PhysicsTools::Calibration::MVAComputer::MVAComputer ( )

Definition at line 134 of file MVAComputer.cc.

134  :
136 {
137 }
static MVAComputer::CacheId getNextMVAComputerCacheId()
Definition: MVAComputer.cc:127
PhysicsTools::Calibration::MVAComputer::MVAComputer ( const MVAComputer orig)

Definition at line 139 of file MVAComputer.cc.

References addProcessor(), and processors.

139  :
140  inputSet(orig.inputSet),
141  output(orig.output),
142  cacheId(orig.cacheId)
143 {
144  for(std::vector<VarProcessor*>::const_iterator iter =
145  orig.processors.begin();
146  iter != orig.processors.end(); ++iter)
147  addProcessor(*iter);
148 }
void addProcessor(const VarProcessor *proc)
Definition: MVAComputer.cc:182
std::vector< Variable > inputSet
Definition: MVAComputer.h:234
PhysicsTools::Calibration::MVAComputer::~MVAComputer ( )
virtual

Definition at line 150 of file MVAComputer.cc.

References processors.

151 {
152  for(std::vector<VarProcessor*>::iterator iter = processors.begin();
153  iter != processors.end(); ++iter)
154  delete *iter;
155  processors.clear();
156 }
std::vector< VarProcessor * > processors
Definition: MVAComputer.h:238

Member Function Documentation

void PhysicsTools::Calibration::MVAComputer::addProcessor ( const VarProcessor proc)

Definition at line 182 of file MVAComputer.cc.

References cacheId, PhysicsTools::Calibration::VarProcessor::clone(), PhysicsTools::Calibration::getNextMVAComputerCacheId(), and processors.

Referenced by PhysicsTools::MVATrainer::connectProcessors(), MVAComputer(), and operator=().

183 {
185  processors.push_back(proc->clone().release());
186 }
TrainProcessor *const proc
Definition: MVATrainer.cc:101
std::vector< VarProcessor * > processors
Definition: MVAComputer.h:238
static MVAComputer::CacheId getNextMVAComputerCacheId()
Definition: MVAComputer.cc:127
bool PhysicsTools::Calibration::MVAComputer::changed ( CacheId  old) const
inline
CacheId PhysicsTools::Calibration::MVAComputer::getCacheId ( ) const
inline
std::vector< VarProcessor * > PhysicsTools::Calibration::MVAComputer::getProcessors ( ) const
virtual

Definition at line 177 of file MVAComputer.cc.

References processors.

Referenced by PhysicsTools::MVAComputer::setup(), and PhysicsTools::stdStringPrintf().

178 {
179  return processors;
180 }
std::vector< VarProcessor * > processors
Definition: MVAComputer.h:238
MVAComputer & PhysicsTools::Calibration::MVAComputer::operator= ( const MVAComputer orig)

Definition at line 158 of file MVAComputer.cc.

References addProcessor(), cacheId, inputSet, output, and processors.

159 {
160  inputSet = orig.inputSet;
161  output = orig.output;
162  cacheId = orig.cacheId;
163 
164  for(std::vector<VarProcessor*>::iterator iter = processors.begin();
165  iter != processors.end(); ++iter)
166  delete *iter;
167  processors.clear();
168 
169  for(std::vector<VarProcessor*>::const_iterator iter =
170  orig.processors.begin();
171  iter != orig.processors.end(); ++iter)
172  addProcessor(*iter);
173 
174  return *this;
175 }
std::vector< VarProcessor * > processors
Definition: MVAComputer.h:238
void addProcessor(const VarProcessor *proc)
Definition: MVAComputer.cc:182
std::vector< Variable > inputSet
Definition: MVAComputer.h:234
template<class Archive >
void PhysicsTools::Calibration::MVAComputer::serialize ( Archive &  ar,
const unsigned int  version 
)
private

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 242 of file MVAComputer.h.

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 242 of file MVAComputer.h.

Member Data Documentation

CacheId PhysicsTools::Calibration::MVAComputer::cacheId
private

Definition at line 240 of file MVAComputer.h.

Referenced by addProcessor(), and operator=().

std::vector<Variable> PhysicsTools::Calibration::MVAComputer::inputSet
unsigned int PhysicsTools::Calibration::MVAComputer::output
std::vector<VarProcessor*> PhysicsTools::Calibration::MVAComputer::processors
private

Definition at line 238 of file MVAComputer.h.

Referenced by addProcessor(), getProcessors(), MVAComputer(), operator=(), and ~MVAComputer().