CMS 3D CMS Logo

Public Member Functions | Private Attributes

HDQMInspectorConfigBase Class Reference

#include <HDQMInspectorConfigBase.h>

Inheritance diagram for HDQMInspectorConfigBase:
HDQMInspectorConfigSiPixel HDQMInspectorConfigSiStrip HDQMInspectorConfigTracking

List of all members.

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
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
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
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.

{};
virtual HDQMInspectorConfigBase::~HDQMInspectorConfigBase ( ) [inline, virtual]

Definition at line 38 of file HDQMInspectorConfigBase.h.

{};

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.

Referenced by HDQMInspector::plot().

  {
    if (std::find(fComputeIntegral.begin(), fComputeIntegral.end(), in) != fComputeIntegral.end()) {
      return true;
    }
    return false;
  }
virtual bool HDQMInspectorConfigBase::computeIntegralList ( const std::vector< std::string > &  computeIntegralVector) [inline, virtual]

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.

Referenced by runInspector(), and runTrackingInspector().

  {
    fComputeIntegral = computeIntegralVector;
    return true;
  }
std::string HDQMInspectorConfigBase::getErrorForQuantity ( const std::string &  QuantityName) const [inline]

Definition at line 57 of file HDQMInspectorConfigBase.h.

References fErrorMap.

  {
    // Return the error name for a quantity name given.  This is designed to be used for the
    // "user" input quantities

    for (std::map<std::string, std::string>::const_iterator It = fErrorMap.begin(); It != fErrorMap.end(); ++It) {
      if (QuantityName.find( It->first ) != std::string::npos) {
        return It->second;
      }
    }

    return "";
  }
virtual std::string HDQMInspectorConfigBase::translateDetId ( const uint32_t  ) const [pure virtual]

pure virtual method that convert a DetId to a string

Implemented in HDQMInspectorConfigSiPixel, HDQMInspectorConfigSiStrip, and HDQMInspectorConfigTracking.

Referenced by HDQMInspector::plot().

virtual bool HDQMInspectorConfigBase::valueErrorMap ( std::vector< std::pair< std::string, std::string > > &  valueErrorVector) const [inline, virtual]

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

Definition at line 42 of file HDQMInspectorConfigBase.h.

{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().