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 35 of file ObjectResolutionCalc.h.
pat::ObjectResolutionCalc::ObjectResolutionCalc | ( | ) |
ObjectResolutionCalc::ObjectResolutionCalc | ( | const TString & | resopath, |
bool | useNN = false |
||
) |
Definition at line 9 of file ObjectResolutionCalc.cc.
References b, etaBin(), etaBinVals_, fResVsEt_, crabWrapper::key, relativeConstraints::keys, Skims_PA_cff::name, network_, AlCaHLTBitMon_ParallelJobs::p, resoFile_, createJobs::tmp, and useNN_.
ObjectResolutionCalc::~ObjectResolutionCalc | ( | ) |
int ObjectResolutionCalc::etaBin | ( | float | eta | ) |
Definition at line 69 of file ObjectResolutionCalc.cc.
References newFWLiteAna::bin, reco::LeafCandidate::et(), reco::LeafCandidate::eta(), etaBinVals_, mps_fire::i, network_, getGTfromDQMFile::obj, obsRes(), operator()(), useNN_, and findQualityFiles::v.
Referenced by ObjectResolutionCalc().
float ObjectResolutionCalc::obsRes | ( | int | obs, |
int | eta, | ||
float | eT | ||
) |
Definition at line 61 of file ObjectResolutionCalc.cc.
References PVValHelper::eta, Exception, fResVsEt_, edm::errors::LogicError, and useNN_.
Referenced by etaBin().
|
inline |
|
private |
Definition at line 58 of file ObjectResolutionCalc.h.
Referenced by etaBin(), and ObjectResolutionCalc().
|
private |
Definition at line 59 of file ObjectResolutionCalc.h.
Referenced by ObjectResolutionCalc(), and obsRes().
|
private |
Definition at line 60 of file ObjectResolutionCalc.h.
Referenced by etaBin(), and ObjectResolutionCalc().
|
private |
Definition at line 57 of file ObjectResolutionCalc.h.
Referenced by ObjectResolutionCalc(), and ~ObjectResolutionCalc().
|
private |
Definition at line 61 of file ObjectResolutionCalc.h.
Referenced by etaBin(), ObjectResolutionCalc(), and obsRes().