File indexing completed on 2025-12-22 10:28:10
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026 #ifndef ROOT_TMVA_VariableRearrangeTransform
0027 #define ROOT_TMVA_VariableRearrangeTransform
0028
0029
0030
0031
0032
0033
0034
0035
0036
0037 #include "TMVA/VariableTransformBase.h"
0038
0039 #include <vector>
0040
0041 namespace TMVA {
0042
0043 class VariableRearrangeTransform : public VariableTransformBase {
0044
0045 public:
0046
0047 typedef std::vector<Float_t> FloatVector;
0048
0049 VariableRearrangeTransform( DataSetInfo& dsi );
0050 virtual ~VariableRearrangeTransform( void );
0051
0052 void Initialize() override;
0053 Bool_t PrepareTransformation (const std::vector<Event*>&) override;
0054
0055 const Event* Transform(const Event* const, Int_t cls ) const override;
0056 const Event* InverseTransform( const Event* const, Int_t cls ) const override;
0057
0058 void WriteTransformationToStream ( std::ostream& ) const override {}
0059 void ReadTransformationFromStream( std::istream&, const TString& ) override { SetCreated(); }
0060
0061 void AttachXMLTo(void* parent) override;
0062 void ReadFromXML( void* trfnode ) override;
0063
0064 void PrintTransformation( std::ostream & o ) override;
0065
0066
0067 void MakeFunction( std::ostream& fout, const TString& fncName, Int_t part, UInt_t trCounter, Int_t cls ) override;
0068
0069
0070 std::vector<TString>* GetTransformationStrings( Int_t cls ) const override;
0071
0072 private:
0073
0074 ClassDefOverride(VariableRearrangeTransform,0);
0075 };
0076
0077 }
0078
0079 #endif