#include <EndcapPiZeroDiscriminatorAlgo.h>
Public Types | |
typedef std::map< DetId, EcalRecHit > | RecHitsMap |
Public Member Functions | |
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) |
std::vector< float > const & | get_input_vector () const |
float | GetBarrelNNOutput (float EB_Et) |
float | GetNNOutput (float EE_Et) |
bool | goodPi0Strip (RecHitsMap::iterator candidate_it, ESDetId lastID) |
Private Member Functions | |
float | Activation_fun (float SUM) const |
float | getNNoutput (int sel_wfile, int Layers, int Indim, int Hidden, int Outdim, int barrelstart) const |
void | readWeightFile (const char *WFile, int &Layers, int &Indim, int &Hidden, int &Outdim) |
Private Attributes | |
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 |
std::vector< float > | H_O_Weight_all |
std::vector< float > | H_Thresh_all |
std::vector< float > | I_H_Weight_all |
std::vector< float > | input_var |
std::vector< float > | O_Thresh_all |
int | preshSeededNstr_ |
double | preshStripEnergyCut_ |
Definition at line 15 of file EndcapPiZeroDiscriminatorAlgo.h.
typedef std::map<DetId, EcalRecHit> EndcapPiZeroDiscriminatorAlgo::RecHitsMap |
Definition at line 17 of file EndcapPiZeroDiscriminatorAlgo.h.
|
inline |
Definition at line 19 of file EndcapPiZeroDiscriminatorAlgo.h.
EndcapPiZeroDiscriminatorAlgo::EndcapPiZeroDiscriminatorAlgo | ( | double | stripEnergyCut, |
int | nStripCut, | ||
const std::string & | path | ||
) |
|
private |
Definition at line 328 of file EndcapPiZeroDiscriminatorAlgo.cc.
References JetChargeProducer_cfi::exp, and SUM.
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 467 of file EndcapPiZeroDiscriminatorAlgo.cc.
References EB_Indim, input_var, callgraph::m2, photons_cff::s4, 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 340 of file EndcapPiZeroDiscriminatorAlgo.cc.
References MillePedeFileConverter_cfg::e, EE_Indim, mps_fire::i, input_var, dqmdumpme::k, GetRecoTauVFromDQM_MC_cff::kk, and LogTrace.
void EndcapPiZeroDiscriminatorAlgo::findPi0Road | ( | ESDetId | strip, |
EcalPreshowerNavigator & | theESNav, | ||
int | plane, | ||
std::vector< ESDetId > & | vout | ||
) |
Definition at line 141 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(), nano_mu_digi_cff::strip, and CaloNavigator< T, TOPO >::west().
Referenced by findPreshVector().
vector< float > EndcapPiZeroDiscriminatorAlgo::findPreshVector | ( | ESDetId | strip, |
RecHitsMap * | rechits_map, | ||
CaloSubdetectorTopology * | topology_p | ||
) |
Definition at line 40 of file EndcapPiZeroDiscriminatorAlgo.cc.
References findPi0Road(), goodPi0Strip(), mps_fire::i, LogTrace, HLT_2024v14_cff::navigator, and nano_mu_digi_cff::strip.
|
inline |
Definition at line 50 of file EndcapPiZeroDiscriminatorAlgo.h.
References input_var.
float EndcapPiZeroDiscriminatorAlgo::GetBarrelNNOutput | ( | float | EB_Et | ) |
Definition at line 592 of file EndcapPiZeroDiscriminatorAlgo.cc.
References EB_Hidden, EB_Indim, EB_Layers, EB_Outdim, getNNoutput(), input_var, LogTrace, and findQualityFiles::v.
float EndcapPiZeroDiscriminatorAlgo::GetNNOutput | ( | float | EE_Et | ) |
Definition at line 549 of file EndcapPiZeroDiscriminatorAlgo.cc.
References EE_Hidden, EE_Indim, EE_Layers, EE_Outdim, getNNoutput(), input_var, LogTrace, and findQualityFiles::v.
|
private |
Definition at line 297 of file EndcapPiZeroDiscriminatorAlgo.cc.
References Activation_fun(), EE_Hidden, EE_Indim, EE_Outdim, h, H_O_Weight_all, H_Thresh_all, mps_fire::i, I_H_Weight_all, input_var, LogTrace, CastorDigiReco::o1, O_Thresh_all, and CfgNavigationSchool_cfi::OUT.
Referenced by GetBarrelNNOutput(), and GetNNOutput().
bool EndcapPiZeroDiscriminatorAlgo::goodPi0Strip | ( | RecHitsMap::iterator | candidate_it, |
ESDetId | lastID | ||
) |
Definition at line 121 of file EndcapPiZeroDiscriminatorAlgo.cc.
References LogTrace, and preshStripEnergyCut_.
Referenced by findPreshVector().
|
private |
Definition at line 228 of file EndcapPiZeroDiscriminatorAlgo.cc.
References cms::cuda::assert(), Exception, H_O_Weight_all, H_Thresh_all, mps_fire::i, I_H_Weight_all, dqmiolumiharvest::j, mps_splice::line, LogTrace, O_Thresh_all, and hltDeepSecondaryVertexTagInfosPFPuppi_cfi::weights.
|
private |
Definition at line 59 of file EndcapPiZeroDiscriminatorAlgo.h.
|
private |
Definition at line 62 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by GetBarrelNNOutput().
|
private |
Definition at line 62 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by calculateBarrelNNInputVariables(), and GetBarrelNNOutput().
|
private |
Definition at line 62 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by GetBarrelNNOutput().
|
private |
Definition at line 62 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by GetBarrelNNOutput().
|
private |
Definition at line 61 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by GetNNOutput(), and getNNoutput().
|
private |
Definition at line 61 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by calculateNNInputVariables(), GetNNOutput(), and getNNoutput().
|
private |
Definition at line 61 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by GetNNOutput().
|
private |
Definition at line 61 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by GetNNOutput(), and getNNoutput().
|
private |
Definition at line 65 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by getNNoutput(), and readWeightFile().
|
private |
Definition at line 66 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by getNNoutput(), and readWeightFile().
|
private |
Definition at line 64 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by getNNoutput(), and readWeightFile().
|
private |
Definition at line 69 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by calculateBarrelNNInputVariables(), calculateNNInputVariables(), get_input_vector(), GetBarrelNNOutput(), GetNNOutput(), and getNNoutput().
|
private |
Definition at line 67 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by getNNoutput(), and readWeightFile().
|
private |
Definition at line 58 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by findPi0Road().
|
private |
Definition at line 57 of file EndcapPiZeroDiscriminatorAlgo.h.
Referenced by goodPi0Strip().