CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
PVValHelper::histodetails Struct Reference

#include <PVValidationHelpers.h>

Public Member Functions

float getHigh (residualType type, plotVariable plot)
 
float getLow (residualType type, plotVariable plot)
 
std::pair< float, float > getRange (residualType type, plotVariable plot)
 
void setMap (residualType type, plotVariable plot, float low, float high)
 

Public Attributes

int histobins
 
std::map< std::pair< residualType, plotVariable >, std::pair< float, float > > range
 
std::map< plotVariable, std::vector< float > > trendbins
 

Detailed Description

Definition at line 85 of file PVValidationHelpers.h.

Member Function Documentation

◆ getHigh()

float PVValHelper::histodetails::getHigh ( residualType  type,
plotVariable  plot 
)
inline

Definition at line 113 of file PVValidationHelpers.h.

References COUT, plotFactory::plot, and range.

Referenced by PrimaryVertexValidation::beginJob(), and PrimaryVertexValidation::PrimaryVertexValidation().

113  {
114  if (range.find(std::make_pair(type, plot)) != range.end()) {
115  return range[std::make_pair(type, plot)].second;
116  } else {
117  COUT << "Trying get high end of range for non-existent combination " << std::endl;
118  return 0.;
119  }
120  }
std::map< std::pair< residualType, plotVariable >, std::pair< float, float > > range
#define COUT

◆ getLow()

float PVValHelper::histodetails::getLow ( residualType  type,
plotVariable  plot 
)
inline

Definition at line 104 of file PVValidationHelpers.h.

References COUT, plotFactory::plot, and range.

Referenced by PrimaryVertexValidation::PrimaryVertexValidation().

104  {
105  if (range.find(std::make_pair(type, plot)) != range.end()) {
106  return range[std::make_pair(type, plot)].first;
107  } else {
108  COUT << "Trying to get low end of range for non-existent combination " << std::endl;
109  return 0.;
110  }
111  }
std::map< std::pair< residualType, plotVariable >, std::pair< float, float > > range
#define COUT

◆ getRange()

std::pair<float, float> PVValHelper::histodetails::getRange ( residualType  type,
plotVariable  plot 
)
inline

Definition at line 95 of file PVValidationHelpers.h.

References COUT, plotFactory::plot, and range.

95  {
96  if (range.find(std::make_pair(type, plot)) != range.end()) {
97  return range[std::make_pair(type, plot)];
98  } else {
99  COUT << "Trying to get range for non-existent combination " << std::endl;
100  return std::make_pair(0., 0.);
101  }
102  }
std::map< std::pair< residualType, plotVariable >, std::pair< float, float > > range
#define COUT

◆ setMap()

void PVValHelper::histodetails::setMap ( residualType  type,
plotVariable  plot,
float  low,
float  high 
)
inline

Definition at line 90 of file PVValidationHelpers.h.

References cms::cuda::assert(), LaserClient_cfi::high, LaserClient_cfi::low, plotFactory::plot, and range.

Referenced by PrimaryVertexValidation::PrimaryVertexValidation().

90  {
91  assert(low < high);
92  range[std::make_pair(type, plot)] = std::make_pair(low, high);
93  }
std::map< std::pair< residualType, plotVariable >, std::pair< float, float > > range
assert(be >=bs)

Member Data Documentation

◆ histobins

int PVValHelper::histodetails::histobins

◆ range

std::map<std::pair<residualType, plotVariable>, std::pair<float, float> > PVValHelper::histodetails::range

◆ trendbins

std::map<plotVariable, std::vector<float> > PVValHelper::histodetails::trendbins