ROOT
v6-26
Reference Guide
Loading...
Searching...
No Matches
TSpectrum2Transform.h
Go to the documentation of this file.
1
// @(#)root/spectrum:$Id$
2
// Author: Miroslav Morhac 25/09/06
3
4
/*************************************************************************
5
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6
* All rights reserved. *
7
* *
8
* For the licensing terms see $ROOTSYS/LICENSE. *
9
* For the list of contributors see $ROOTSYS/README/CREDITS. *
10
*************************************************************************/
11
#ifndef ROOT_TSpectrum2Transform
12
#define ROOT_TSpectrum2Transform
13
14
#include "
TObject.h
"
15
16
class
TSpectrum2Transform
:
public
TObject
{
17
protected
:
18
Int_t
fSizeX
;
///< x length of transformed data
19
Int_t
fSizeY
;
///< y length of transformed data
20
Int_t
fTransformType
;
///< type of transformation (Haar, Walsh, Cosine, Sine, Fourier, Hartley, Fourier-Walsh, Fourier-Haar, Walsh-Haar, Cosine-Walsh, Cosine-Haar, Sine-Walsh, Sine-Haar)
21
Int_t
fDegree
;
///< degree of mixed transform, applies only for Fourier-Walsh, Fourier-Haar, Walsh-Haar, Cosine-Walsh, Cosine-Haar, Sine-Walsh, Sine-Haar transforms
22
Int_t
fDirection
;
///< forward or inverse transform
23
Int_t
fXmin
;
///< first channel x of filtered or enhanced region
24
Int_t
fXmax
;
///< last channel x of filtered or enhanced region
25
Int_t
fYmin
;
///< first channel y of filtered or enhanced region
26
Int_t
fYmax
;
///< last channel y of filtered or enhanced region
27
Double_t
fFilterCoeff
;
///< value set in the filtered region
28
Double_t
fEnhanceCoeff
;
///< multiplication coefficient applied in enhanced region;
29
public
:
30
enum
{
31
kTransformHaar
=0,
32
kTransformWalsh
=1,
33
kTransformCos
=2,
34
kTransformSin
=3,
35
kTransformFourier
=4,
36
kTransformHartley
=5,
37
kTransformFourierWalsh
=6,
38
kTransformFourierHaar
=7,
39
kTransformWalshHaar
=8,
40
kTransformCosWalsh
=9,
41
kTransformCosHaar
=10,
42
kTransformSinWalsh
=11,
43
kTransformSinHaar
=12,
44
kTransformForward
=0,
45
kTransformInverse
=1
46
};
47
TSpectrum2Transform
();
48
TSpectrum2Transform
(
Int_t
sizeX,
Int_t
sizeY);
49
virtual
~TSpectrum2Transform
();
50
51
protected
:
52
void
BitReverse
(
Double_t
*working_space,
Int_t
num);
53
void
BitReverseHaar
(
Double_t
*working_space,
Int_t
shift,
Int_t
num,
Int_t
start);
54
void
FourCos2
(
Double_t
**working_matrix,
Double_t
*working_vector,
Int_t
numx,
Int_t
numy,
Int_t
direction,
Int_t
type
);
55
void
Fourier
(
Double_t
*working_space,
Int_t
num,
Int_t
hartley,
Int_t
direction,
Int_t
zt_clear);
56
void
General2
(
Double_t
**working_matrix,
Double_t
*working_vector,
Int_t
numx,
Int_t
numy,
Int_t
direction,
Int_t
type
,
Int_t
degree);
57
Int_t
GeneralExe
(
Double_t
*working_space,
Int_t
zt_clear,
Int_t
num,
Int_t
degree,
Int_t
type
);
58
Int_t
GeneralInv
(
Double_t
*working_space,
Int_t
num,
Int_t
degree,
Int_t
type
);
59
void
Haar
(
Double_t
*working_space,
Int_t
num,
Int_t
direction);
60
void
HaarWalsh2
(
Double_t
**working_matrix,
Double_t
*working_vector,
Int_t
numx,
Int_t
numy,
Int_t
direction,
Int_t
type
);
61
void
Walsh
(
Double_t
*working_space,
Int_t
num);
62
63
public
:
64
void
Enhance
(
const
Double_t
**fSource,
Double_t
**fDest);
65
void
FilterZonal
(
const
Double_t
**fSource,
Double_t
**fDest);
66
void
SetDirection
(
Int_t
direction);
67
void
SetEnhanceCoeff
(
Double_t
enhanceCoeff);
68
void
SetFilterCoeff
(
Double_t
filterCoeff);
69
void
SetRegion
(
Int_t
xmin
,
Int_t
xmax
,
Int_t
ymin
,
Int_t
ymax
);
70
void
SetTransformType
(
Int_t
transType,
Int_t
degree);
71
void
Transform
(
const
Double_t
**fSource,
Double_t
**fDest);
72
73
ClassDef
(
TSpectrum2Transform
,1)
//Spectrum2 Transformer, it calculates classic orthogonal 2D transforms
74
};
75
76
#endif
Int_t
int Int_t
Definition
RtypesCore.h:45
Double_t
double Double_t
Definition
RtypesCore.h:59
ClassDef
#define ClassDef(name, id)
Definition
Rtypes.h:325
type
int type
Definition
TGX11.cxx:121
xmin
float xmin
Definition
THbookFile.cxx:95
ymin
float ymin
Definition
THbookFile.cxx:95
xmax
float xmax
Definition
THbookFile.cxx:95
ymax
float ymax
Definition
THbookFile.cxx:95
TObject.h
TObject
Mother of all ROOT objects.
Definition
TObject.h:41
TSpectrum2Transform
Advanced 2-dimensional orthogonal transform functions.
Definition
TSpectrum2Transform.h:16
TSpectrum2Transform::Fourier
void Fourier(Double_t *working_space, Int_t num, Int_t hartley, Int_t direction, Int_t zt_clear)
This function calculates Fourier based transform of a part of data.
Definition
TSpectrum2Transform.cxx:285
TSpectrum2Transform::BitReverse
void BitReverse(Double_t *working_space, Int_t num)
This function carries out bit-reverse reordering of data.
Definition
TSpectrum2Transform.cxx:246
TSpectrum2Transform::fYmin
Int_t fYmin
first channel y of filtered or enhanced region
Definition
TSpectrum2Transform.h:25
TSpectrum2Transform::SetRegion
void SetRegion(Int_t xmin, Int_t xmax, Int_t ymin, Int_t ymax)
This function sets the filtering or enhancement region:
Definition
TSpectrum2Transform.cxx:2750
TSpectrum2Transform::SetTransformType
void SetTransformType(Int_t transType, Int_t degree)
This function sets the following parameters for transform:
Definition
TSpectrum2Transform.cxx:2717
TSpectrum2Transform::Haar
void Haar(Double_t *working_space, Int_t num, Int_t direction)
This function calculates Haar transform of a part of data.
Definition
TSpectrum2Transform.cxx:113
TSpectrum2Transform::FourCos2
void FourCos2(Double_t **working_matrix, Double_t *working_vector, Int_t numx, Int_t numy, Int_t direction, Int_t type)
This function calculates 2D Fourier based transforms Function parameters:
Definition
TSpectrum2Transform.cxx:780
TSpectrum2Transform::GeneralInv
Int_t GeneralInv(Double_t *working_space, Int_t num, Int_t degree, Int_t type)
This function calculates inverse generalized (mixed) transforms Function parameters:
Definition
TSpectrum2Transform.cxx:570
TSpectrum2Transform::SetEnhanceCoeff
void SetEnhanceCoeff(Double_t enhanceCoeff)
This function sets the enhancement coefficient:
Definition
TSpectrum2Transform.cxx:2792
TSpectrum2Transform::fDegree
Int_t fDegree
degree of mixed transform, applies only for Fourier-Walsh, Fourier-Haar, Walsh-Haar,...
Definition
TSpectrum2Transform.h:21
TSpectrum2Transform::Enhance
void Enhance(const Double_t **fSource, Double_t **fDest)
This function transforms the source spectrum.
Definition
TSpectrum2Transform.cxx:2447
TSpectrum2Transform::fSizeY
Int_t fSizeY
y length of transformed data
Definition
TSpectrum2Transform.h:19
TSpectrum2Transform::fEnhanceCoeff
Double_t fEnhanceCoeff
multiplication coefficient applied in enhanced region;
Definition
TSpectrum2Transform.h:28
TSpectrum2Transform::fTransformType
Int_t fTransformType
type of transformation (Haar, Walsh, Cosine, Sine, Fourier, Hartley, Fourier-Walsh,...
Definition
TSpectrum2Transform.h:20
TSpectrum2Transform::BitReverseHaar
void BitReverseHaar(Double_t *working_space, Int_t shift, Int_t num, Int_t start)
This function carries out bit-reverse reordering for Haar transform.
Definition
TSpectrum2Transform.cxx:407
TSpectrum2Transform::fDirection
Int_t fDirection
forward or inverse transform
Definition
TSpectrum2Transform.h:22
TSpectrum2Transform::Walsh
void Walsh(Double_t *working_space, Int_t num)
This function calculates Walsh transform of a part of data.
Definition
TSpectrum2Transform.cxx:192
TSpectrum2Transform::SetFilterCoeff
void SetFilterCoeff(Double_t filterCoeff)
This function sets the filter coefficient:
Definition
TSpectrum2Transform.cxx:2783
TSpectrum2Transform::fYmax
Int_t fYmax
last channel y of filtered or enhanced region
Definition
TSpectrum2Transform.h:26
TSpectrum2Transform::GeneralExe
Int_t GeneralExe(Double_t *working_space, Int_t zt_clear, Int_t num, Int_t degree, Int_t type)
This function calculates generalized (mixed) transforms of different degrees.
Definition
TSpectrum2Transform.cxx:453
TSpectrum2Transform::fFilterCoeff
Double_t fFilterCoeff
value set in the filtered region
Definition
TSpectrum2Transform.h:27
TSpectrum2Transform::Transform
void Transform(const Double_t **fSource, Double_t **fDest)
This function transforms the source spectrum.
Definition
TSpectrum2Transform.cxx:1756
TSpectrum2Transform::SetDirection
void SetDirection(Int_t direction)
This function sets the direction of the transform:
Definition
TSpectrum2Transform.cxx:2770
TSpectrum2Transform::fSizeX
Int_t fSizeX
x length of transformed data
Definition
TSpectrum2Transform.h:18
TSpectrum2Transform::FilterZonal
void FilterZonal(const Double_t **fSource, Double_t **fDest)
This function transforms the source spectrum.
Definition
TSpectrum2Transform.cxx:2116
TSpectrum2Transform::fXmin
Int_t fXmin
first channel x of filtered or enhanced region
Definition
TSpectrum2Transform.h:23
TSpectrum2Transform::fXmax
Int_t fXmax
last channel x of filtered or enhanced region
Definition
TSpectrum2Transform.h:24
TSpectrum2Transform::General2
void General2(Double_t **working_matrix, Double_t *working_vector, Int_t numx, Int_t numy, Int_t direction, Int_t type, Int_t degree)
This function calculates generalized (mixed) 2D transforms Function parameters:
Definition
TSpectrum2Transform.cxx:1048
TSpectrum2Transform::HaarWalsh2
void HaarWalsh2(Double_t **working_matrix, Double_t *working_vector, Int_t numx, Int_t numy, Int_t direction, Int_t type)
This function calculates 2D Haar and Walsh transforms Function parameters:
Definition
TSpectrum2Transform.cxx:689
TSpectrum2Transform::TSpectrum2Transform
TSpectrum2Transform()
Default constructor.
Definition
TSpectrum2Transform.cxx:41
TSpectrum2Transform::kTransformHartley
@ kTransformHartley
Definition
TSpectrum2Transform.h:36
TSpectrum2Transform::kTransformFourierWalsh
@ kTransformFourierWalsh
Definition
TSpectrum2Transform.h:37
TSpectrum2Transform::kTransformSinHaar
@ kTransformSinHaar
Definition
TSpectrum2Transform.h:43
TSpectrum2Transform::kTransformInverse
@ kTransformInverse
Definition
TSpectrum2Transform.h:45
TSpectrum2Transform::kTransformForward
@ kTransformForward
Definition
TSpectrum2Transform.h:44
TSpectrum2Transform::kTransformHaar
@ kTransformHaar
Definition
TSpectrum2Transform.h:31
TSpectrum2Transform::kTransformCosWalsh
@ kTransformCosWalsh
Definition
TSpectrum2Transform.h:40
TSpectrum2Transform::kTransformSinWalsh
@ kTransformSinWalsh
Definition
TSpectrum2Transform.h:42
TSpectrum2Transform::kTransformSin
@ kTransformSin
Definition
TSpectrum2Transform.h:34
TSpectrum2Transform::kTransformCos
@ kTransformCos
Definition
TSpectrum2Transform.h:33
TSpectrum2Transform::kTransformWalsh
@ kTransformWalsh
Definition
TSpectrum2Transform.h:32
TSpectrum2Transform::kTransformWalshHaar
@ kTransformWalshHaar
Definition
TSpectrum2Transform.h:39
TSpectrum2Transform::kTransformFourierHaar
@ kTransformFourierHaar
Definition
TSpectrum2Transform.h:38
TSpectrum2Transform::kTransformCosHaar
@ kTransformCosHaar
Definition
TSpectrum2Transform.h:41
TSpectrum2Transform::kTransformFourier
@ kTransformFourier
Definition
TSpectrum2Transform.h:35
TSpectrum2Transform::~TSpectrum2Transform
virtual ~TSpectrum2Transform()
Destructor.
Definition
TSpectrum2Transform.cxx:101
int
hist
spectrum
inc
TSpectrum2Transform.h
ROOT v6-26 - Reference Guide Generated on Mon Sep 11 2023 21:02:34 (GVA Time) using Doxygen 1.9.8