Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:01:45

0001 /*!
0002   \file SiPixelGenErrorDBObject_PayloadInspector
0003   \Payload Inspector Plugin for SiPixelGenError
0004   \author M. Musich
0005   \version $Revision: 1.0 $
0006   \date $Date: 2020/04/16 18:00:00 $
0007 */
0008 
0009 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0010 
0011 #include "CondCore/Utilities/interface/PayloadInspectorModule.h"
0012 #include "CondCore/Utilities/interface/PayloadInspector.h"
0013 #include "CondCore/CondDB/interface/Time.h"
0014 #include "CondCore/SiPixelPlugins/interface/SiPixelPayloadInspectorHelper.h"
0015 #include "CondCore/SiPixelPlugins/interface/SiPixelTemplateHelper.h"
0016 #include "CalibTracker/StandaloneTrackerTopology/interface/StandaloneTrackerTopology.h"
0017 
0018 // the data format of the condition to be inspected
0019 #include "CondFormats/SiPixelObjects/interface/SiPixelGenErrorDBObject.h"
0020 #include "CondFormats/SiPixelTransient/interface/SiPixelGenError.h"
0021 #include "DataFormats/SiPixelDetId/interface/PixelSubdetector.h"
0022 #include "DataFormats/DetId/interface/DetId.h"
0023 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0024 
0025 #include <memory>
0026 #include <map>
0027 #include <sstream>
0028 #include <iostream>
0029 #include <algorithm>
0030 
0031 // include ROOT
0032 #include "TH2.h"
0033 #include "TProfile2D.h"
0034 #include "TH2Poly.h"
0035 #include "TGraph.h"
0036 #include "TH2F.h"
0037 #include "TLegend.h"
0038 #include "TCanvas.h"
0039 #include "TLine.h"
0040 #include "TGraph.h"
0041 #include "TStyle.h"
0042 #include "TLatex.h"
0043 #include "TPave.h"
0044 #include "TPaveStats.h"
0045 #include "TGaxis.h"
0046 
0047 namespace {
0048 
0049   //***********************************************
0050   // Display of Template Titles
0051   // **********************************************/
0052   using namespace templateHelper;
0053   using SiPixelGenErrorTitles_Display =
0054       SiPixelTitles_Display<SiPixelGenErrorDBObject, SiPixelGenErrorStore, SiPixelGenError>;
0055 
0056   //***********************************************
0057   // Display of GenError Header
0058   // **********************************************/
0059   using SiPixelGenErrorHeaderTable = SiPixelHeaderTable<SiPixelGenErrorDBObject, SiPixelGenErrorStore, SiPixelGenError>;
0060 
0061   //***********************************************
0062   // TH2Poly Map of IDs
0063   //***********************************************/
0064   using SiPixelGenErrorIDsBPixMap = SiPixelIDs<SiPixelGenErrorDBObject, SiPixelPI::t_barrel>;
0065   using SiPixelGenErrorIDsFPixMap = SiPixelIDs<SiPixelGenErrorDBObject, SiPixelPI::t_forward>;
0066   using SiPixelGenErrorIDsMap = SiPixelIDs<SiPixelGenErrorDBObject, SiPixelPI::t_all>;
0067 
0068   //************************************************
0069   // Full Pixel Tracker Map of Template IDs
0070   // ***********************************************/
0071   using SiPixelGenErrorIDsFullPixelMap =
0072       SiPixelFullPixelIDMap<SiPixelGenErrorDBObject, SiPixelGenErrorStore, SiPixelGenError>;
0073 
0074 }  // namespace
0075 
0076 // Register the classes as boost python plugin
0077 PAYLOAD_INSPECTOR_MODULE(SiPixelGenErrorDBObject) {
0078   PAYLOAD_INSPECTOR_CLASS(SiPixelGenErrorTitles_Display);
0079   PAYLOAD_INSPECTOR_CLASS(SiPixelGenErrorHeaderTable);
0080   PAYLOAD_INSPECTOR_CLASS(SiPixelGenErrorIDsBPixMap);
0081   PAYLOAD_INSPECTOR_CLASS(SiPixelGenErrorIDsFPixMap);
0082   PAYLOAD_INSPECTOR_CLASS(SiPixelGenErrorIDsMap);
0083   PAYLOAD_INSPECTOR_CLASS(SiPixelGenErrorIDsFullPixelMap);
0084 }