1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
/*!
\file SiPixelGenErrorDBObject_PayloadInspector
\Payload Inspector Plugin for SiPixelGenError
\author M. Musich
\version $Revision: 1.0 $
\date $Date: 2020/04/16 18:00:00 $
*/
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "CondCore/Utilities/interface/PayloadInspectorModule.h"
#include "CondCore/Utilities/interface/PayloadInspector.h"
#include "CondCore/CondDB/interface/Time.h"
#include "CondCore/SiPixelPlugins/interface/SiPixelPayloadInspectorHelper.h"
#include "CondCore/SiPixelPlugins/interface/SiPixelTemplateHelper.h"
#include "CalibTracker/StandaloneTrackerTopology/interface/StandaloneTrackerTopology.h"
// the data format of the condition to be inspected
#include "CondFormats/SiPixelObjects/interface/SiPixelGenErrorDBObject.h"
#include "CondFormats/SiPixelTransient/interface/SiPixelGenError.h"
#include "DataFormats/SiPixelDetId/interface/PixelSubdetector.h"
#include "DataFormats/DetId/interface/DetId.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include <memory>
#include <map>
#include <sstream>
#include <iostream>
#include <algorithm>
// include ROOT
#include "TH2.h"
#include "TProfile2D.h"
#include "TH2Poly.h"
#include "TGraph.h"
#include "TH2F.h"
#include "TLegend.h"
#include "TCanvas.h"
#include "TLine.h"
#include "TGraph.h"
#include "TStyle.h"
#include "TLatex.h"
#include "TPave.h"
#include "TPaveStats.h"
#include "TGaxis.h"
namespace {
//***********************************************
// Display of Template Titles
// **********************************************/
using namespace templateHelper;
using SiPixelGenErrorTitles_Display =
SiPixelTitles_Display<SiPixelGenErrorDBObject, SiPixelGenErrorStore, SiPixelGenError>;
//***********************************************
// Display of GenError Header
// **********************************************/
using SiPixelGenErrorHeaderTable = SiPixelHeaderTable<SiPixelGenErrorDBObject, SiPixelGenErrorStore, SiPixelGenError>;
//***********************************************
// TH2Poly Map of IDs
//***********************************************/
using SiPixelGenErrorIDsBPixMap = SiPixelIDs<SiPixelGenErrorDBObject, SiPixelPI::t_barrel>;
using SiPixelGenErrorIDsFPixMap = SiPixelIDs<SiPixelGenErrorDBObject, SiPixelPI::t_forward>;
using SiPixelGenErrorIDsMap = SiPixelIDs<SiPixelGenErrorDBObject, SiPixelPI::t_all>;
//************************************************
// Full Pixel Tracker Map of Template IDs
// ***********************************************/
using SiPixelGenErrorIDsFullPixelMap =
SiPixelFullPixelIDMap<SiPixelGenErrorDBObject, SiPixelGenErrorStore, SiPixelGenError>;
} // namespace
// Register the classes as boost python plugin
PAYLOAD_INSPECTOR_MODULE(SiPixelGenErrorDBObject) {
PAYLOAD_INSPECTOR_CLASS(SiPixelGenErrorTitles_Display);
PAYLOAD_INSPECTOR_CLASS(SiPixelGenErrorHeaderTable);
PAYLOAD_INSPECTOR_CLASS(SiPixelGenErrorIDsBPixMap);
PAYLOAD_INSPECTOR_CLASS(SiPixelGenErrorIDsFPixMap);
PAYLOAD_INSPECTOR_CLASS(SiPixelGenErrorIDsMap);
PAYLOAD_INSPECTOR_CLASS(SiPixelGenErrorIDsFullPixelMap);
}
|