|
ATLAS Offline Software
|
Go to the documentation of this file.
7 #ifndef ELECTRONDNNCALCULATOR_H
8 #define ELECTRONDNNCALCULATOR_H
20 #include "lwtnn/generic/FastGraph.hh"
50 std::vector<double>
eta;
51 std::vector<double>
et;
52 std::vector<double>
f3;
57 std::vector<double>
f1;
60 std::vector<double>
d0;
61 std::vector<double>
qd0;
82 const std::string& modelFileName,
83 const std::string& quantileFileName,
84 const std::vector<std::string>& variablesName,
85 const bool multiClass,
101 std::unique_ptr<lwt::generic::FastGraph<float>>
m_graph = 0;
std::vector< double > nSCTHitsPlusDeadSensors
~ElectronDNNCalculator()
Standard destructor.
std::vector< double > trans_TRTPID
std::vector< double > weta2
double nPixHitsPlusDeadSensors
std::unique_ptr< lwt::generic::FastGraph< float > > m_graph
DNN interface via lwtnn.
std::vector< double > Rhad1
double transformInput(const std::vector< double > &quantiles, double value) const
transform the input variables according to a given QuantileTransformer.
base class to forward messages to another class
std::vector< double > m_references
Reference values for the QuantileTransformer. Basically just equidistant bins between 0 and 1.
bool m_multiClass
Whether the used model is a multiclass model or not.
bool m_newVars
Whether the model uses old or new set of variables.
std::vector< double > deltaEta1
std::vector< double > qd0
std::vector< double > EoverP
std::vector< double > SCTWeightedCharge
std::vector< double > Rhad
std::vector< double > wtots1
std::vector< double > Reta
std::vector< double > eta
std::vector< double > dPOverP
std::vector< double > Rphi
ElectronDNNCalculator(AsgElectronSelectorTool *owner, const std::string &modelFileName, const std::string &quantileFileName, const std::vector< std::string > &variablesName, const bool multiClass, const bool newVars)
Constructor of the class.
std::vector< double > Eratio
std::vector< double > deltaPhiRescaled2
Used by AsgElectronSelectorTool to calculate the score of a python trained DNN using lwtnn as interfa...
double nSCTHitsPlusDeadSensors
MVAEnum::QTVars m_quantiles
Quantile values for each variable that needs to be transformed with the QuantileTransformer.
std::vector< double > d0significance
std::vector< double > nPixHitsPlusDeadSensors
Eigen::Matrix< float, -1, 1 > calculate(const MVAEnum::MVACalcVars &varsStruct) const
Get the prediction of the DNN model.
int readQuantileTransformer(TTree *tree, const std::vector< std::string > &variables)
read the bins and values of the QuantileTransformer to transform the input variables.