#include <EndcapPiZeroDiscriminatorAlgo.h>
Public Types | |
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) | |
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 20 of file EndcapPiZeroDiscriminatorAlgo.h.
|
inline |
Definition at line 22 of file EndcapPiZeroDiscriminatorAlgo.h.
EndcapPiZeroDiscriminatorAlgo::EndcapPiZeroDiscriminatorAlgo | ( | double | stripEnergyCut, |
int | nStripCut, | ||
const std::string & | path | ||
) |
|
inline |
Definition at line 29 of file EndcapPiZeroDiscriminatorAlgo.h.
float EndcapPiZeroDiscriminatorAlgo::Activation_fun | ( | float | SUM | ) |
Definition at line 344 of file EndcapPiZeroDiscriminatorAlgo.cc.
References create_public_lumi_plots::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 484 of file EndcapPiZeroDiscriminatorAlgo.cc.
References EB_Indim, input_var, 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 358 of file EndcapPiZeroDiscriminatorAlgo.cc.
References alignCSCRings::e, EE_Indim, input_var, relval_2017::k, GetRecoTauVFromDQM_MC_cff::kk, and LogTrace.
void EndcapPiZeroDiscriminatorAlgo::findPi0Road | ( | ESDetId | strip, |
EcalPreshowerNavigator & | theESNav, | ||
int | plane, | ||
std::vector< ESDetId > & | vout | ||
) |
Definition at line 163 of file EndcapPiZeroDiscriminatorAlgo.cc.
References CaloNavigator< T, TOPO >::east(), CaloNavigator< T, TOPO >::home(), LogTrace, GetRecoTauVFromDQM_MC_cff::next, CaloNavigator< T, TOPO >::north(), preshSeededNstr_, CaloNavigator< T, TOPO >::setHome(), CaloNavigator< T, TOPO >::south(), and CaloNavigator< T, TOPO >::west().
Referenced by findPreshVector().
vector< float > EndcapPiZeroDiscriminatorAlgo::findPreshVector | ( | ESDetId | strip, |
RecHitsMap * | rechits_map, | ||
CaloSubdetectorTopology * | topology_p | ||
) |
Definition at line 62 of file EndcapPiZeroDiscriminatorAlgo.cc.
References findPi0Road(), goodPi0Strip(), i, LogTrace, HLT_FULL_cff::navigator, ESDetId::plane(), CaloNavigator< T, TOPO >::setHome(), and ESDetId::strip().
|
inline |
Definition at line 56 of file EndcapPiZeroDiscriminatorAlgo.h.
float EndcapPiZeroDiscriminatorAlgo::GetBarrelNNOutput | ( | float | EB_Et | ) |
Definition at line 601 of file EndcapPiZeroDiscriminatorAlgo.cc.
References barrelstart, EB_Hidden, EB_Indim, EB_Layers, EB_Outdim, getNNoutput(), Indim, input_var, Layers, LogTrace, and Outdim.
float EndcapPiZeroDiscriminatorAlgo::getNNoutput | ( | int | sel_wfile | ) |
Definition at line 304 of file EndcapPiZeroDiscriminatorAlgo.cc.
References Activation_fun(), barrelstart, EE_Hidden, EE_Indim, EE_Outdim, h, H_O_Weight_all, H_Thresh_all, Hidden, i, I_H_Weight_all, Indim, input_var, relval_2017::k, LogTrace, O_Thresh_all, and Outdim.
Referenced by GetBarrelNNOutput(), and GetNNOutput().
float EndcapPiZeroDiscriminatorAlgo::GetNNOutput | ( | float | EE_Et | ) |
Definition at line 561 of file EndcapPiZeroDiscriminatorAlgo.cc.
References barrelstart, EE_Hidden, EE_Indim, EE_Layers, EE_Outdim, getNNoutput(), Indim, input_var, Layers, LogTrace, and Outdim.
bool EndcapPiZeroDiscriminatorAlgo::goodPi0Strip | ( | RecHitsMap::iterator | candidate_it, |
ESDetId | lastID | ||
) |
Definition at line 142 of file EndcapPiZeroDiscriminatorAlgo.cc.
References LogTrace, and preshStripEnergyCut_.
Referenced by findPreshVector().
void EndcapPiZeroDiscriminatorAlgo::readWeightFile | ( | const char * | WFile | ) |
Definition at line 238 of file EndcapPiZeroDiscriminatorAlgo.cc.
References assert(), H_O_Weight, H_Thresh, Hidden, I_H_Weight, Indim, inp_var, j, Layers, geometryCSVtoXML::line, LogTrace, O_Thresh, Outdim, and create_public_pileup_plots::weights.
|
private |
Definition at line 65 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by GetBarrelNNOutput(), getNNoutput(), and GetNNOutput().
|
private |
Definition at line 62 of file EndcapPiZeroDiscriminatorAlgo.h.
|
private |
Definition at line 72 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by GetBarrelNNOutput().
|
private |
Definition at line 72 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by calculateBarrelNNInputVariables(), and GetBarrelNNOutput().
|
private |
Definition at line 72 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by GetBarrelNNOutput().
|
private |
Definition at line 72 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by GetBarrelNNOutput().
|
private |
Definition at line 71 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by getNNoutput(), and GetNNOutput().
|
private |
Definition at line 71 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by calculateNNInputVariables(), getNNoutput(), and GetNNOutput().
|
private |
Definition at line 71 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by GetNNOutput().
|
private |
Definition at line 71 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by getNNoutput(), and GetNNOutput().
|
private |
Definition at line 75 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by readWeightFile().
|
private |
Definition at line 80 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by getNNoutput().
|
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 70 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by getNNoutput(), and readWeightFile().
|
private |
Definition at line 74 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by readWeightFile().
|
private |
Definition at line 79 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by getNNoutput().
|
private |
Definition at line 70 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by GetBarrelNNOutput(), getNNoutput(), GetNNOutput(), and readWeightFile().
|
private |
Definition at line 64 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by readWeightFile().
|
private |
Definition at line 84 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by calculateBarrelNNInputVariables(), calculateNNInputVariables(), GetBarrelNNOutput(), getNNoutput(), and GetNNOutput().
|
private |
Definition at line 70 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by GetBarrelNNOutput(), GetNNOutput(), and readWeightFile().
|
private |
Definition at line 67 of file EndcapPiZeroDiscriminatorAlgo.h.
|
private |
Definition at line 68 of file EndcapPiZeroDiscriminatorAlgo.h.
|
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 70 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by GetBarrelNNOutput(), getNNoutput(), GetNNOutput(), and readWeightFile().
|
private |
Definition at line 92 of file EndcapPiZeroDiscriminatorAlgo.h.
|
private |
Definition at line 61 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by findPi0Road().
|
private |
Definition at line 56 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by goodPi0Strip().
|
private |
Definition at line 89 of file EndcapPiZeroDiscriminatorAlgo.h.