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 77 of file PVValidationHelpers.h.

Member Function Documentation

◆ getHigh()

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

Definition at line 105 of file PVValidationHelpers.h.

105  {
106  if (range.find(std::make_pair(type, plot)) != range.end()) {
107  return range[std::make_pair(type, plot)].second;
108  } else {
109  COUT << "Trying get high end of range for non-existent combination " << std::endl;
110  return 0.;
111  }
112  }

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 96 of file PVValidationHelpers.h.

96  {
97  if (range.find(std::make_pair(type, plot)) != range.end()) {
98  return range[std::make_pair(type, plot)].first;
99  } else {
100  COUT << "Trying to get low end of range for non-existent combination " << std::endl;
101  return 0.;
102  }
103  }

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 87 of file PVValidationHelpers.h.

87  {
88  if (range.find(std::make_pair(type, plot)) != range.end()) {
89  return range[std::make_pair(type, plot)];
90  } else {
91  COUT << "Trying to get range for non-existent combination " << std::endl;
92  return std::make_pair(0., 0.);
93  }
94  }

References COUT, plotFactory::plot, and range.

◆ setMap()

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

Definition at line 82 of file PVValidationHelpers.h.

82  {
83  assert(low < high);
84  range[std::make_pair(type, plot)] = std::make_pair(low, high);
85  }

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:37
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:79
LaserClient_cfi.low
low
Definition: LaserClient_cfi.py:52