CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

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

Definition at line 113 of file PVValidationHelpers.h.

References COUT, 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
def plot
Definition: bigModule.py:18
#define COUT
float PVValHelper::histodetails::getLow ( residualType  type,
plotVariable  plot 
)
inline

Definition at line 104 of file PVValidationHelpers.h.

References COUT, 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
def plot
Definition: bigModule.py:18
#define COUT
std::pair<float, float> PVValHelper::histodetails::getRange ( residualType  type,
plotVariable  plot 
)
inline

Definition at line 95 of file PVValidationHelpers.h.

References COUT, 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
def plot
Definition: bigModule.py:18
#define COUT
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(), 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)
def plot
Definition: bigModule.py:18

Member Data Documentation

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