CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
pat::ObjectResolutionCalc Class Reference

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_
 

Detailed Description

Class to calculate MC resolutions for pat objects.

Author
Jan Heyninck, Petra Van Mulders, Christophe Delaere
Version
Id:
ObjectResolutionCalc.h,v 1.5 2008/10/08 19:19:25 gpetrucc Exp

Definition at line 38 of file ObjectResolutionCalc.h.

Constructor & Destructor Documentation

pat::ObjectResolutionCalc::ObjectResolutionCalc ( )
ObjectResolutionCalc::ObjectResolutionCalc ( const TString &  resopath,
bool  useNN = false 
)

Definition at line 11 of file ObjectResolutionCalc.cc.

ObjectResolutionCalc::~ObjectResolutionCalc ( )

Definition at line 57 of file ObjectResolutionCalc.cc.

Member Function Documentation

int ObjectResolutionCalc::etaBin ( float  eta)

Definition at line 70 of file ObjectResolutionCalc.cc.

float ObjectResolutionCalc::obsRes ( int  obs,
int  eta,
float  eT 
)

Definition at line 62 of file ObjectResolutionCalc.cc.

template<typename T >
void pat::ObjectResolutionCalc::operator() ( T obj)
inline

Definition at line 57 of file ObjectResolutionCalc.h.

57 { }

Member Data Documentation

std::vector<float> pat::ObjectResolutionCalc::etaBinVals_
private

Definition at line 63 of file ObjectResolutionCalc.h.

TF1 pat::ObjectResolutionCalc::fResVsEt_[10][10]
private

Definition at line 64 of file ObjectResolutionCalc.h.

TMultiLayerPerceptron* pat::ObjectResolutionCalc::network_[10]
private

Definition at line 65 of file ObjectResolutionCalc.h.

TFile* pat::ObjectResolutionCalc::resoFile_
private

Definition at line 62 of file ObjectResolutionCalc.h.

bool pat::ObjectResolutionCalc::useNN_
private

Definition at line 66 of file ObjectResolutionCalc.h.