CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 248 of file MVAComputer.h.

Member Typedef Documentation

Definition at line 260 of file MVAComputer.h.

Constructor & Destructor Documentation

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

Definition at line 137 of file MVAComputer.cc.

137  :
139 {
140 }
static MVAComputer::CacheId getNextMVAComputerCacheId()
Definition: MVAComputer.cc:130
PhysicsTools::Calibration::MVAComputer::MVAComputer ( const MVAComputer orig)

Definition at line 142 of file MVAComputer.cc.

References addProcessor(), getDQMSummary::iter, and processors.

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

Definition at line 153 of file MVAComputer.cc.

References getDQMSummary::iter, and processors.

154 {
155  for(std::vector<VarProcessor*>::iterator iter = processors.begin();
156  iter != processors.end(); ++iter)
157  delete *iter;
158  processors.clear();
159 }
std::vector< VarProcessor * > processors
Definition: MVAComputer.h:268

Member Function Documentation

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

Definition at line 185 of file MVAComputer.cc.

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

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

186 {
188  processors.push_back(proc->clone().release());
189 }
TrainProcessor *const proc
Definition: MVATrainer.cc:101
std::vector< VarProcessor * > processors
Definition: MVAComputer.h:268
static MVAComputer::CacheId getNextMVAComputerCacheId()
Definition: MVAComputer.cc:130
bool PhysicsTools::Calibration::MVAComputer::changed ( CacheId  old) const
inline

Definition at line 262 of file MVAComputer.h.

References cacheId.

Referenced by GenericMVAComputerCache::update(), and PhysicsTools::MVAComputerCache::update().

262 { return old != cacheId; }
CacheId PhysicsTools::Calibration::MVAComputer::getCacheId ( ) const
inline

Definition at line 261 of file MVAComputer.h.

References cacheId.

Referenced by GenericMVAComputerCache::update(), and PhysicsTools::MVAComputerCache::update().

std::vector< VarProcessor * > PhysicsTools::Calibration::MVAComputer::getProcessors ( ) const
virtual

Definition at line 180 of file MVAComputer.cc.

References processors.

Referenced by PhysicsTools::MVAComputer::setup().

181 {
182  return processors;
183 }
std::vector< VarProcessor * > processors
Definition: MVAComputer.h:268
MVAComputer & PhysicsTools::Calibration::MVAComputer::operator= ( const MVAComputer orig)

Definition at line 161 of file MVAComputer.cc.

References addProcessor(), cacheId, inputSet, getDQMSummary::iter, output, and processors.

162 {
163  inputSet = orig.inputSet;
164  output = orig.output;
165  cacheId = orig.cacheId;
166 
167  for(std::vector<VarProcessor*>::iterator iter = processors.begin();
168  iter != processors.end(); ++iter)
169  delete *iter;
170  processors.clear();
171 
172  for(std::vector<VarProcessor*>::const_iterator iter =
173  orig.processors.begin();
174  iter != orig.processors.end(); ++iter)
175  addProcessor(*iter);
176 
177  return *this;
178 }
std::vector< VarProcessor * > processors
Definition: MVAComputer.h:268
void addProcessor(const VarProcessor *proc)
Definition: MVAComputer.cc:185
std::vector< Variable > inputSet
Definition: MVAComputer.h:264
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 272 of file MVAComputer.h.

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

Definition at line 272 of file MVAComputer.h.

Member Data Documentation

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

Definition at line 270 of file MVAComputer.h.

Referenced by addProcessor(), changed(), getCacheId(), 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 268 of file MVAComputer.h.

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