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

Member Function Documentation

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

Definition at line 86 of file PVValidationHelpers.h.

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

86  {
87  if (range.find(std::make_pair(type,plot)) != range.end()) {
88  return range[std::make_pair(type,plot)].second;
89  } else {
90  edm::LogWarning("PVValidationHelpers") << "Trying get high end of range for non-existent combination "<< std::endl;
91  return 0.;
92  }
93  }
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 77 of file PVValidationHelpers.h.

Referenced by PrimaryVertexValidation::PrimaryVertexValidation().

77  {
78  if (range.find(std::make_pair(type,plot)) != range.end()) {
79  return range[std::make_pair(type,plot)].first;
80  } else {
81  edm::LogWarning("PVValidationHelpers") << "Trying to get low end of range for non-existent combination "<< std::endl;
82  return 0.;
83  }
84  }
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 68 of file PVValidationHelpers.h.

68  {
69  if (range.find(std::make_pair(type,plot)) != range.end()) {
70  return range[std::make_pair(type,plot)];
71  } else {
72  edm::LogWarning("PVValidationHelpers") << "Trying to get range for non-existent combination "<< std::endl;
73  return std::make_pair(0.,0.);
74  }
75  }
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 63 of file PVValidationHelpers.h.

Referenced by PrimaryVertexValidation::PrimaryVertexValidation().

63  {
64  assert(low<high);
65  range[std::make_pair(type,plot)] = std::make_pair(low,high);
66  }
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