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 runTheMatrix::err, 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 |
create a map from a 2d histogram
Definition at line 35 of file PFResolutionMap.h.
References MillePedeFileConverter_cfg::e, PVValHelper::eta, FindBin(), getRes(), phi, ReadMapFile(), WriteMapFile(), and z.
|
private |
Definition at line 216 of file PFResolutionMap.cc.
References fftjetpileupestimator_calo_uncalib_cfi::c0, constexpr, mps_fire::i, visualization-live-secondInstance_cfg::m, M_PI, minimum(), and pi.
Referenced by GetMapFile(), and IsInAPhiCrack().
|
override |
extrapolation requires overloading of this function
Definition at line 168 of file PFResolutionMap.cc.
Referenced by getRes(), and PFResolutionMap().
|
inline |
Definition at line 49 of file PFResolutionMap.h.
References a, b, dCrackPhi(), IsInAPhiCrack(), mapFile_, minimum(), operator<<, MillePedeFileConverter_cfg::out, and submit::rm.
double PFResolutionMap::getRes | ( | double | eta, |
double | phi, | ||
double | e, | ||
int | MapEta = -1 |
||
) |
Definition at line 138 of file PFResolutionMap.cc.
References Abs(), newFWLiteAna::bin, constexpr, FindBin(), and IsInAPhiCrack().
Referenced by PFResolutionMap().
|
private |
Definition at line 198 of file PFResolutionMap.cc.
References Abs(), and dCrackPhi().
Referenced by GetMapFile(), and getRes().
|
private |
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_.
Referenced by PFResolutionMap().
|
friend |
print this map
Referenced by GetMapFile().
|
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().