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 |
||
) |
|
inline |
create a map from a 2d histogram
Definition at line 34 of file PFResolutionMap.h.
|
private |
Definition at line 307 of file PFResolutionMap.cc.
References gather_cfg::cout, i, m, M_PI, minimum(), and pi.
Referenced by 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 GoodSeedProducer::produce().
|
inline |
double PFResolutionMap::getRes | ( | double | eta, |
double | phi, | ||
double | e, | ||
int | MapEta = -1 |
||
) |
Definition at line 231 of file PFResolutionMap.cc.
References Abs(), newFWLiteAna::bin, FindBin(), and IsInAPhiCrack().
|
private |
Definition at line 289 of file PFResolutionMap.cc.
References Abs(), and dCrackPhi().
Referenced by getRes().
|
private |
bool PFResolutionMap::ReadMapFile | ( | const char * | mapfile | ) |
read text file
Definition at line 110 of file PFResolutionMap.cc.
References relativeConstraints::empty, i, EcalCondDB::inf, 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 84 of file PFResolutionMap.cc.
References dtNoiseDBValidation_cfg::cerr, gather_cfg::cout, and 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().