Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
9 #ifndef G4ATLASTOOLS_PUNCHTHROUGHG4CLASSIFIER_H
10 #define G4ATLASTOOLS_PUNCHTHROUGHG4CLASSIFIER_H
20 #include "lwtnn/LightweightGraph.hh"
46 virtual double computePunchThroughProbability(
const G4FastTrack& fastTrack,
const double simE,
const std::vector<double> & simEfrac)
const override;
49 static std::map<std::string, std::map<std::string, double> >
computeInputs(
const G4FastTrack& fastTrack,
const double simE,
const std::vector<double> & simEfrac);
52 std::map<std::string, std::map<std::string, double> >
scaleInputs(std::map<std::string, std::map<std::string, double> >&
inputs)
const;
59 std::unique_ptr<lwt::LightweightGraph>
m_graph{};
82 #endif //G4ATLASTOOLS_PUNCHTHROUGHG4CLASSIFIER_H
virtual double computePunchThroughProbability(const G4FastTrack &fastTrack, const double simE, const std::vector< double > &simEfrac) const override
interface method to return probability prediction of punch through
virtual ~PunchThroughG4Classifier()=default
Destructor.
virtual StatusCode initialize() override
AlgTool initialize method.
std::unique_ptr< lwt::LightweightGraph > m_graph
NN graph.
double calibrateOutput(double &networkOutput) const
calibrate NN output using isotonic regressor
virtual StatusCode finalize() override
AlgTool finalize method.
std::string m_calibratorConfigFile
isotonic regressor calibrator members
StringProperty m_scalerConfigFileName
static std::map< std::string, std::map< std::string, double > > computeInputs(const G4FastTrack &fastTrack, const double simE, const std::vector< double > &simEfrac)
calcalate NN inputs based on G4FastTrack and simulstate
::StatusCode StatusCode
StatusCode definition for legacy code.
StatusCode initializeCalibrator(const std::string &calibratorConfigFile)
isotonic regressor calibrator initialize method
PunchThroughG4Classifier(const std::string &, const std::string &, const IInterface *)
Constructor.
std::map< double, double > m_calibrationMap
StringProperty m_networkConfigFileName
StatusCode initializeScaler(const std::string &scalerConfigFile)
input variable MinMaxScaler initialize method
StringProperty m_calibratorConfigFileName
double m_scalerMin
input variable MinMaxScaler members
std::map< std::string, double > m_scalerMinMap
std::map< std::string, double > m_scalerMaxMap
StatusCode initializeNetwork(const std::string &networkConfigFile)
neural network initialize method
std::map< std::string, std::map< std::string, double > > scaleInputs(std::map< std::string, std::map< std::string, double > > &inputs) const
scale NN inputs using MinMaxScaler