19 const int Start,
const int End,
const int nRuns )
22 string siStripTracker =
"268435456";
24 string condition = siStripTracker+
"@Chi2oNDF_GenTk@entries > 100";
26 string blackList =
"109468";
31 vector<string> ItemsForIntegration;
38 ItemsForIntegration.push_back(
"Chi2oNDF_GenTk_entries");
39 ItemsForIntegration.push_back(
"NumberOfTracks_GenTk_entries");
45 makeTrend.
setDB(dbName,tagName,
"/afs/cern.ch/cms/DB/conddb");
58 config.push_back(Trend( siStripTracker+
"@Chi2oNDF_GenTk@mean",
"Chi2oNDF_GenTk_mean.gif", 0, condition,
"", Start, End, nRuns, 0, 50 ));
59 config.push_back(Trend( siStripTracker+
"@NumberOfTracks_GenTk@mean",
"NumberOfTracks_GenTk_mean.gif", 0, condition,
"", Start, End, nRuns ));
61 config.push_back(Trend( siStripTracker+
"@TrackPt_ImpactPoint_GenTk@mean",
"TrackPt_GenTk_mean.gif", 0, condition,
"", Start, End, nRuns, 0, 200 ));
62 config.push_back(Trend( siStripTracker+
"@TrackPx_ImpactPoint_GenTk@mean",
"TrackPx_GenTk_mean.gif", 0, condition,
"", Start, End, nRuns, -20, 20 ));
63 config.push_back(Trend( siStripTracker+
"@TrackPy_ImpactPoint_GenTk@mean",
"TrackPy_GenTk_mean.gif", 0, condition,
"", Start, End, nRuns, -100, 100 ));
64 config.push_back(Trend( siStripTracker+
"@TrackPz_ImpactPoint_GenTk@mean",
"TrackPz_GenTk_mean.gif", 0, condition,
"", Start, End, nRuns, -20, 20 ));
65 config.push_back(Trend( siStripTracker+
"@TrackPhi_ImpactPoint_GenTk@mean",
"TrackPhi_GenTk_mean.gif", 0, condition,
"", Start, End, nRuns ));
66 config.push_back(Trend( siStripTracker+
"@TrackEta_ImpactPoint_GenTk@mean",
"TrackEta_GenTk_mean.gif", 0, condition,
"", Start, End, nRuns ));
67 config.push_back(Trend( siStripTracker+
"@DistanceOfClosestApproach_GenTk@mean",
"DistanceOfClosestApproach_GenTk_mean.gif", 0, condition,
"", Start, End, nRuns, -15, 15 ));
69 config.push_back(Trend( siStripTracker+
"@Chi2oNDF_GenTk@entries",
"Chi2oNDF_GenTk_entries.gif", 0, condition,
"", Start, End, nRuns ));
70 config.push_back(Trend( siStripTracker+
"@NumberOfTracks_GenTk@entries",
"NumberOfTracks_GenTk_entries.gif", 0, condition,
"", Start, End, nRuns ));
191 for_each(config.begin(), config.end(), makeTrend);
211 gSystem->Load(
"libFWCoreFWLite" );
214 if (argc != 6 && argc != 7) {
215 std::cerr <<
"Usage: " << argv[0] <<
" [Database] [TagName] [Password] [WhiteListFile] [NRuns] " << std::endl;
216 std::cerr <<
"Or: " << argv[0] <<
" [Database] [TagName] [Password] [WhiteListFile] [FirstRun] [LastRun] " << std::endl;
221 std::cout <<
"Creating trends for NRuns = " << argv[5] <<
" for tag: " << argv[2] << std::endl;
223 }
else if(argc == 7) {
224 std::cout <<
"Creating trends for range: " << argv[5] <<
" " << argv[6] <<
" for tag: " << argv[1] << std::endl;
tuple start
Check for commandline option errors.
void setWhiteListFromFile(const std::string &listFileName)
void setDebug(const int i)
void TrackingHDQMInspector(const string &dbName, const string &tagName, const string &password, const string &whiteListFile, const int start, const int end)
void runTrackingInspector(const string &dbName, const string &tagName, const string &Password, const string &whiteListFile, const int Start, const int End, const int nRuns)
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 ...
int main(int argc, char **argv)
void setSkip99s(bool const in)
void setDB(std::string dbName, std::string dbTag, std::string authPath="")
static void enable()
enable automatic library loading
void setBlackList(const std::string &listItems)
void setDoStat(const int i)