#include <SiPixelUtility.h>
|
static bool | checkME (std::string element, std::string name, std::string &full_path) |
|
static int | computeErrorCode (int status) |
|
static int | computeHistoBin (std::string &module_path) |
|
static void | createStatusLegendMessages (std::map< std::string, std::pair< int, double >> &messages) |
|
static void | fillPaveText (TPaveText *pave, const std::map< std::string, std::pair< int, double >> &messages) |
|
static int | getMEList (std::string name, std::string &dir_path, std::vector< std::string > &me_names) |
|
static int | getMEList (std::string name, std::vector< std::string > &values) |
|
static std::vector< std::string > | getQTestNameList (MonitorElement *me) |
|
static int | getStatus (MonitorElement *me) |
|
static void | getStatusColor (double status, int &rval, int &gval, int &bval) |
|
static void | getStatusColor (int status, int &icol, std::string &tag) |
|
static void | getStatusColor (int status, int &rval, int &gval, int &bval) |
|
static void | setDrawingOption (TH1 *hist, float xlow=-1., float xhigh=-1.) |
|
static std::map< std::string, std::string > | sourceCodeMap () |
|
static void | split (const std::string &str, std::vector< std::string > &tokens, const std::string &delimiters=" ") |
|
Definition at line 19 of file SiPixelUtility.h.
◆ DQMStore
◆ MonitorElement
◆ checkME()
bool SiPixelUtility::checkME |
( |
std::string |
element, |
|
|
std::string |
name, |
|
|
std::string & |
full_path |
|
) |
| |
|
static |
◆ computeErrorCode()
int SiPixelUtility::computeErrorCode |
( |
int |
status | ) |
|
|
static |
◆ computeHistoBin()
int SiPixelUtility::computeHistoBin |
( |
std::string & |
module_path | ) |
|
|
static |
Definition at line 167 of file SiPixelUtility.cc.
174 int halfcylinder = 0;
183 int nbinHalfcylinder = 168;
188 vector<string> subDirVector;
191 for (vector<string>::const_iterator it = subDirVector.begin(); it != subDirVector.end(); it++) {
192 if ((*it).find(
"Collector") != string::npos ||
194 (*it).find(
"FU") != string::npos || (*it).find(
"Pixel") != string::npos ||
195 (*it).find(
"Barrel") != string::npos || (*it).find(
"Endcap") != string::npos)
198 if ((*it).find(
"Module") != string::npos) {
199 module = atoi((*it).substr((*it).find(
"_") + 1).c_str());
202 if ((*it).find(
"Shell") != string::npos) {
203 if ((*it).find(
"mI") != string::npos)
205 if ((*it).find(
"mO") != string::npos)
207 if ((*it).find(
"pI") != string::npos)
209 if ((*it).find(
"pO") != string::npos)
212 if ((*it).find(
"Layer") != string::npos) {
213 layer = atoi((*it).substr((*it).find(
"_") + 1).c_str());
224 if ((*it).find(
"Ladder") != string::npos) {
225 ladder = atoi((*it).substr((*it).find(
"_") + 1, 2).c_str());
227 if ((*it).find(
"HalfCylinder") != string::npos) {
228 if ((*it).find(
"mI") != string::npos)
230 if ((*it).find(
"mO") != string::npos)
232 if ((*it).find(
"pI") != string::npos)
234 if ((*it).find(
"pO") != string::npos)
237 if ((*it).find(
"Disk") != string::npos) {
238 disk = atoi((*it).substr((*it).find(
"_") + 1).c_str());
240 if ((*it).find(
"Blade") != string::npos) {
241 blade = atoi((*it).substr((*it).find(
"_") + 1, 2).c_str());
243 if ((*it).find(
"Panel") != string::npos) {
244 panel = atoi((*it).substr((*it).find(
"_") + 1).c_str());
251 if (module_path.find(
"Barrel") != string::npos) {
252 module_bin =
module + (
ladder - 1) * nbinLadder + nbinLayer + (
shell - 1) * nbinShell;
254 if (module_path.find(
"Endcap") != string::npos) {
255 module_bin =
module + (panel - 1) * nbinPanel + (blade - 1) * nbinBlade + (disk - 1) * nbinDisk +
256 (halfcylinder - 1) * nbinHalfcylinder;
References PVValHelper::ladder, and split().
◆ createStatusLegendMessages()
void SiPixelUtility::createStatusLegendMessages |
( |
std::map< std::string, std::pair< int, double >> & |
messages | ) |
|
|
static |
◆ fillPaveText()
void SiPixelUtility::fillPaveText |
( |
TPaveText * |
pave, |
|
|
const std::map< std::string, std::pair< int, double >> & |
messages |
|
) |
| |
|
static |
◆ getMEList() [1/2]
static int SiPixelUtility::getMEList |
( |
std::string |
name, |
|
|
std::string & |
dir_path, |
|
|
std::vector< std::string > & |
me_names |
|
) |
| |
|
static |
◆ getMEList() [2/2]
static int SiPixelUtility::getMEList |
( |
std::string |
name, |
|
|
std::vector< std::string > & |
values |
|
) |
| |
|
static |
◆ getQTestNameList()
vector< string > SiPixelUtility::getQTestNameList |
( |
MonitorElement * |
me | ) |
|
|
static |
Definition at line 145 of file SiPixelUtility.cc.
146 vector<string> qtestNameList;
147 return qtestNameList;
◆ getStatus()
◆ getStatusColor() [1/3]
void SiPixelUtility::getStatusColor |
( |
double |
status, |
|
|
int & |
rval, |
|
|
int & |
gval, |
|
|
int & |
bval |
|
) |
| |
|
static |
◆ getStatusColor() [2/3]
static void SiPixelUtility::getStatusColor |
( |
int |
status, |
|
|
int & |
icol, |
|
|
std::string & |
tag |
|
) |
| |
|
static |
◆ getStatusColor() [3/3]
void SiPixelUtility::getStatusColor |
( |
int |
status, |
|
|
int & |
rval, |
|
|
int & |
gval, |
|
|
int & |
bval |
|
) |
| |
|
static |
◆ setDrawingOption()
void SiPixelUtility::setDrawingOption |
( |
TH1 * |
hist, |
|
|
float |
xlow = -1. , |
|
|
float |
xhigh = -1. |
|
) |
| |
|
static |
Definition at line 349 of file SiPixelUtility.cc.
353 TAxis *xa =
hist->GetXaxis();
354 TAxis *ya =
hist->GetYaxis();
356 xa->SetTitleOffset(0.7);
357 xa->SetTitleSize(0.06);
358 xa->SetLabelSize(0.04);
361 ya->SetTitleOffset(0.7);
362 ya->SetTitleSize(0.06);
364 if (xlow != -1 && xhigh != -1.0) {
365 xa->SetRangeUser(xlow, xhigh);
References compare::hist.
◆ sourceCodeMap()
map< string, string > SiPixelUtility::sourceCodeMap |
( |
| ) |
|
|
static |
Definition at line 277 of file SiPixelUtility.cc.
278 map<string, string> sourceCode;
279 for (
int iSource = 0; iSource < 5; iSource++) {
304 sourceCode[
type] = code;
◆ split()
void SiPixelUtility::split |
( |
const std::string & |
str, |
|
|
std::vector< std::string > & |
tokens, |
|
|
const std::string & |
delimiters = " " |
|
) |
| |
|
static |
Definition at line 53 of file SiPixelUtility.cc.
60 while (string::npos !=
pos || string::npos != lastPos) {
62 tokens.push_back(
str.substr(lastPos,
pos - lastPos));
65 lastPos =
str.find_first_not_of(delimiters,
pos);
68 pos =
str.find_first_of(delimiters, lastPos);
References str.
Referenced by computeHistoBin().