Extraction of the summary information using DQMServices/Diagnostic/test/HDQMInspector.
The sqlite database should have been filled using the new SiPixelHistoryDQMService.
41 string condition =
"";
43 string blackList =
"109468";
47 string siStripTracker =
"268435456";
48 vector<string> subDetectors;
49 subDetectors.push_back(
"369098752");
50 subDetectors.push_back(
"436207616");
52 subDetectors.push_back(
"402661376");
53 subDetectors.push_back(
"402669568");
55 subDetectors.push_back(
"470024192");
56 subDetectors.push_back(
"470286336");
60 vector<string> ItemsForIntegration;
61 ItemsForIntegration.push_back(
"TotalNumberOfClusters_OnTrack_entries");
68 makeTrend.setDB(
dbName,tagName,
"/afs/cern.ch/cms/DB/conddb");
70 makeTrend.setDebug(0);
71 makeTrend.setDoStat(1);
72 makeTrend.setSkip99s(
true);
73 makeTrend.setBlackList(blackList);
75 makeTrend.setWhiteListFromFile(whiteListFile);
80 config.push_back(Trend(
multiItems(subDetectors,
"Summary_TotalNumberOfClusters_OnTrack@mean"),
"OnTrackClusters_mean.gif", 0,
81 condition+
"",
"", Start, End, nRuns, 0 ));
82 config.push_back(Trend(
multiItems(subDetectors,
"Summary_TotalNumberOfClusters_OnTrack@entries"),
"OnTrackClusters_entries.gif", 0,
83 condition+
"&& 369098752@Summary_TotalNumberOfClusters_OnTrack@entries > 0",
"", Start, End, nRuns, 0 ));
84 config.push_back(Trend(
multiItems(subDetectors,
"Summary_TotalNumberOfClusters_OffTrack@mean"),
"TotalNumberOfClusters_OffTrack_mean.gif", 0,
85 condition+
"&& 369098752@Summary_TotalNumberOfClusters_OffTrack@mean > 0",
"", Start, End, nRuns, 0, 1000 ));
86 config.push_back(Trend(
multiItems(subDetectors,
"Summary_TotalNumberOfClusters_OffTrack@entries"),
"TotalNumberOfClusters_OffTrack_entries.gif", 0,
87 condition+
"&& 369098752@Summary_TotalNumberOfClusters_OffTrack@entries > 0",
"", Start, End, nRuns, 0 ));
88 config.push_back(Trend(
multiItems(subDetectors,
"Summary_ClusterChargeCorr_OnTrack@landauPeak"),
"ClusterChargeCorr_OnTrack_landau.gif", 0,
89 condition+
"&& 369098752@Summary_ClusterChargeCorr_OnTrack@entries > 10000",
"", Start, End, nRuns, 0 ));
90 config.push_back(Trend(
multiItems(subDetectors,
"Summary_ClusterCharge_OffTrack@mean"),
"ClusterCharge_OffTrack_mean.gif", 0,
91 condition+
"&& 369098752@Summary_ClusterCharge_OffTrack@entries > 10000",
"", Start, End, nRuns, 0 ));
92 config.push_back(Trend(
multiItems(subDetectors,
"Summary_ClusterCharge_OffTrack@landauPeak"),
"ClusterCharge_OffTrack_landau.gif", 0,
93 condition+
"&& 369098752@Summary_ClusterCharge_OffTrack@entries > 10000",
"", Start, End, nRuns, 0 ));
94 config.push_back(Trend(
multiItems(subDetectors,
"Summary_ClusterNoise_OnTrack@gaussMean"),
"ClusterNoise_OnTrack_gauss.gif", 0,
95 condition+
"&& 369098752@Summary_ClusterNoise_OnTrack@entries > 10000",
"", Start, End, nRuns, 0 ));
96 config.push_back(Trend(
multiItems(subDetectors,
"Summary_ClusterNoise_OffTrack@gaussMean"),
"ClusterNoise_OffTrack_gauss.gif", 0,
97 condition+
"&& 369098752@Summary_ClusterNoise_OffTrack@entries > 10000",
"", Start, End, nRuns, 0, 8 ));
98 config.push_back(Trend(
multiItems(subDetectors,
"Summary_ClusterStoNCorr_OnTrack@landauPeak"),
"ClusterStoNCorr_OnTrack_landauPeak.gif", 0,
99 condition+
"&& 369098752@Summary_ClusterStoNCorr_OnTrack@landauPeak > 0",
"", Start, End, nRuns, 0 ));
100 config.push_back(Trend(
multiItems(subDetectors,
"Summary_ClusterStoNCorr_OnTrack@mean"),
"ClusterStoNCorr_OnTrack_mean.gif", 0,
101 condition+
"&& 369098752@Summary_ClusterStoNCorr_OnTrack@mean > 0",
"", Start, End, nRuns, 0 ));
102 config.push_back(Trend(
multiItems(subDetectors,
"Summary_ClusterStoN_OffTrack@landauPeak"),
"ClusterStoN_OffTrack_landauPeak.gif", 0,
103 condition+
"&& 369098752@Summary_ClusterStoN_OffTrack@entries > 10000",
"", Start, End, nRuns, 0, 60 ));
104 config.push_back(Trend(
multiItems(subDetectors,
"Summary_ClusterStoN_OffTrack@mean"),
"ClusterStoN_OffTrack_mean.gif", 0,
105 condition+
"&& 369098752@Summary_ClusterStoN_OffTrack@entries > 10000",
"", Start, End, nRuns, 0, 80 ));
106 config.push_back(Trend(
multiItems(subDetectors,
"Summary_ClusterWidth_OnTrack@mean"),
"ClusterWidth_OnTrack_mean.gif", 0,
107 condition+
"&& 369098752@Summary_ClusterWidth_OnTrack@mean > 0",
"", Start, End, nRuns, 0 ));
108 config.push_back(Trend(
multiItems(subDetectors,
"Summary_ClusterWidth_OffTrack@mean"),
"ClusterWidth_OffTrack_mean.gif", 0,
109 condition+
"",
"", Start, End, nRuns, 0, 7 ));
110 config.push_back(Trend(
multiItems(subDetectors,
"TotalNumberOfClusterProfile@yMean"),
"TotalNumberOfClusterProfile_ymean.gif", 0,
111 condition+
"",
"", Start, End, nRuns, 0, 15 ));
114 config.push_back(Trend( siStripTracker+
"@nFEDErrors@entries",
"nFEDErrors.gif", 0,
115 condition,
"", Start, End, nRuns ));
116 config.push_back(Trend( siStripTracker+
"@nBadActiveChannelStatusBits@entries",
"nBadActiveChannelStatusBits.gif", 0,
117 condition,
"", Start, End, nRuns ));
118 config.push_back(Trend( siStripTracker+
"@nBadChannelStatusBits@entries",
"nBadChannelStatusBits.gif", 0,
119 condition,
"", Start, End, nRuns ));
120 config.push_back(Trend( siStripTracker+
"@nAPVAddressError@entries",
"nAPVAddressError.gif", 0,
121 condition,
"", Start, End, nRuns ));
122 config.push_back(Trend( siStripTracker+
"@nUnlocked@entries",
"nUnlocked.gif", 0,
123 condition,
"", Start, End, nRuns ));
124 config.push_back(Trend( siStripTracker+
"@nOutOfSync@entries",
"nOutOfSync.gif", 0,
125 condition,
"", Start, End, nRuns ));
128 config.push_back(Trend( siStripTracker+
"@nFEDErrors@mean",
"nFEDErrors_mean.gif", 0,
129 condition,
"", Start, End, nRuns ));
130 config.push_back(Trend( siStripTracker+
"@nBadActiveChannelStatusBits@mean",
"nBadActiveChannelStatusBits_mean.gif", 0,
131 condition,
"", Start, End, nRuns ));
132 config.push_back(Trend( siStripTracker+
"@nBadChannelStatusBits@mean",
"nBadChannelStatusBits_mean.gif", 0,
133 condition,
"", Start, End, nRuns ));
134 config.push_back(Trend( siStripTracker+
"@nAPVAddressError@mean",
"nAPVAddressError_mean.gif", 0,
135 condition,
"", Start, End, nRuns ));
136 config.push_back(Trend( siStripTracker+
"@nUnlocked@mean",
"nUnlocked_mean.gif", 0,
137 condition,
"", Start, End, nRuns ));
138 config.push_back(Trend( siStripTracker+
"@nOutOfSync@mean",
"nOutOfSync_mean.gif", 0,
139 condition,
"", Start, End, nRuns ));
142 for_each(config.begin(), config.end(), makeTrend);
145 makeTrend.closeFile();
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 ...
string multiItems(const vector< string > &subDetectors, const string &item)
Simple helper function for building the string for TIB,TOB,TEC,TID items.