CMS 3D CMS Logo

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

#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 std::string translateDetId (const uint32_t) const =0
 pure virtual method that convert a DetId to a string More...
 
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 34 of file HDQMInspectorConfigBase.h.

Constructor & Destructor Documentation

HDQMInspectorConfigBase::HDQMInspectorConfigBase ( )
inline

Definition at line 37 of file HDQMInspectorConfigBase.h.

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

Definition at line 38 of file HDQMInspectorConfigBase.h.

References AlCaHLTBitMon_QueryRunRegistry::string, and translateDetId().

38 {};

Member Function Documentation

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

Definition at line 49 of file HDQMInspectorConfigBase.h.

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

50  {
51  if (std::find(fComputeIntegral.begin(), fComputeIntegral.end(), in) != fComputeIntegral.end()) {
52  return true;
53  }
54  return false;
55  }
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:7
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 44 of file HDQMInspectorConfigBase.h.

References fComputeIntegral.

45  {
46  fComputeIntegral = computeIntegralVector;
47  return true;
48  }
std::vector< std::string > fComputeIntegral
std::string HDQMInspectorConfigBase::getErrorForQuantity ( const std::string &  QuantityName) const
inline

Definition at line 57 of file HDQMInspectorConfigBase.h.

References fErrorMap.

58  {
59  // Return the error name for a quantity name given. This is designed to be used for the
60  // "user" input quantities
61 
62  for (std::map<std::string, std::string>::const_iterator It = fErrorMap.begin(); It != fErrorMap.end(); ++It) {
63  if (QuantityName.find( It->first ) != std::string::npos) {
64  return It->second;
65  }
66  }
67 
68  return "";
69  }
std::map< std::string, std::string > fErrorMap
virtual std::string HDQMInspectorConfigBase::translateDetId ( const uint32_t  ) const
pure virtual

pure virtual method that convert a DetId to a string

Implemented in HDQMInspectorConfigSiStrip, and HDQMInspectorConfigTracking.

Referenced by ~HDQMInspectorConfigBase().

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 42 of file HDQMInspectorConfigBase.h.

42 {return false;}

Member Data Documentation

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

Definition at line 73 of file HDQMInspectorConfigBase.h.

Referenced by computeIntegral(), and computeIntegralList().

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

Definition at line 72 of file HDQMInspectorConfigBase.h.

Referenced by getErrorForQuantity().