1 #ifndef RecoLocalCalo_EcalDeadChannelRecoveryAlgos_EcalDeadChannelRecoveryNN_H
2 #define RecoLocalCalo_EcalDeadChannelRecoveryAlgos_EcalDeadChannelRecoveryNN_H
14 #include <TMultiLayerPerceptron.h>
51 const int CellX[9] = { 0, 0, 0 , -1, -1, -1 ,
54 const int CellY[9] = { 0, -1, 1 , 0, -1, 1 ,
59 double Sum8Cut,
bool *AcceptFlag);
65 TMultiLayerPerceptron *
mlp;
69 MultiLayerPerceptronContext
ctx_[9];
79 double *MNxN_RelMC,
bool *AccFlag);
82 double *MNxN_RelDC,
bool *AccFlag);
EcalDeadChannelRecoveryNN()
double reorderMxNMatrix(EBDetId it, const std::vector< DetId > &window, const EcalRecHitCollection &hit_collection, double *MNxN, bool *AcceptFlag)
double makeNxNMatrice_RelMC(DetIdT itID, const EcalRecHitCollection &hit_collection, double *MNxN_RelMC, bool *AccFlag)
double makeNxNMatrice_RelDC(DetIdT itID, const EcalRecHitCollection &hit_collection, double *MNxN_RelDC, bool *AccFlag)
const CaloSubdetectorTopology * topology_
~EcalDeadChannelRecoveryNN()
double recover(const DetIdT id, const EcalRecHitCollection &hit_collection, double Sum8Cut, bool *AcceptFlag)
MultiLayerPerceptronContext ctx_[9]
void setCaloTopology(const CaloTopology *topo)
double estimateEnergy(double *M3x3Input, double epsilon=0.0000001)
TMultiLayerPerceptron * mlp
void load_file(MultiLayerPerceptronContext &ctx, std::string fn)