Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:11:10

0001 #ifndef SiPixelCommon_SiPixelHistogramId_h
0002 #define SiPixelCommon_SiPixelHistogramId_h
0003 // -*- C++ -*-
0004 //
0005 // Package:     SiPixelCommon
0006 // Class  :     SiPixelHistogramId
0007 //
0008 /**\class SiPixelHistogramId SiPixelHistogramId.h
0009  DQM/SiPixelCommon/interface/SiPixelHistogramId.h
0010 
0011  Description: Creates and returns DQM Histogram Id's
0012 
0013  Usage:
0014     <usage>
0015 
0016 */
0017 //
0018 // Original Author:  chiochia
0019 //         Created:  Wed Feb 22 16:07:51 CET 2006
0020 //
0021 
0022 #include <string>
0023 #include <cstdint>
0024 
0025 class SiPixelHistogramId {
0026 public:
0027   /// Constructor
0028   SiPixelHistogramId();
0029   /// Constructor
0030   SiPixelHistogramId(std::string dataCollection);
0031   /// Destructor
0032   virtual ~SiPixelHistogramId();
0033   /// Set Histogram Id
0034   std::string setHistoId(std::string variable, uint32_t &rawId);
0035   /// Get data Collection
0036   std::string getDataCollection(std::string histogramId);
0037   /// Get Detector Raw Id
0038   uint32_t getRawId(std::string histogramId);
0039 
0040 private:
0041   std::string returnIdPart(std::string histoid, uint32_t whichpart);
0042   std::string dataCollection_;
0043   std::string separator_;
0044 };
0045 
0046 #endif