|
|
Go to the documentation of this file. 1 #ifndef ALIGNMENT_OFFLINEVALIDATION_PVVALIDATIONHELPER_H
2 #define ALIGNMENT_OFFLINEVALIDATION_PVVALIDATIONHELPER_H
11 #ifndef PLOTTING_MACRO
13 #define COUT edm::LogWarning("PVValidationHelpers")
16 #define COUT std::cout << "PVValidationHelpers: "
28 template <
typename T,
size_t N>
30 const T minLog10 = std::log10(
min);
31 const T maxLog10 = std::log10(
max);
32 const T width = (maxLog10 - minLog10) /
N;
33 std::array<T, N + 1>
ret;
36 for (
size_t i = 1;
i <=
N; ++
i) {
79 std::map<std::pair<residualType, plotVariable>, std::pair<float, float>>
range;
80 std::map<plotVariable, std::vector<float>>
trendbins;
91 COUT <<
"Trying to get range for non-existent combination " << std::endl;
92 return std::make_pair(0., 0.);
100 COUT <<
"Trying to get low end of range for non-existent combination " << std::endl;
109 COUT <<
"Trying get high end of range for non-existent combination " << std::endl;
115 typedef std::tuple<std::string, std::string, std::string>
plotLabels;
119 void add(std::map<std::string, TH1*>&
h, TH1*
hist);
123 void fill(std::map<std::string, TH1*>&
h,
const std::string&
s,
double x,
double y);
ret
prodAgent to be discontinued
plotLabels getVarString(plotVariable var)
const double max_eta_phase1
void fill(std::map< std::string, TH1 * > &h, const std::string &s, double x)
plotLabels getTypeString(residualType type)
void fillByIndex(std::vector< TH1F * > &h, unsigned int index, double x, std::string tag="")
std::map< plotVariable, std::vector< float > > trendbins
const double max_eta_phase0
std::array< T, N+1 > makeLogBins(const T &min, const T &max)
float getHigh(residualType type, plotVariable plot)
Measurement1D getMedian(TH1F *histo)
void add(std::map< std::string, TH1 * > &h, TH1 *hist)
float getLow(residualType type, plotVariable plot)
std::vector< float > generateBins(int n, float start, float range)
Measurement1D getMAD(TH1F *histo)
std::pair< float, float > getRange(residualType type, plotVariable plot)
Power< A, B >::type pow(const A &a, const B &b)
void setMap(residualType type, plotVariable plot, float low, float high)
std::map< std::pair< residualType, plotVariable >, std::pair< float, float > > range
std::tuple< std::string, std::string, std::string > plotLabels
void shrinkHistVectorToFit(std::vector< TH1F * > &h, unsigned int desired_size)
std::pair< Measurement1D, Measurement1D > fitResiduals(TH1 *hist)