CMS 3D CMS Logo

Classes | Namespaces | Macros | Typedefs | Enumerations | Functions | Variables
PVValidationHelpers.h File Reference
#include <string>
#include <vector>
#include <map>
#include <cassert>
#include <utility>
#include "TH1.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "DataFormats/GeometryCommonDetAlgo/interface/Measurement1D.h"

Go to the source code of this file.

Classes

struct  PVValHelper::histodetails
 

Namespaces

 PVValHelper
 

Macros

#define COUT   edm::LogWarning("PVValidationHelpers")
 

Typedefs

typedef std::tuple< std::string, std::string, std::string > PVValHelper::plotLabels
 

Enumerations

enum  PVValHelper::detectorPhase { PVValHelper::phase0 = 0, PVValHelper::phase1 = 1, PVValHelper::phase2 = 2, PVValHelper::END_OF_PHASES = 3 }
 
enum  PVValHelper::estimator {
  PVValHelper::MEAN = 1, PVValHelper::WIDTH = 2, PVValHelper::MEDIAN = 3, PVValHelper::MAD = 4,
  PVValHelper::UNKWN = -1
}
 
enum  PVValHelper::plotVariable {
  PVValHelper::phi = 1, PVValHelper::eta = 2, PVValHelper::pT = 3, PVValHelper::pTCentral = 4,
  PVValHelper::ladder = 5, PVValHelper::modZ = 6, PVValHelper::END_OF_PLOTS = 7
}
 
enum  PVValHelper::residualType {
  PVValHelper::dxy = 1, PVValHelper::dx = 2, PVValHelper::dy = 3, PVValHelper::dz = 4,
  PVValHelper::IP2D = 5, PVValHelper::resz = 6, PVValHelper::IP3D = 7, PVValHelper::d3D = 8,
  PVValHelper::norm_dxy = 9, PVValHelper::norm_dx = 10, PVValHelper::norm_dy = 11, PVValHelper::norm_dz = 12,
  PVValHelper::norm_IP2D = 13, PVValHelper::norm_resz = 14, PVValHelper::norm_IP3D = 15, PVValHelper::norm_d3D = 16,
  PVValHelper::END_OF_TYPES = 17
}
 

Functions

void PVValHelper::add (std::map< std::string, TH1 *> &h, TH1 *hist)
 
void PVValHelper::fill (std::map< std::string, TH1 *> &h, const std::string &s, double x)
 
void PVValHelper::fill (std::map< std::string, TH1 *> &h, const std::string &s, double x, double y)
 
void PVValHelper::fillByIndex (std::vector< TH1F *> &h, unsigned int index, double x, std::string tag="")
 
std::pair< Measurement1D, Measurement1DPVValHelper::fitResiduals (TH1 *hist)
 
std::vector< float > PVValHelper::generateBins (int n, float start, float range)
 
Measurement1D PVValHelper::getMAD (TH1F *histo)
 
Measurement1D PVValHelper::getMedian (TH1F *histo)
 
plotLabels PVValHelper::getTypeString (residualType type)
 
plotLabels PVValHelper::getVarString (plotVariable var)
 
template<typename T , size_t N>
std::array< T, N+1 > PVValHelper::makeLogBins (const T &min, const T &max)
 
void PVValHelper::shrinkHistVectorToFit (std::vector< TH1F *> &h, unsigned int desired_size)
 

Variables

constexpr double PVValHelper::max_eta_phase0 = 2.5
 
constexpr double PVValHelper::max_eta_phase1 = 2.7
 
constexpr double PVValHelper::max_eta_phase2 = 4.0
 

Macro Definition Documentation

◆ COUT

#define COUT   edm::LogWarning("PVValidationHelpers")