Resolution Map (resolution as a function of eta and E) More...
#include <PFResolutionMap.h>
Public Member Functions | |
int | FindBin (double eta, double e) |
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 18 of file PFResolutionMap.h.
|
inline |
PFResolutionMap::PFResolutionMap | ( | const char * | name, |
const char * | mapfile | ||
) |
create a map from text file mapfile
Definition at line 72 of file PFResolutionMap.cc.
References 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 16 of file PFResolutionMap.cc.
|
inline |
create a map from a 2d histogram
Definition at line 34 of file PFResolutionMap.h.
References MillePedeFileConverter_cfg::e, PVValHelper::eta, FindBin(), getRes(), phi, ReadMapFile(), and WriteMapFile().
|
private |
Definition at line 307 of file PFResolutionMap.cc.
References gather_cfg::cout, mps_fire::i, funct::m, M_PI, minimum(), and pi.
Referenced by GetMapFile(), and IsInAPhiCrack().
int PFResolutionMap::FindBin | ( | double | eta, |
double | e | ||
) |
extrapolation requires overloading of this function
Definition at line 257 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 231 of file PFResolutionMap.cc.
References Abs(), stringResolutionProvider_cfi::bin, FindBin(), and IsInAPhiCrack().
Referenced by PFResolutionMap().
|
private |
Definition at line 289 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 110 of file PFResolutionMap.cc.
References relativeConstraints::empty, mps_fire::i, spu::inf(), 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 84 of file PFResolutionMap.cc.
References MessageLogger_cfi::cerr, gather_cfg::cout, and 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().