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

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

Definition at line 105 of file PVValidationHelpers.h.

References COUT.

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

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  }
type
Definition: HCALResponse.h:21
std::map< std::pair< residualType, plotVariable >, std::pair< float, float > > range
#define COUT
float PVValHelper::histodetails::getLow ( residualType  type,
plotVariable  plot 
)
inline

Definition at line 96 of file PVValidationHelpers.h.

References COUT.

Referenced by PrimaryVertexValidation::PrimaryVertexValidation().

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  }
type
Definition: HCALResponse.h:21
std::map< std::pair< residualType, plotVariable >, std::pair< float, float > > range
#define COUT
std::pair<float, float> PVValHelper::histodetails::getRange ( residualType  type,
plotVariable  plot 
)
inline

Definition at line 87 of file PVValidationHelpers.h.

References COUT.

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  }
type
Definition: HCALResponse.h:21
std::map< std::pair< residualType, plotVariable >, std::pair< float, float > > range
#define COUT
void PVValHelper::histodetails::setMap ( residualType  type,
plotVariable  plot,
float  low,
float  high 
)
inline

Definition at line 82 of file PVValidationHelpers.h.

Referenced by PrimaryVertexValidation::PrimaryVertexValidation().

82  {
83  assert(low < high);
84  range[std::make_pair(type, plot)] = std::make_pair(low, high);
85  }
type
Definition: HCALResponse.h:21
std::map< std::pair< residualType, plotVariable >, std::pair< float, float > > range

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