#include <EndcapPiZeroDiscriminatorAlgo.h>
Public Types | |
enum | DebugLevel_pi0 { pDEBUG = 0, pINFO = 1, pERROR = 2 } |
typedef std::map< DetId, EcalRecHit > | RecHitsMap |
Public Member Functions | |
float | Activation_fun (float SUM) |
void | calculateBarrelNNInputVariables (float et, double s1, double s9, double s25, double m2, double cee, double cep, double cpp, double s4, double s6, double ratio, double xcog, double ycog) |
bool | calculateNNInputVariables (std::vector< float > &vph1, std::vector< float > &vph2, float pS1_max, float pS9_max, float pS25_max, int EScorr) |
EndcapPiZeroDiscriminatorAlgo () | |
EndcapPiZeroDiscriminatorAlgo (double stripEnergyCut, int nStripCut, const std::string &path, DebugLevel_pi0 debugLevel) | |
void | findPi0Road (ESDetId strip, EcalPreshowerNavigator &theESNav, int plane, std::vector< ESDetId > &vout) |
std::vector< float > | findPreshVector (ESDetId strip, RecHitsMap *rechits_map, CaloSubdetectorTopology *topology_p) |
float * | get_input_vector () |
float | GetBarrelNNOutput (float EB_Et) |
float | getNNoutput (int sel_wfile) |
float | GetNNOutput (float EE_Et) |
bool | goodPi0Strip (RecHitsMap::iterator candidate_it, ESDetId lastID) |
void | readWeightFile (const char *WFile) |
~EndcapPiZeroDiscriminatorAlgo () | |
Private Attributes | |
int | barrelstart |
int | debugLevel_ |
int | EB_Hidden |
int | EB_Indim |
int | EB_Layers |
int | EB_Outdim |
int | EE_Hidden |
int | EE_Indim |
int | EE_Layers |
int | EE_Outdim |
float * | H_O_Weight |
std::vector< float > | H_O_Weight_all |
float * | H_Thresh |
std::vector< float > | H_Thresh_all |
int | Hidden |
float * | I_H_Weight |
std::vector< float > | I_H_Weight_all |
int | Indim |
int | inp_var |
float * | input_var |
int | Layers |
int | Nfiles_EB |
int | Nfiles_EE |
float * | O_Thresh |
std::vector< float > | O_Thresh_all |
int | Outdim |
std::string | pathToFiles_ |
int | preshSeededNstr_ |
double | preshStripEnergyCut_ |
RecHitsMap * | rechits_map |
Definition at line 16 of file EndcapPiZeroDiscriminatorAlgo.h.
typedef std::map<DetId, EcalRecHit> EndcapPiZeroDiscriminatorAlgo::RecHitsMap |
Definition at line 22 of file EndcapPiZeroDiscriminatorAlgo.h.
|
inline |
Definition at line 24 of file EndcapPiZeroDiscriminatorAlgo.h.
EndcapPiZeroDiscriminatorAlgo::EndcapPiZeroDiscriminatorAlgo | ( | double | stripEnergyCut, |
int | nStripCut, | ||
const std::string & | path, | ||
DebugLevel_pi0 | debugLevel | ||
) |
|
inline |
Definition at line 31 of file EndcapPiZeroDiscriminatorAlgo.h.
float EndcapPiZeroDiscriminatorAlgo::Activation_fun | ( | float | SUM | ) |
Definition at line 331 of file EndcapPiZeroDiscriminatorAlgo.cc.
References funct::exp().
Referenced by getNNoutput().
void EndcapPiZeroDiscriminatorAlgo::calculateBarrelNNInputVariables | ( | float | et, |
double | s1, | ||
double | s9, | ||
double | s25, | ||
double | m2, | ||
double | cee, | ||
double | cep, | ||
double | cpp, | ||
double | s4, | ||
double | s6, | ||
double | ratio, | ||
double | xcog, | ||
double | ycog | ||
) |
Definition at line 473 of file EndcapPiZeroDiscriminatorAlgo.cc.
References EB_Indim, input_var, lam, and mathSSE::sqrt().
bool EndcapPiZeroDiscriminatorAlgo::calculateNNInputVariables | ( | std::vector< float > & | vph1, |
std::vector< float > & | vph2, | ||
float | pS1_max, | ||
float | pS9_max, | ||
float | pS25_max, | ||
int | EScorr | ||
) |
Definition at line 345 of file EndcapPiZeroDiscriminatorAlgo.cc.
References gather_cfg::cout, debugLevel_, ExpressReco_HICollisions_FallBack::e, EE_Indim, i, input_var, gen::k, and pDEBUG.
void EndcapPiZeroDiscriminatorAlgo::findPi0Road | ( | ESDetId | strip, |
EcalPreshowerNavigator & | theESNav, | ||
int | plane, | ||
std::vector< ESDetId > & | vout | ||
) |
Definition at line 163 of file EndcapPiZeroDiscriminatorAlgo.cc.
References gather_cfg::cout, debugLevel_, CaloNavigator< T >::east(), CaloNavigator< T >::home(), CaloNavigator< T >::north(), pDEBUG, preshSeededNstr_, CaloNavigator< T >::setHome(), CaloNavigator< T >::south(), strip(), and CaloNavigator< T >::west().
Referenced by findPreshVector().
vector< float > EndcapPiZeroDiscriminatorAlgo::findPreshVector | ( | ESDetId | strip, |
RecHitsMap * | rechits_map, | ||
CaloSubdetectorTopology * | topology_p | ||
) |
Definition at line 63 of file EndcapPiZeroDiscriminatorAlgo.cc.
References gather_cfg::cout, debugLevel_, findPi0Road(), goodPi0Strip(), i, pDEBUG, ESDetId::plane(), CaloNavigator< T >::setHome(), and ESDetId::strip().
|
inline |
Definition at line 58 of file EndcapPiZeroDiscriminatorAlgo.h.
float EndcapPiZeroDiscriminatorAlgo::GetBarrelNNOutput | ( | float | EB_Et | ) |
Definition at line 586 of file EndcapPiZeroDiscriminatorAlgo.cc.
References barrelstart, gather_cfg::cout, debugLevel_, EB_Hidden, EB_Indim, EB_Layers, EB_Outdim, getNNoutput(), Indim, input_var, Layers, Outdim, and pDEBUG.
float EndcapPiZeroDiscriminatorAlgo::getNNoutput | ( | int | sel_wfile | ) |
Definition at line 291 of file EndcapPiZeroDiscriminatorAlgo.cc.
References Activation_fun(), barrelstart, gather_cfg::cout, debugLevel_, EE_Hidden, EE_Indim, EE_Outdim, h, H_O_Weight_all, H_Thresh_all, Hidden, i, I_H_Weight_all, Indim, input_var, gen::k, O_Thresh_all, Outdim, and pDEBUG.
Referenced by GetBarrelNNOutput(), and GetNNOutput().
float EndcapPiZeroDiscriminatorAlgo::GetNNOutput | ( | float | EE_Et | ) |
Definition at line 550 of file EndcapPiZeroDiscriminatorAlgo.cc.
References barrelstart, gather_cfg::cout, debugLevel_, EE_Hidden, EE_Indim, EE_Layers, EE_Outdim, getNNoutput(), Indim, input_var, Layers, Outdim, and pDEBUG.
bool EndcapPiZeroDiscriminatorAlgo::goodPi0Strip | ( | RecHitsMap::iterator | candidate_it, |
ESDetId | lastID | ||
) |
Definition at line 142 of file EndcapPiZeroDiscriminatorAlgo.cc.
References gather_cfg::cout, debugLevel_, pDEBUG, and preshStripEnergyCut_.
Referenced by findPreshVector().
void EndcapPiZeroDiscriminatorAlgo::readWeightFile | ( | const char * | WFile | ) |
Definition at line 227 of file EndcapPiZeroDiscriminatorAlgo.cc.
References gather_cfg::cout, debugLevel_, H_O_Weight, H_Thresh, Hidden, I_H_Weight, Indim, inp_var, j, Layers, geometryCSVtoXML::line, O_Thresh, Outdim, pDEBUG, and ExpressReco_HICollisions_FallBack::weights.
|
private |
Definition at line 67 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by GetBarrelNNOutput(), getNNoutput(), and GetNNOutput().
|
private |
Definition at line 64 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by calculateNNInputVariables(), findPi0Road(), findPreshVector(), GetBarrelNNOutput(), getNNoutput(), GetNNOutput(), goodPi0Strip(), and readWeightFile().
|
private |
Definition at line 74 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by GetBarrelNNOutput().
|
private |
Definition at line 74 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by calculateBarrelNNInputVariables(), and GetBarrelNNOutput().
|
private |
Definition at line 74 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by GetBarrelNNOutput().
|
private |
Definition at line 74 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by GetBarrelNNOutput().
|
private |
Definition at line 73 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by getNNoutput(), and GetNNOutput().
|
private |
Definition at line 73 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by calculateNNInputVariables(), getNNoutput(), and GetNNOutput().
|
private |
Definition at line 73 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by GetNNOutput().
|
private |
Definition at line 73 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by getNNoutput(), and GetNNOutput().
|
private |
Definition at line 77 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by readWeightFile().
|
private |
Definition at line 82 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by getNNoutput().
|
private |
Definition at line 78 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by readWeightFile().
|
private |
Definition at line 83 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by getNNoutput().
|
private |
Definition at line 72 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by getNNoutput(), and readWeightFile().
|
private |
Definition at line 76 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by readWeightFile().
|
private |
Definition at line 81 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by getNNoutput().
|
private |
Definition at line 72 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by GetBarrelNNOutput(), getNNoutput(), GetNNOutput(), and readWeightFile().
|
private |
Definition at line 66 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by readWeightFile().
|
private |
Definition at line 86 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by calculateBarrelNNInputVariables(), calculateNNInputVariables(), GetBarrelNNOutput(), getNNoutput(), and GetNNOutput().
|
private |
Definition at line 72 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by GetBarrelNNOutput(), GetNNOutput(), and readWeightFile().
|
private |
Definition at line 69 of file EndcapPiZeroDiscriminatorAlgo.h.
|
private |
Definition at line 70 of file EndcapPiZeroDiscriminatorAlgo.h.
|
private |
Definition at line 79 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by readWeightFile().
|
private |
Definition at line 84 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by getNNoutput().
|
private |
Definition at line 72 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by GetBarrelNNOutput(), getNNoutput(), GetNNOutput(), and readWeightFile().
|
private |
Definition at line 94 of file EndcapPiZeroDiscriminatorAlgo.h.
|
private |
Definition at line 63 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by findPi0Road().
|
private |
Definition at line 58 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by goodPi0Strip().
|
private |
Definition at line 91 of file EndcapPiZeroDiscriminatorAlgo.h.