CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
HDQMInspectorConfigBase Class Reference

#include <HDQMInspectorConfigBase.h>

Inheritance diagram for HDQMInspectorConfigBase:
HDQMInspectorConfigSiStrip HDQMInspectorConfigTracking

Public Member Functions

bool computeIntegral (const std::string &in) const
 
virtual bool computeIntegralList (const std::vector< std::string > &computeIntegralVector)
 
std::string getErrorForQuantity (const std::string &QuantityName) const
 
 HDQMInspectorConfigBase ()
 
virtual bool valueErrorMap (std::vector< std::pair< std::string, std::string >> &valueErrorVector) const
 
virtual ~HDQMInspectorConfigBase ()
 

Private Attributes

std::vector< std::string > fComputeIntegral
 
std::map< std::string, std::string > fErrorMap
 

Detailed Description

Author
: M. De Mattia
Date
: 17/6/2009

The HDQMinspectorConfigBase is the base class defining the interface for the classes used to pass detector specific information to the HDQMInspector.
The methods defined are:

Each subdetector must derive from this class and pass it by pointer to the HDQMInspector.

Definition at line 31 of file HDQMInspectorConfigBase.h.

Constructor & Destructor Documentation

HDQMInspectorConfigBase::HDQMInspectorConfigBase ( )
inline

Definition at line 33 of file HDQMInspectorConfigBase.h.

33 {};
virtual HDQMInspectorConfigBase::~HDQMInspectorConfigBase ( )
inlinevirtual

Definition at line 34 of file HDQMInspectorConfigBase.h.

34 {};

Member Function Documentation

bool HDQMInspectorConfigBase::computeIntegral ( const std::string &  in) const
inline

Definition at line 44 of file HDQMInspectorConfigBase.h.

References fComputeIntegral, spr::find(), and recoMuon::in.

44  {
45  if (std::find(fComputeIntegral.begin(), fComputeIntegral.end(), in) != fComputeIntegral.end()) {
46  return true;
47  }
48  return false;
49  }
std::vector< std::string > fComputeIntegral
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:20
virtual bool HDQMInspectorConfigBase::computeIntegralList ( const std::vector< std::string > &  computeIntegralVector)
inlinevirtual

fills the list of names of quantities for which a summation over the runs is required

Definition at line 40 of file HDQMInspectorConfigBase.h.

References fComputeIntegral.

40  {
41  fComputeIntegral = computeIntegralVector;
42  return true;
43  }
std::vector< std::string > fComputeIntegral
std::string HDQMInspectorConfigBase::getErrorForQuantity ( const std::string &  QuantityName) const
inline

Definition at line 51 of file HDQMInspectorConfigBase.h.

References fErrorMap.

51  {
52  // Return the error name for a quantity name given. This is designed to be
53  // used for the "user" input quantities
54 
55  for (std::map<std::string, std::string>::const_iterator It = fErrorMap.begin(); It != fErrorMap.end(); ++It) {
56  if (QuantityName.find(It->first) != std::string::npos) {
57  return It->second;
58  }
59  }
60 
61  return "";
62  }
std::map< std::string, std::string > fErrorMap
virtual bool HDQMInspectorConfigBase::valueErrorMap ( std::vector< std::pair< std::string, std::string >> &  valueErrorVector) const
inlinevirtual

fills a vector<pair<string, string> > associating values with the corresponding errors

Definition at line 37 of file HDQMInspectorConfigBase.h.

37 { return false; }

Member Data Documentation

std::vector<std::string> HDQMInspectorConfigBase::fComputeIntegral
private

Definition at line 66 of file HDQMInspectorConfigBase.h.

Referenced by computeIntegral(), and computeIntegralList().

std::map<std::string, std::string> HDQMInspectorConfigBase::fErrorMap
private

Definition at line 65 of file HDQMInspectorConfigBase.h.

Referenced by getErrorForQuantity().