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

Member Function Documentation

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

Definition at line 102 of file PVValidationHelpers.h.

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

102  {
103  if (range.find(std::make_pair(type,plot)) != range.end()) {
104  return range[std::make_pair(type,plot)].second;
105  } else {
106  edm::LogWarning("PVValidationHelpers") << "Trying get high end of range for non-existent combination "<< std::endl;
107  return 0.;
108  }
109  }
type
Definition: HCALResponse.h:21
std::map< std::pair< residualType, plotVariable >, std::pair< float, float > > range
float PVValHelper::histodetails::getLow ( residualType  type,
plotVariable  plot 
)
inline

Definition at line 93 of file PVValidationHelpers.h.

Referenced by PrimaryVertexValidation::PrimaryVertexValidation().

93  {
94  if (range.find(std::make_pair(type,plot)) != range.end()) {
95  return range[std::make_pair(type,plot)].first;
96  } else {
97  edm::LogWarning("PVValidationHelpers") << "Trying to get low end of range for non-existent combination "<< std::endl;
98  return 0.;
99  }
100  }
type
Definition: HCALResponse.h:21
std::map< std::pair< residualType, plotVariable >, std::pair< float, float > > range
std::pair<float,float> PVValHelper::histodetails::getRange ( residualType  type,
plotVariable  plot 
)
inline

Definition at line 84 of file PVValidationHelpers.h.

84  {
85  if (range.find(std::make_pair(type,plot)) != range.end()) {
86  return range[std::make_pair(type,plot)];
87  } else {
88  edm::LogWarning("PVValidationHelpers") << "Trying to get range for non-existent combination "<< std::endl;
89  return std::make_pair(0.,0.);
90  }
91  }
type
Definition: HCALResponse.h:21
std::map< std::pair< residualType, plotVariable >, std::pair< float, float > > range
void PVValHelper::histodetails::setMap ( residualType  type,
plotVariable  plot,
float  low,
float  high 
)
inline

Definition at line 79 of file PVValidationHelpers.h.

Referenced by PrimaryVertexValidation::PrimaryVertexValidation().

79  {
80  assert(low<high);
81  range[std::make_pair(type,plot)] = std::make_pair(low,high);
82  }
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