CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Source.h
Go to the documentation of this file.
1 #ifndef PhysicsTools_MVATrainer_Source_h
2 #define PhysicsTools_MVATrainer_Source_h
3 
5 
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 
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:
41 };
42 
43 } // namespace PhysicsTools
44 
45 #endif // PhysicsTools_MVATrainer_Source_h
SourceVariableSet & getInputs()
Definition: Source.h:32
bool isTrained() const
Definition: Source.h:24
virtual ~Source()
Definition: Source.h:17
SourceVariable * getOutput(AtomicId name) const
Definition: Source.h:21
const SourceVariableSet & getInputs() const
Definition: Source.h:26
Cheap generic unique keyword identifier class.
Definition: AtomicId.h:32
const SourceVariableSet & getOutputs() const
Definition: Source.h:27
Source(AtomicId name, bool trained=false)
Definition: Source.h:15
AtomicId name
Definition: Source.h:38
SourceVariableSet & getOutputs()
Definition: Source.h:33
SourceVariableSet inputs
Definition: Source.h:39
SourceVariableSet outputs
Definition: Source.h:40
SourceVariable * find(AtomicId name) const
AtomicId getName() const
Definition: Source.h:19