Class to calculate MC resolutions for pat objects. More...
#include "PhysicsTools/PatUtils/interface/ObjectResolutionCalc.h"
Public Member Functions | |
int | etaBin (float eta) |
ObjectResolutionCalc () | |
ObjectResolutionCalc (const TString &resopath, bool useNN) | |
float | obsRes (int obs, int eta, float eT) |
template<typename T > | |
void | operator() (T &obj) |
~ObjectResolutionCalc () | |
Private Attributes | |
std::vector< float > | etaBinVals_ |
TF1 | fResVsEt_ [10][10] |
TMultiLayerPerceptron * | network_ [10] |
TFile * | resoFile_ |
bool | useNN_ |
Class to calculate MC resolutions for pat objects.
Definition at line 28 of file ObjectResolutionCalc.h.
pat::ObjectResolutionCalc::ObjectResolutionCalc | ( | ) |
ObjectResolutionCalc::ObjectResolutionCalc | ( | const TString & | resopath, |
bool | useNN = false |
||
) |
Definition at line 15 of file ObjectResolutionCalc.cc.
References b, etaBin(), etaBinVals_, Exception, fResVsEt_, submitPVResolutionJobs::key, relativeConstraints::keys, edm::errors::LogicError, mergeVDriftHistosByStation::name, network_, AlCaHLTBitMon_ParallelJobs::p, resoFile_, createJobs::tmp, and useNN_.
ObjectResolutionCalc::~ObjectResolutionCalc | ( | ) |
int ObjectResolutionCalc::etaBin | ( | float | eta | ) |
Definition at line 76 of file ObjectResolutionCalc.cc.
References newFWLiteAna::bin, PVValHelper::eta, etaBinVals_, and mps_fire::i.
Referenced by ObjectResolutionCalc().
float ObjectResolutionCalc::obsRes | ( | int | obs, |
int | eta, | ||
float | eT | ||
) |
Definition at line 68 of file ObjectResolutionCalc.cc.
References PVValHelper::eta, Exception, fResVsEt_, edm::errors::LogicError, and useNN_.
|
inline |
Definition at line 46 of file ObjectResolutionCalc.h.
|
private |
Definition at line 51 of file ObjectResolutionCalc.h.
Referenced by etaBin(), and ObjectResolutionCalc().
|
private |
Definition at line 52 of file ObjectResolutionCalc.h.
Referenced by ObjectResolutionCalc(), and obsRes().
|
private |
Definition at line 53 of file ObjectResolutionCalc.h.
Referenced by ObjectResolutionCalc().
|
private |
Definition at line 50 of file ObjectResolutionCalc.h.
Referenced by ObjectResolutionCalc(), and ~ObjectResolutionCalc().
|
private |
Definition at line 54 of file ObjectResolutionCalc.h.
Referenced by ObjectResolutionCalc(), and obsRes().