![]() |
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. | |
| 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. | |
| 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. | |
| 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. | |
| template<typename procedure_t> | |
| procedure_t * | ppFactoryDep (SegmentationType cSegType, unsigned segIdx=0, MSG::Level lvl=MSG::INFO) |
| PP factory with segType dependency. | |
| PreProcessing::IPreProcessorVarDep * | createRandomPP (SegmentationType cSegType, unsigned segIdx=0, MSG::Level lvl=MSG::INFO) |
| PP random factory. | |
| template<typename procedure_t> | |
| procedure_t * | createPP (SegmentationType cSegType, unsigned segIdx=0, MSG::Level lvl=MSG::INFO) |
| Create PP of t. | |
| 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. | |
| void | writeWrapperOnFile (const IProcWrapperBase &wrapper, const char *fileName, MSG::Level) |
| Write wrapper to file. | |
| template<bool goodStatus = true> | |
| Discrimination::NNFeedForwardVarDep * | createNN (SegmentationType cSegType, unsigned segIdx) |
| Creates eta/et independent neural network. | |
| template<bool goodStatus = true> | |
| Discrimination::NNFeedForwardVarDep * | createEtaDepNN (SegmentationType cSegType, unsigned segIdx, float etaMin, float etaMax) |
| Creates eta dependent, et independent neural network. | |
| template<bool goodStatus = true> | |
| Discrimination::NNFeedForwardVarDep * | createEtDepNN (SegmentationType cSegType, unsigned segIdx, float etMin, float etMax) |
| Creates eta independent, et dependent neural network. | |
| 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. | |
| 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. | |
| 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 42 of file testWrite.cxx.
| #define private public |
Definition at line 30 of file testWrite.cxx.
| #define protected public |
Definition at line 29 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 ) |
Create PP of t.
Definition at line 1024 of file testWrite.cxx.
| 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 ) |
PP random factory.
Definition at line 971 of file testWrite.cxx.
| 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 | ( | ) |
Definition at line 220 of file testWrite.cxx.
| procedure_t * ppFactoryDep | ( | SegmentationType | cSegType, |
| unsigned | segIdx = 0, | ||
| MSG::Level | lvl = MSG::INFO ) |
PP factory with segType dependency.
Definition at line 958 of file testWrite.cxx.
| procedure_t * ppFactoryEtaDep | ( | SegmentationType | cSegType, |
| unsigned | segIdx, | ||
| float | etaMin, | ||
| float | etaMax, | ||
| MSG::Level | lvl ) |
PP factory with segType and eta dependency.
Definition at line 922 of file testWrite.cxx.
| 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.
Definition at line 903 of file testWrite.cxx.
| procedure_t * ppFactoryEtDep | ( | SegmentationType | cSegType, |
| unsigned | segIdx, | ||
| float | etMin, | ||
| float | etMax, | ||
| MSG::Level | lvl ) |
PP factory with segType and et dependency.
Definition at line 940 of file testWrite.cxx.
| void writeWrapperOnFile | ( | const IProcWrapperBase & | wrapper, |
| const char * | fileName, | ||
| MSG::Level | lvl ) |
Write wrapper to file.
Definition at line 719 of file testWrite.cxx.
| 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.