Resolution Map (resolution as a function of eta and E) More...
#include <PFResolutionMap.h>
Public Member Functions | |
int | FindBin (double eta, double e, double z=0) override |
extrapolation requires overloading of this function More... | |
const char * | GetMapFile () const |
double | getRes (double eta, double phi, double e, int MapEta=-1) |
PFResolutionMap () | |
default constructor More... | |
PFResolutionMap (const char *name, const char *mapfile) | |
create a map from text file mapfile More... | |
PFResolutionMap (const char *name, unsigned nbinseta, double mineta, double maxeta, unsigned nbinse, double mine, double maxe, double value=-1) | |
create an empty map and initialize it More... | |
PFResolutionMap (const TH2D &h) | |
create a map from a 2d histogram More... | |
bool | ReadMapFile (const char *mapfile) |
read text file More... | |
bool | WriteMapFile (const char *mapfile) |
Private Member Functions | |
double | dCrackPhi (double phi, double eta) |
bool | IsInAPhiCrack (double phi, double eta) |
double | minimum (double a, double b) |
Private Attributes | |
std::string | mapFile_ |
Static Private Attributes | |
static const unsigned | lineSize_ = 10000 |
Friends | |
std::ostream & | operator<< (std::ostream &out, const PFResolutionMap &rm) |
print this map More... | |
Resolution Map (resolution as a function of eta and E)
Basically just a TH2D with text I/O
Definition at line 16 of file PFResolutionMap.h.
|
inline |
PFResolutionMap::PFResolutionMap | ( | const char * | name, |
const char * | mapfile | ||
) |
create a map from text file mapfile
Definition at line 38 of file PFResolutionMap.cc.
References submitPVResolutionJobs::err, Skims_PA_cff::name, and ReadMapFile().
PFResolutionMap::PFResolutionMap | ( | const char * | name, |
unsigned | nbinseta, | ||
double | mineta, | ||
double | maxeta, | ||
unsigned | nbinse, | ||
double | mine, | ||
double | maxe, | ||
double | value = -1 |
||
) |
create an empty map and initialize it
Definition at line 15 of file PFResolutionMap.cc.
References LEDCalibrationChannels::ieta.
|
inline |
|
private |
Definition at line 216 of file PFResolutionMap.cc.
References fftjetpileupestimator_calo_uncalib_cfi::c0, PVValHelper::eta, mps_fire::i, visualization-live-secondInstance_cfg::m, M_PI, minimum(), phi, and pi.
Referenced by IsInAPhiCrack().
|
override |
extrapolation requires overloading of this function
Definition at line 168 of file PFResolutionMap.cc.
References MillePedeFileConverter_cfg::e, and PVValHelper::eta.
Referenced by getRes().
|
inline |
double PFResolutionMap::getRes | ( | double | eta, |
double | phi, | ||
double | e, | ||
int | MapEta = -1 |
||
) |
Definition at line 138 of file PFResolutionMap.cc.
References Abs(), newFWLiteAna::bin, MillePedeFileConverter_cfg::e, PVValHelper::eta, FindBin(), IsInAPhiCrack(), and phi.
|
private |
Definition at line 198 of file PFResolutionMap.cc.
References Abs(), dCrackPhi(), PVValHelper::eta, and phi.
Referenced by getRes().
|
private |
Definition at line 205 of file PFResolutionMap.cc.
Referenced by dCrackPhi().
bool PFResolutionMap::ReadMapFile | ( | const char * | mapfile | ) |
read text file
Definition at line 70 of file PFResolutionMap.cc.
References relativeConstraints::empty, mps_fire::i, dqmiodatasetharvest::inf, dqmiolumiharvest::j, lineSize_, mapFile_, and alignCSCRings::s.
Referenced by PFResolutionMap().
bool PFResolutionMap::WriteMapFile | ( | const char * | mapfile | ) |
write text file is not const because mapFile_ will be updated
Definition at line 49 of file PFResolutionMap.cc.
References mapFile_.
|
friend |
print this map
|
staticprivate |
Definition at line 58 of file PFResolutionMap.h.
Referenced by ReadMapFile().
|
private |
Definition at line 59 of file PFResolutionMap.h.
Referenced by GetMapFile(), ReadMapFile(), and WriteMapFile().