|
ATLAS Offline Software
|
Go to the documentation of this file.
6 #ifndef RINGERSELECTORTOOLS_PROCEDURES_NORMALIZATIONS_H
7 #define RINGERSELECTORTOOLS_PROCEDURES_NORMALIZATIONS_H
19 #if !defined(XAOD_STANDALONE) && !defined(RINGER_STANDALONE)
20 # include "GaudiKernel/SystemOfUnits.h"
38 namespace PreProcessing
49 public RedirectMsgStream
57 virtual void execute(std::vector<float> &inputSpace)
const final override;
69 public RedirectMsgStream
77 virtual void execute(std::vector<float> &inputSpace)
const final override;
89 public RedirectMsgStream
97 virtual void execute(std::vector<float> &inputSpace)
const final override;
109 public RedirectMsgStream
117 : m_constantInv(1){;}
119 const float constantValue)
120 : m_constantInv(1/constantValue)
122 if (!m_constantInv) {
123 throw std::runtime_error(
124 std::string(
"Initialized ConstantValueVarDep norm with zero constant"));
128 virtual void execute(std::vector<float> &inputSpace)
const final override;
142 public RedirectMsgStream
153 const float stopEnergy,
154 const float energyThres)
155 : m_stopEnergy(stopEnergy),
156 m_energyThres(energyThres){;}
158 virtual void execute(std::vector<float> &inputSpace)
const final override;
174 public RedirectMsgStream
184 const std::vector<float> &dataMean,
185 const std::vector<float> &dataStd);
187 virtual void execute(std::vector<float> &inputSpace)
const final override;
205 public RedirectMsgStream
214 const std::vector<float>&
min,
215 const std::vector<float>&
max);
217 virtual void execute(std::vector<float> &inputSpace)
const final override;
237 public RedirectMsgStream,
247 ,
const float pileupEstimationMax = 1. ):
248 m_etMin{etMin}, m_etMax{etMax},
250 m_pileupEstimationMax{pileupEstimationMax}
296 virtual void execute(std::vector<float> &inputSpace)
const final override;
393 #if !defined(XAOD_STANDALONE) && !defined(RINGER_STANDALONE)
396 #else // We suppose that we are working with MeV as reference unit.
424 const float stopEnergy,
425 const float energyThres):
447 const std::vector<float> &dataMean,
448 const std::vector<float> &dataStd):
469 const std::vector<float> &
min,
470 const std::vector<float> &
max):
494 #endif // RINGERSELECTORTOOLS_PROCEDURES_NORMALIZATIONS_H
497 #ifndef INCLUDE_HEADER_ONLY // Protect against circular includes
499 #endif // INCLUDE_HEADER_ONLY
Extra patterns decribing particle interation process.
virtual void execute(std::vector< float > &inputSpace) const final override
#define RINGER_IO_VARDEP_OBJ(self, base)
Add necessary information to RingerIOVarDepObj.
std::vector< float > m_normInv
The inverse of the training sample data standard deviation.
virtual void execute(std::vector< float > &inputSpace) const final override
virtual void execute(std::vector< float > &inputSpace) const final override
Spherization(const std::vector< float > &dataMean, const std::vector< float > &dataStd)
std::vector< float > m_deslocation
The training sample data min.
Use constant value as rings normalization factor.
Scale rings energy to GeV.
PreProcessor interface to be used by Ringer Wrapper.
PreProcessing interface to be inherited by PreProcessing procedures.
float m_constantInv
Inverse value of the constant value normalization.
float m_stopEnergy
The stop energy threshold for increasing noise.
Point Norm(const Point &a)
SequentialVarDep(const float stopEnergy, const float energyThres)
Use sequential normalization.
virtual void execute(std::vector< float > &inputSpace) const final override
virtual void execute(std::vector< float > &inputSpace) const final override
SpherizationVarDep(const std::vector< float > &dataMean, const std::vector< float > &dataStd)
Spherization(Spherization &&)
#define RINGER_IO_VARDEP_BASE_NOMEMBER(self)
Same as RINGER_IO_VARDEP_BASE, but when class has no member.
size_t m_dim
Input dimension (transient variable)
std::vector< float > m_normInv
The inverse of sample delta(max,min)
size_t m_dim
Input dimension (transient variable)
virtual void execute(std::vector< float > &inputSpace) const final override
ConstantValue(ConstantValue &&)
Sequential(Sequential &&)
Normalize data to have zero mean and unitary standard deviation.
ConstantValue(const float constantValue)
Normalization base classes:
Use SqrtVarDep of norm-1 as rings normalization factor.
std::vector< float > m_deslocation
The training sample data mean.
#define RINGER_IO_VARDEP_BASE(self)
Create RingerIOVarDepObj base object prototype methods.
float m_energyThres
The energy threshold for choosing.
virtual void execute(std::vector< float > &inputSpace) const final override
Use norm-2 as rings normalization factor.
MinMax(const std::vector< float > &min, const std::vector< float > &max)
=============================================================================
MinMaxVarDep(const std::vector< float > &min, const std::vector< float > &max)
#define RINGER_DEFINE_PROCEDURE_DEFAULT_METHODS(self)
This macro should be defined for every Ringer Procedure defined after the class is defined,...
Objects that can be recorded/read into/from configuration files.
Normalize data to be bounded within [-1,1] range.
ConstantValueVarDep(const float constantValue)
Sequential(const float stopEnergy, const float energyThres)
Namespace dedicated for Ringer utilities.