ROOT
6.07/01
Reference Guide
ROOT Home Page
Main Page
Tutorials
User's Classes
Namespaces
All Classes
Files
Release Notes
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
tmva
tmva
inc
TMVA
VariableIdentityTransform.h
Go to the documentation of this file.
1
// @(#)root/tmva $Id$
2
// Author: Andreas Hoecker, Joerg Stelzer, Helge Voss
3
4
/**********************************************************************************
5
* Project: TMVA - a Root-integrated toolkit for multivariate data analysis *
6
* Package: TMVA *
7
* Class : VariableIdentityTransform *
8
* Web : http://tmva.sourceforge.net *
9
* *
10
* Description: *
11
* Identity transform *
12
* *
13
* Authors (alphabetical): *
14
* Andreas Hoecker <Andreas.Hocker@cern.ch> - CERN, Switzerland *
15
* Joerg Stelzer <Joerg.Stelzer@cern.ch> - CERN, Switzerland *
16
* Helge Voss <Helge.Voss@cern.ch> - MPI-K Heidelberg, Germany *
17
* *
18
* Copyright (c) 2005: *
19
* CERN, Switzerland *
20
* U. of Victoria, Canada *
21
* MPI-K Heidelberg, Germany *
22
* *
23
* Redistribution and use in source and binary forms, with or without *
24
* modification, are permitted according to the terms listed in LICENSE *
25
* (http://tmva.sourceforge.net/LICENSE) *
26
**********************************************************************************/
27
28
#ifndef ROOT_TMVA_VariableIdentityTransform
29
#define ROOT_TMVA_VariableIdentityTransform
30
31
//////////////////////////////////////////////////////////////////////////
32
// //
33
// VariableIdentityTransform //
34
// //
35
// Linear interpolation class //
36
// //
37
//////////////////////////////////////////////////////////////////////////
38
39
#ifndef ROOT_TMVA_VariableTransformBase
40
#include "
TMVA/VariableTransformBase.h
"
41
#endif
42
43
namespace
TMVA {
44
45
class
VariableIdentityTransform
:
public
VariableTransformBase
{
46
47
public
:
48
49
VariableIdentityTransform
(
DataSetInfo
& dsi );
50
virtual
~VariableIdentityTransform
(
void
) {}
51
52
void
Initialize
();
53
Bool_t
PrepareTransformation
(
const
std::vector<Event*>& );
54
55
void
WriteTransformationToStream
( std::ostream& )
const
{}
56
void
ReadTransformationFromStream
( std::istream&,
const
TString
& ) {
SetCreated
(); }
57
58
virtual
void
AttachXMLTo
(
void
* parent);
59
virtual
void
ReadFromXML
(
void
* trfnode );
60
61
virtual
const
Event
*
Transform
(
const
Event
*
const
,
Int_t
cls )
const
;
62
virtual
const
Event
*
InverseTransform
(
const
Event
*
const
ev,
Int_t
cls )
const
{
return
Transform
( ev, cls ); }
63
64
// writer of function code
65
virtual
void
MakeFunction
(std::ostream& fout,
const
TString
& fncName,
Int_t
part,
UInt_t
trCounter,
Int_t
cls );
66
67
ClassDef
(
VariableIdentityTransform
,0)
// Variable transformation: identity
68
};
69
70
}
// namespace TMVA
71
72
#endif
TMVA::VariableIdentityTransform::PrepareTransformation
Bool_t PrepareTransformation(const std::vector< Event * > &)
the identity does not need to be prepared, only calculate the normalization
Definition:
VariableIdentityTransform.cxx:62
TMVA::VariableIdentityTransform::Initialize
void Initialize()
nothing to initialize
Definition:
VariableIdentityTransform.cxx:55
TMVA::VariableTransformBase::SetCreated
void SetCreated(Bool_t c=kTRUE)
Definition:
VariableTransformBase.h:135
TMVA::VariableIdentityTransform::InverseTransform
virtual const Event * InverseTransform(const Event *const ev, Int_t cls) const
Definition:
VariableIdentityTransform.h:62
TMVA::VariableIdentityTransform
Definition:
VariableIdentityTransform.h:45
TMVA::VariableIdentityTransform::Transform
virtual const Event * Transform(const Event *const, Int_t cls) const
identity transform returns same event
Definition:
VariableIdentityTransform.cxx:99
TMVA::VariableIdentityTransform::~VariableIdentityTransform
virtual ~VariableIdentityTransform(void)
Definition:
VariableIdentityTransform.h:50
TString
Basic string class.
Definition:
TString.h:137
Int_t
int Int_t
Definition:
RtypesCore.h:41
Bool_t
bool Bool_t
Definition:
RtypesCore.h:59
TMVA::VariableIdentityTransform::MakeFunction
virtual void MakeFunction(std::ostream &fout, const TString &fncName, Int_t part, UInt_t trCounter, Int_t cls)
creates C++ code fragment of the indentity transform for inclusion in standalone C++ class ...
Definition:
VariableIdentityTransform.cxx:107
ClassDef
#define ClassDef(name, id)
Definition:
Rtypes.h:254
TMVA::DataSetInfo
Definition:
DataSetInfo.h:78
TMVA::VariableIdentityTransform::ReadFromXML
virtual void ReadFromXML(void *trfnode)
reding the identity transformation from XML
Definition:
VariableIdentityTransform.cxx:91
TMVA::VariableTransformBase
Definition:
VariableTransformBase.h:67
TMVA::VariableIdentityTransform::ReadTransformationFromStream
void ReadTransformationFromStream(std::istream &, const TString &)
Definition:
VariableIdentityTransform.h:56
TMVA::Event
Definition:
Event.h:57
UInt_t
unsigned int UInt_t
Definition:
RtypesCore.h:42
TMVA::VariableIdentityTransform::AttachXMLTo
virtual void AttachXMLTo(void *parent)
identity transformation to write to XML Log() << kFATAL << "Please implement writing of transformatio...
Definition:
VariableIdentityTransform.cxx:84
TMVA::VariableIdentityTransform::WriteTransformationToStream
void WriteTransformationToStream(std::ostream &) const
Definition:
VariableIdentityTransform.h:55
TMVA::VariableIdentityTransform::VariableIdentityTransform
VariableIdentityTransform(DataSetInfo &dsi)
VariableTransformBase.h