15 string const Condition =
"0@SUMOFF_nclusters_OffTrack@yMean > 0";
24 const int Start,
const int End,
const int nRuns )
30 makeTrend.
setDB(dbName,tagName,
"/afs/cern.ch/cms/DB/conddb");
42 config.push_back(Trend(
"1@SUMOFF_adc@yMean",
"adc_yMean_Barrel.gif", 0,
Condition,
"", Start, End, nRuns ));
43 config.push_back(Trend(
"6@SUMOFF_adc@yMean",
"adc_yMean_Endcap.gif", 0,
Condition,
"", Start, End, nRuns ));
44 config.push_back(Trend(
"0@SUMOFF_charge_OffTrack@yMean",
"charge_OffTrack_yMean.gif", 0,
Condition,
"", Start, End, nRuns ));
45 config.push_back(Trend(
"1@SUMOFF_charge_OnTrack@yMean",
"charge_OnTrack_yMean_Barrel.gif", 0,
Condition,
"", Start, End, nRuns ));
46 config.push_back(Trend(
"6@SUMOFF_charge_OnTrack@yMean",
"charge_OnTrack_yMean_Endcap.gif", 0,
Condition,
"", Start, End, nRuns ));
47 config.push_back(Trend(
"0@SUMOFF_nRecHits@yMean",
"nRecHits_yMean.gif", 0,
Condition,
"", Start, End, nRuns ));
48 config.push_back(Trend(
"0@SUMOFF_nclusters_OffTrack@yMean",
"nclusters_OffTrack_yMean.gif", 0,
Condition,
"", Start, End, nRuns ));
49 config.push_back(Trend(
"0@SUMOFF_nclusters_OnTrack@yMean",
"nclusters_OnTrack_yMean.gif", 0,
Condition,
"", Start, End, nRuns ));
50 config.push_back(Trend(
"0@SUMOFF_ndigis@yMean",
"ndigis_yMean.gif", 0,
Condition,
"", Start, End, nRuns ));
51 config.push_back(Trend(
"0@SUMOFF_size_OffTrack@yMean",
"size_OffTrack_yMean.gif", 0,
Condition,
"", Start, End, nRuns ));
52 config.push_back(Trend(
"0@SUMOFF_size_OnTrack@yMean",
"size_OnTrack_yMean.gif", 0,
Condition,
"", Start, End, nRuns ));
53 config.push_back(Trend(
"0@ntracks_generalTracks@NTracksPixOverAll",
"NTracksPixOverAll.gif", 0,
Condition,
"", Start, End, nRuns ));
54 config.push_back(Trend(
"0@ntracks_generalTracks@NTracksFPixOverBPix",
"NTracksFPixOverBPix.gif", 0,
Condition,
"", Start, End, nRuns ));
56 config.push_back(Trend(
"0@bigEventRate@yMean",
"bigEventRate_yMean.gif", 0,
Condition,
"", Start, End, nRuns ));
57 config.push_back(Trend(
"0@bigFpixClusterEventRate@yMean",
"bigFpixClusterEventRate_yMean.gif", 0,
Condition,
"", Start, End, nRuns ));
58 config.push_back(Trend(
"0@pixEventRate@yMean",
"pixEventRate_yMean.gif", 0,
Condition,
"", Start, End, nRuns ));
61 for_each(config.begin(), config.end(), makeTrend);
83 gSystem->Load(
"libFWCoreFWLite" );
86 if (argc != 6 && argc != 7) {
87 cerr <<
"Usage: " << argv[0] <<
" [Database] [TagName] [Password] [WhiteListFile] [NRuns] " << endl;
88 cerr <<
"Or: " << argv[0] <<
" [Database] [TagName] [Password] [WhiteListFile] [FirstRun] [LastRun] " << endl;
93 cout <<
"Creating trends for NRuns = " << argv[5] <<
" for tag: " << argv[2] << endl;
95 }
else if(argc == 7) {
96 cout <<
"Creating trends for range: " << argv[5] <<
" " << argv[6] <<
" for tag: " << argv[2] << endl;
void runSiPixelInspector(const string &dbName, const string &tagName, const string &Password, const string &whiteListFile, const int Start, const int End, const int nRuns)
tuple start
Check for commandline option errors.
void setWhiteListFromFile(const std::string &listFileName)
void setDebug(const int i)
int main(int argc, char **argv)
void setSkip99s(bool const in)
void setDB(std::string dbName, std::string dbTag, std::string authPath="")
void SiPixelHDQMInspector(const string &dbName, const string &tagName, const string &password, const std::string &whiteListFile, const int start, const int end)
Simple method to create the trends. The actual operations are performed in runSiPixelInspector.
void setBlackList(const std::string &listItems)
static void enable()
enable automatic library loading
void setDoStat(const int i)