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)
 fills the list of names of quantities for which a summation over the runs is required More...
 
std::string getErrorForQuantity (const std::string &QuantityName) const
 
 HDQMInspectorConfigBase ()
 
virtual bool valueErrorMap (std::vector< std::pair< std::string, std::string > > &valueErrorVector) const
 fills a vector<pair<string, string> > associating values with the corresponding errors More...
 
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 32 of file HDQMInspectorConfigBase.h.

Constructor & Destructor Documentation

HDQMInspectorConfigBase::HDQMInspectorConfigBase ( )
inline

Definition at line 35 of file HDQMInspectorConfigBase.h.

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

Definition at line 36 of file HDQMInspectorConfigBase.h.

36 {};

Member Function Documentation

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

Definition at line 45 of file HDQMInspectorConfigBase.h.

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

46  {
47  if (std::find(fComputeIntegral.begin(), fComputeIntegral.end(), in) != fComputeIntegral.end()) {
48  return true;
49  }
50  return false;
51  }
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.

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

Definition at line 53 of file HDQMInspectorConfigBase.h.

References fErrorMap.

54  {
55  // Return the error name for a quantity name given. This is designed to be used for the
56  // "user" input quantities
57 
58  for (std::map<std::string, std::string>::const_iterator It = fErrorMap.begin(); It != fErrorMap.end(); ++It) {
59  if (QuantityName.find( It->first ) != std::string::npos) {
60  return It->second;
61  }
62  }
63 
64  return "";
65  }
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 38 of file HDQMInspectorConfigBase.h.

38 {return false;}

Member Data Documentation

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

Definition at line 69 of file HDQMInspectorConfigBase.h.

Referenced by computeIntegral(), and computeIntegralList().

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

Definition at line 68 of file HDQMInspectorConfigBase.h.

Referenced by getErrorForQuantity().