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.

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  }

References COUT, plotFactory::plot, and range.

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

◆ getLow()

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

Definition at line 104 of file PVValidationHelpers.h.

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  }

References COUT, plotFactory::plot, and range.

Referenced by PrimaryVertexValidation::PrimaryVertexValidation().

◆ getRange()

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

Definition at line 95 of file PVValidationHelpers.h.

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  }

References COUT, plotFactory::plot, and range.

◆ setMap()

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

Definition at line 90 of file PVValidationHelpers.h.

90  {
91  assert(low < high);
92  range[std::make_pair(type, plot)] = std::make_pair(low, high);
93  }

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

Referenced by PrimaryVertexValidation::PrimaryVertexValidation().

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
cms::cuda::assert
assert(be >=bs)
plotFactory.plot
plot
Definition: plotFactory.py:109
type
type
Definition: SiPixelVCal_PayloadInspector.cc:39
COUT
#define COUT
Definition: PVValidationHelpers.h:13
LaserClient_cfi.high
high
Definition: LaserClient_cfi.py:50
PVValHelper::histodetails::range
std::map< std::pair< residualType, plotVariable >, std::pair< float, float > > range
Definition: PVValidationHelpers.h:87
LaserClient_cfi.low
low
Definition: LaserClient_cfi.py:52