Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
PhysicsTools
MVATrainer
interface
Source.h
Go to the documentation of this file.
1
#ifndef PhysicsTools_MVATrainer_Source_h
2
#define PhysicsTools_MVATrainer_Source_h
3
4
#include "
PhysicsTools/MVAComputer/interface/AtomicId.h
"
5
6
#include "
PhysicsTools/MVATrainer/interface/SourceVariable.h
"
7
#include "
PhysicsTools/MVATrainer/interface/SourceVariableSet.h
"
8
9
namespace
PhysicsTools {
10
11
class
MVATrainer;
12
13
class
Source
{
14
public
:
15
Source
(
AtomicId
name
,
bool
trained
=
false
) :
16
trained
(
trained
), name(name) {}
17
virtual
~Source
() {}
18
19
inline
AtomicId
getName
()
const
{
return
name
; }
20
21
inline
SourceVariable
*
getOutput
(
AtomicId
name
)
const
22
{
return
outputs
.
find
(name); }
23
24
inline
bool
isTrained
()
const
{
return
trained
; }
25
26
inline
const
SourceVariableSet
&
getInputs
()
const
{
return
inputs
; }
27
inline
const
SourceVariableSet
&
getOutputs
()
const
{
return
outputs
; }
28
29
protected
:
30
friend
class
MVATrainer
;
31
32
inline
SourceVariableSet
&
getInputs
() {
return
inputs
; }
33
inline
SourceVariableSet
&
getOutputs
() {
return
outputs
; }
34
35
bool
trained
;
36
37
private
:
38
AtomicId
name
;
39
SourceVariableSet
inputs
;
40
SourceVariableSet
outputs
;
41
};
42
43
}
// namespace PhysicsTools
44
45
#endif // PhysicsTools_MVATrainer_Source_h
PhysicsTools::Source::getInputs
SourceVariableSet & getInputs()
Definition:
Source.h:32
SourceVariable.h
PhysicsTools::Source::isTrained
bool isTrained() const
Definition:
Source.h:24
PhysicsTools::SourceVariable
Definition:
SourceVariable.h:14
PhysicsTools::Source::~Source
virtual ~Source()
Definition:
Source.h:17
PhysicsTools::Source::getOutput
SourceVariable * getOutput(AtomicId name) const
Definition:
Source.h:21
PhysicsTools::Source::getInputs
const SourceVariableSet & getInputs() const
Definition:
Source.h:26
AtomicId.h
PhysicsTools::Source
Definition:
Source.h:13
PhysicsTools::AtomicId
Cheap generic unique keyword identifier class.
Definition:
AtomicId.h:31
SourceVariableSet.h
PhysicsTools::Source::getOutputs
const SourceVariableSet & getOutputs() const
Definition:
Source.h:27
PhysicsTools::Source::Source
Source(AtomicId name, bool trained=false)
Definition:
Source.h:15
PhysicsTools::SourceVariableSet
Definition:
SourceVariableSet.h:14
PhysicsTools::MVATrainer
Definition:
MVATrainer.h:27
PhysicsTools::Source::name
AtomicId name
Definition:
Source.h:38
PhysicsTools::Source::getOutputs
SourceVariableSet & getOutputs()
Definition:
Source.h:33
PhysicsTools::Source::inputs
SourceVariableSet inputs
Definition:
Source.h:39
PhysicsTools::Source::outputs
SourceVariableSet outputs
Definition:
Source.h:40
PhysicsTools::SourceVariableSet::find
SourceVariable * find(AtomicId name) const
Definition:
SourceVariableSet.cc:33
PhysicsTools::Source::trained
bool trained
Definition:
Source.h:35
PhysicsTools::Source::getName
AtomicId getName() const
Definition:
Source.h:19
Generated for CMSSW Reference Manual by
1.8.5