// @(#)root/tmva $Id$
// Author: Andreas Hoecker, Joerg Stelzer, Helge Voss

/**********************************************************************************
 * Project: TMVA - a Root-integrated toolkit for multivariate data analysis       *
 * Package: TMVA                                                                  *
 * Class  : VariableIdentityTransform                                             *
 * Web    : http://tmva.sourceforge.net                                           *
 *                                                                                *
 * Description:                                                                   *
 *      Identity transform                                                        *
 *                                                                                *
 * Authors (alphabetical):                                                        *
 *      Andreas Hoecker <Andreas.Hocker@cern.ch> - CERN, Switzerland              *
 *      Joerg Stelzer   <Joerg.Stelzer@cern.ch>  - CERN, Switzerland              *
 *      Helge Voss      <Helge.Voss@cern.ch>     - MPI-K Heidelberg, Germany      *
 *                                                                                *
 * Copyright (c) 2005:                                                            *
 *      CERN, Switzerland                                                         *
 *      U. of Victoria, Canada                                                    *
 *      MPI-K Heidelberg, Germany                                                 *
 *                                                                                *
 * Redistribution and use in source and binary forms, with or without             *
 * modification, are permitted according to the terms listed in LICENSE           *
 * (http://tmva.sourceforge.net/LICENSE)                                          *
 **********************************************************************************/

#ifndef ROOT_TMVA_VariableIdentityTransform
#define ROOT_TMVA_VariableIdentityTransform

//////////////////////////////////////////////////////////////////////////
//                                                                      //
// VariableIdentityTransform                                            //
//                                                                      //
// Linear interpolation class                                           //
//                                                                      //
//////////////////////////////////////////////////////////////////////////

#ifndef ROOT_TMVA_VariableTransformBase
#include "TMVA/VariableTransformBase.h"
#endif

namespace TMVA {

   class VariableIdentityTransform : public VariableTransformBase {
      
   public:
      
      VariableIdentityTransform( DataSetInfo& dsi );
      virtual ~VariableIdentityTransform( void ) {}

      void   Initialize();
      Bool_t PrepareTransformation (const std::vector<Event*>& );

      void WriteTransformationToStream ( std::ostream& ) const {}
      void ReadTransformationFromStream( std::istream&, const TString& ) { SetCreated(); }

      virtual void AttachXMLTo(void* parent);
      virtual void ReadFromXML( void* trfnode );

      virtual const Event* Transform(const Event* const, Int_t cls ) const;
      virtual const Event* InverseTransform(const Event* const ev, Int_t cls ) const { return Transform( ev, cls ); }

      // writer of function code
      virtual void MakeFunction(std::ostream& fout, const TString& fncName, Int_t part, UInt_t trCounter, Int_t cls );

      ClassDef(VariableIdentityTransform,0) // Variable transformation: identity
   };

} // namespace TMVA

#endif 
 VariableIdentityTransform.h:1
 VariableIdentityTransform.h:2
 VariableIdentityTransform.h:3
 VariableIdentityTransform.h:4
 VariableIdentityTransform.h:5
 VariableIdentityTransform.h:6
 VariableIdentityTransform.h:7
 VariableIdentityTransform.h:8
 VariableIdentityTransform.h:9
 VariableIdentityTransform.h:10
 VariableIdentityTransform.h:11
 VariableIdentityTransform.h:12
 VariableIdentityTransform.h:13
 VariableIdentityTransform.h:14
 VariableIdentityTransform.h:15
 VariableIdentityTransform.h:16
 VariableIdentityTransform.h:17
 VariableIdentityTransform.h:18
 VariableIdentityTransform.h:19
 VariableIdentityTransform.h:20
 VariableIdentityTransform.h:21
 VariableIdentityTransform.h:22
 VariableIdentityTransform.h:23
 VariableIdentityTransform.h:24
 VariableIdentityTransform.h:25
 VariableIdentityTransform.h:26
 VariableIdentityTransform.h:27
 VariableIdentityTransform.h:28
 VariableIdentityTransform.h:29
 VariableIdentityTransform.h:30
 VariableIdentityTransform.h:31
 VariableIdentityTransform.h:32
 VariableIdentityTransform.h:33
 VariableIdentityTransform.h:34
 VariableIdentityTransform.h:35
 VariableIdentityTransform.h:36
 VariableIdentityTransform.h:37
 VariableIdentityTransform.h:38
 VariableIdentityTransform.h:39
 VariableIdentityTransform.h:40
 VariableIdentityTransform.h:41
 VariableIdentityTransform.h:42
 VariableIdentityTransform.h:43
 VariableIdentityTransform.h:44
 VariableIdentityTransform.h:45
 VariableIdentityTransform.h:46
 VariableIdentityTransform.h:47
 VariableIdentityTransform.h:48
 VariableIdentityTransform.h:49
 VariableIdentityTransform.h:50
 VariableIdentityTransform.h:51
 VariableIdentityTransform.h:52
 VariableIdentityTransform.h:53
 VariableIdentityTransform.h:54
 VariableIdentityTransform.h:55
 VariableIdentityTransform.h:56
 VariableIdentityTransform.h:57
 VariableIdentityTransform.h:58
 VariableIdentityTransform.h:59
 VariableIdentityTransform.h:60
 VariableIdentityTransform.h:61
 VariableIdentityTransform.h:62
 VariableIdentityTransform.h:63
 VariableIdentityTransform.h:64
 VariableIdentityTransform.h:65
 VariableIdentityTransform.h:66
 VariableIdentityTransform.h:67
 VariableIdentityTransform.h:68
 VariableIdentityTransform.h:69
 VariableIdentityTransform.h:70
 VariableIdentityTransform.h:71
 VariableIdentityTransform.h:72