ATLAS Offline Software
|
#include <iostream>
#include <limits>
#include <type_traits>
#include <TFile.h>
#include "GaudiKernel/SystemOfUnits.h"
#include "RingerSelectorTools/AsgElectronRingerSelector.h"
#include "RingerSelectorTools/procedures/RingerProcedureWrapper.h"
#include "RingerSelectorTools/procedures/Normalizations.h"
#include "RingerSelectorTools/procedures/NeuralNetwork.h"
#include "RingerSelectorTools/procedures/Thresholds.h"
#include "RingerSelectorTools/tools/IOHelperFcns.h"
#include "RingerSelectorTools/tools/TrackPatternsHolder.h"
Go to the source code of this file.
Macros | |
#define | protected public |
#define | private public |
#define | BREAKER "================================================================================" |
Functions | |
Ringer::AsgElectronRingerSelector | __AsgRingerSel__ ("testWrite") |
template<typename procedure_t , EtaDependency etaDependency, EtDependency etDependency, SegmentationType segType> | |
IPreProcWrapper * | createPPWrapper (const char *fileName, const std::vector< float > &etaDepBounderies={0, 2.5}, const std::vector< float > &etDepBounderies={0, std::numeric_limits< float >::infinity()}) |
Method dedicated for testing pre-processing wrapper creation. More... | |
template<typename procedure_t > | |
procedure_t * | ppFactoryEtaEtDep (SegmentationType cSegType, unsigned segIdx, float etaMin, float etaMax, float etMin, float etMax, MSG::Level lvl) |
PP factory with segType, eta and et dependency. More... | |
template<typename procedure_t > | |
procedure_t * | ppFactoryEtaDep (SegmentationType cSegType, unsigned segIdx, float etaMin, float etaMax, MSG::Level lvl) |
PP factory with segType and eta dependency. More... | |
template<typename procedure_t > | |
procedure_t * | ppFactoryEtDep (SegmentationType cSegType, unsigned segIdx, float etMin, float etMax, MSG::Level lvl) |
PP factory with segType and et dependency. More... | |
template<typename procedure_t > | |
procedure_t * | ppFactoryDep (SegmentationType cSegType, unsigned segIdx=0, MSG::Level lvl=MSG::INFO) |
PP factory with segType dependency. More... | |
PreProcessing::IPreProcessorVarDep * | createRandomPP (SegmentationType cSegType, unsigned segIdx=0, MSG::Level lvl=MSG::INFO) |
PP random factory. More... | |
template<typename procedure_t > | |
procedure_t * | createPP (SegmentationType cSegType, unsigned segIdx=0, MSG::Level lvl=MSG::INFO) |
Create PP of t. More... | |
template<typename procedure_t , EtaDependency etaDependency, EtDependency etDependency, SegmentationType segType> | |
void | createDiscrWrapper (const char *fileName, const IPreProcWrapperCollection *ppWrapper=nullptr, const std::vector< float > &etaDepBounderies={0, 2.5}, const std::vector< float > &etDepBounderies={0, std::numeric_limits< float >::infinity()}) |
Method dedicated for testing discriminator wrapper creation. More... | |
void | writeWrapperOnFile (const IProcWrapperBase &wrapper, const char *fileName, MSG::Level) |
Write wrapper to file. More... | |
template<bool goodStatus = true> | |
Discrimination::NNFeedForwardVarDep * | createNN (SegmentationType cSegType, unsigned segIdx) |
Creates eta/et independent neural network. More... | |
template<bool goodStatus = true> | |
Discrimination::NNFeedForwardVarDep * | createEtaDepNN (SegmentationType cSegType, unsigned segIdx, float etaMin, float etaMax) |
Creates eta dependent, et independent neural network. More... | |
template<bool goodStatus = true> | |
Discrimination::NNFeedForwardVarDep * | createEtDepNN (SegmentationType cSegType, unsigned segIdx, float etMin, float etMax) |
Creates eta independent, et dependent neural network. More... | |
template<bool goodStatus = true> | |
Discrimination::NNFeedForwardVarDep * | createEtaEtDepNN (SegmentationType cSegType, unsigned segIdx, float etaMin, float etaMax, float etMin, float etMax) |
Creates eta dependent, et dependent neural network. More... | |
template<typename procedure_t , EtaDependency etaDependency, EtDependency etDependency> | |
void | createThresWrapper (const char *fileName, const std::vector< float > &etaDepBounderies={0, 2.5}, const std::vector< float > &etDepBounderies={0, std::numeric_limits< float >::infinity()}, float thresValue=0) |
Method dedicated for testing threshold wrapper creation. More... | |
Discrimination::UniqueThresholdVarDep * | createThres (float thresValue) |
Discrimination::UniqueThresholdVarDep * | createEtaDepThres (float etaMin, float etaMax, float thresValue) |
Discrimination::UniqueThresholdVarDep * | createEtDepThres (float etMin, float etMax, float thresValue) |
Discrimination::UniqueThresholdVarDep * | createEtaEtDepThres (float etaMin, float etaMax, float etMin, float etMax, float thresValue) |
int | main () |
Variables | |
MsgStream & | msg = __AsgRingerSel__.msg() |
std::vector< std::vector< unsigned > > | segmentationEntries |
#define BREAKER "================================================================================" |
Definition at line 43 of file testWrite.cxx.
#define private public |
Definition at line 31 of file testWrite.cxx.
#define protected public |
Definition at line 30 of file testWrite.cxx.
Ringer::AsgElectronRingerSelector __AsgRingerSel__ | ( | "testWrite" | ) |
void createDiscrWrapper | ( | const char * | fileName, |
const IPreProcWrapperCollection * | ppWrapper = nullptr , |
||
const std::vector< float > & | etaDepBounderies = {0, 2.5} , |
||
const std::vector< float > & | etDepBounderies = {0, std::numeric_limits<float>::infinity()} |
||
) |
Method dedicated for testing discriminator wrapper creation.
Definition at line 1064 of file testWrite.cxx.
Discrimination::NNFeedForwardVarDep * createEtaDepNN | ( | SegmentationType | cSegType, |
unsigned | segIdx, | ||
float | etaMin, | ||
float | etaMax | ||
) |
Creates eta dependent, et independent neural network.
Definition at line 1241 of file testWrite.cxx.
Discrimination::UniqueThresholdVarDep * createEtaDepThres | ( | float | etaMin, |
float | etaMax, | ||
float | thresValue | ||
) |
Definition at line 1414 of file testWrite.cxx.
Discrimination::NNFeedForwardVarDep * createEtaEtDepNN | ( | SegmentationType | cSegType, |
unsigned | segIdx, | ||
float | etaMin, | ||
float | etaMax, | ||
float | etMin, | ||
float | etMax | ||
) |
Creates eta dependent, et dependent neural network.
Definition at line 1265 of file testWrite.cxx.
Discrimination::UniqueThresholdVarDep * createEtaEtDepThres | ( | float | etaMin, |
float | etaMax, | ||
float | etMin, | ||
float | etMax, | ||
float | thresValue | ||
) |
Definition at line 1434 of file testWrite.cxx.
Discrimination::NNFeedForwardVarDep * createEtDepNN | ( | SegmentationType | cSegType, |
unsigned | segIdx, | ||
float | etMin, | ||
float | etMax | ||
) |
Creates eta independent, et dependent neural network.
Definition at line 1253 of file testWrite.cxx.
Discrimination::UniqueThresholdVarDep * createEtDepThres | ( | float | etMin, |
float | etMax, | ||
float | thresValue | ||
) |
Definition at line 1424 of file testWrite.cxx.
Discrimination::NNFeedForwardVarDep * createNN | ( | SegmentationType | cSegType, |
unsigned | segIdx | ||
) |
Creates eta/et independent neural network.
If goodStatus = false, returns a dummy neural network which always returns 0 as output for an pattern space of dimension size of 100.
An old MC12 Zee x JF14 neural network is created otherwise.
Definition at line 1210 of file testWrite.cxx.
procedure_t * createPP | ( | SegmentationType | cSegType, |
unsigned | segIdx = 0 , |
||
MSG::Level | lvl = MSG::INFO |
||
) |
IPreProcWrapper * createPPWrapper | ( | const char * | fileName, |
const std::vector< float > & | etaDepBounderies = {0, 2.5} , |
||
const std::vector< float > & | etDepBounderies = {0, std::numeric_limits<float>::infinity()} |
||
) |
Method dedicated for testing pre-processing wrapper creation.
Definition at line 746 of file testWrite.cxx.
PreProcessing::IPreProcessorVarDep * createRandomPP | ( | SegmentationType | cSegType, |
unsigned | segIdx = 0 , |
||
MSG::Level | lvl = MSG::INFO |
||
) |
Discrimination::UniqueThresholdVarDep * createThres | ( | float | thresValue | ) |
Definition at line 1408 of file testWrite.cxx.
void createThresWrapper | ( | const char * | fileName, |
const std::vector< float > & | etaDepBounderies = {0, 2.5} , |
||
const std::vector< float > & | etDepBounderies = {0, std::numeric_limits<float>::infinity()} , |
||
float | thresValue = 0 |
||
) |
Method dedicated for testing threshold wrapper creation.
Definition at line 1281 of file testWrite.cxx.
int main | ( | ) |
getCoefficientMap(label, EigenIdxList)
input value:
getCoefficients(label, evIdx)
input value:
getListOfOriginalNuisanceParameters(label)
input value:
getNumEigenVectors(label)
input value:
Definition at line 220 of file testWrite.cxx.
procedure_t * ppFactoryDep | ( | SegmentationType | cSegType, |
unsigned | segIdx = 0 , |
||
MSG::Level | lvl = MSG::INFO |
||
) |
procedure_t * ppFactoryEtaDep | ( | SegmentationType | cSegType, |
unsigned | segIdx, | ||
float | etaMin, | ||
float | etaMax, | ||
MSG::Level | lvl | ||
) |
procedure_t * ppFactoryEtaEtDep | ( | SegmentationType | cSegType, |
unsigned | segIdx, | ||
float | etaMin, | ||
float | etaMax, | ||
float | etMin, | ||
float | etMax, | ||
MSG::Level | lvl | ||
) |
procedure_t * ppFactoryEtDep | ( | SegmentationType | cSegType, |
unsigned | segIdx, | ||
float | etMin, | ||
float | etMax, | ||
MSG::Level | lvl | ||
) |
void writeWrapperOnFile | ( | const IProcWrapperBase & | wrapper, |
const char * | fileName, | ||
MSG::Level | lvl | ||
) |
MsgStream& msg = __AsgRingerSel__.msg() |
Definition at line 35 of file testWrite.cxx.
std::vector< std::vector<unsigned> > segmentationEntries |
Definition at line 210 of file testWrite.cxx.