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 38 of file ObjectResolutionCalc.h.
pat::ObjectResolutionCalc::ObjectResolutionCalc | ( | ) |
ObjectResolutionCalc::ObjectResolutionCalc | ( | const TString & | resopath, |
bool | useNN = false |
||
) |
Definition at line 11 of file ObjectResolutionCalc.cc.
References b, etaBin(), etaBinVals_, fResVsEt_, crabWrapper::key, relativeConstraints::keys, dataset::name, network_, AlCaHLTBitMon_ParallelJobs::p, resoFile_, tmp, and useNN_.
ObjectResolutionCalc::~ObjectResolutionCalc | ( | ) |
int ObjectResolutionCalc::etaBin | ( | float | eta | ) |
Definition at line 70 of file ObjectResolutionCalc.cc.
References stringResolutionProvider_cfi::bin, reco::LeafCandidate::et(), reco::LeafCandidate::eta(), etaBinVals_, mps_fire::i, network_, haddnano::obj, obsRes(), operator()(), useNN_, and findQualityFiles::v.
Referenced by ObjectResolutionCalc().
float ObjectResolutionCalc::obsRes | ( | int | obs, |
int | eta, | ||
float | eT | ||
) |
Definition at line 62 of file ObjectResolutionCalc.cc.
References PVValHelper::eta, Exception, fResVsEt_, edm::errors::LogicError, and useNN_.
Referenced by etaBin().
|
inline |
|
private |
Definition at line 63 of file ObjectResolutionCalc.h.
Referenced by etaBin(), and ObjectResolutionCalc().
|
private |
Definition at line 64 of file ObjectResolutionCalc.h.
Referenced by ObjectResolutionCalc(), and obsRes().
|
private |
Definition at line 65 of file ObjectResolutionCalc.h.
Referenced by etaBin(), and ObjectResolutionCalc().
|
private |
Definition at line 62 of file ObjectResolutionCalc.h.
Referenced by ObjectResolutionCalc(), and ~ObjectResolutionCalc().
|
private |
Definition at line 66 of file ObjectResolutionCalc.h.
Referenced by etaBin(), ObjectResolutionCalc(), and obsRes().