Class to calculate MC resolutions for pat objects. More...
#include "PhysicsTools/PatUtils/interface/ObjectResolutionCalc.h"
Public Member Functions | |
int | etaBin (float eta) |
ObjectResolutionCalc () | |
ObjectResolutionCalc (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 40 of file ObjectResolutionCalc.h.
pat::ObjectResolutionCalc::ObjectResolutionCalc | ( | ) |
ObjectResolutionCalc::ObjectResolutionCalc | ( | TString | resopath, |
bool | useNN = false |
||
) |
Definition at line 12 of file ObjectResolutionCalc.cc.
References b, etaBin(), etaBinVals_, fResVsEt_, combine::key, relativeConstraints::keys, mergeVDriftHistosByStation::name, network_, NULL, AlCaHLTBitMon_ParallelJobs::p, resoFile_, tmp, and useNN_.
ObjectResolutionCalc::~ObjectResolutionCalc | ( | ) |
int ObjectResolutionCalc::etaBin | ( | float | eta | ) |
Definition at line 71 of file ObjectResolutionCalc.cc.
References newFWLiteAna::bin, etaBinVals_, and i.
Referenced by ObjectResolutionCalc().
float ObjectResolutionCalc::obsRes | ( | int | obs, |
int | eta, | ||
float | eT | ||
) |
Definition at line 63 of file ObjectResolutionCalc.cc.
References eta(), edm::hlt::Exception, fResVsEt_, edm::errors::LogicError, and useNN_.
|
inline |
Definition at line 59 of file ObjectResolutionCalc.h.
|
private |
Definition at line 65 of file ObjectResolutionCalc.h.
Referenced by etaBin(), and ObjectResolutionCalc().
|
private |
Definition at line 66 of file ObjectResolutionCalc.h.
Referenced by ObjectResolutionCalc(), and obsRes().
|
private |
Definition at line 67 of file ObjectResolutionCalc.h.
Referenced by ObjectResolutionCalc().
|
private |
Definition at line 64 of file ObjectResolutionCalc.h.
Referenced by ObjectResolutionCalc(), and ~ObjectResolutionCalc().
|
private |
Definition at line 68 of file ObjectResolutionCalc.h.
Referenced by ObjectResolutionCalc(), and obsRes().