704 vector<int>IOVlist={290543, 296702, 296966, 297224, 297281, 297429, 297467, 297484, 297494, 297503, 297557, 297599, 297620, 297660, 297670, 298678, 298996, 299062, 299096, 299184, 299327, 299368, 299381, 299443, 299480, 299592, 299594, 299649, 300087, 300155, 300233, 300237, 300280, 300364, 300389, 300399, 300459, 300497, 300515, 300538, 300551, 300574, 300636, 300673, 300780, 300806, 300812, 301046, 301417, 302131, 302573, 302635, 303825, 303998, 304170, 304505, 304672, 305040, 305081};
706 vector<int> pixelupdateruns {290543, 297281, 298653, 299443, 300389, 302131, 303790, 304911, 305898};
708 cout <<
"WARNING: Running function with arguments specified in DMRtrends.cc" << endl <<
"If you want to specify the arguments from command line run the macro as follows:" << endl <<
"DMRtrends labels pathtoDMRs geometriesandcolourspairs outputdirectory showpixelupdate showlumi FORCE" << endl;
711 DMRtrends(IOVlist,{
"vUL17",
"MB"},
"2017",
"/afs/cern.ch/cms/CAF/CMSALCA/ALCA_TRACKERALIGN/data/commonValidation/results/acardini/DMRs/EOY17/", {
"EOY17",
"full ML pixel + strip",
"SG-mp2607",
"mp2993"}, {kRed, kBlack, kBlue, kGreen},
"/afs/cern.ch/cms/CAF/CMSALCA/ALCA_TRACKERALIGN/data/commonValidation/alignmentObjects/acardini/DMRsTrends/",
true, pixelupdateruns,
true,
true);
716 else if (
argc < 11) {
717 cout <<
"DMRtrends IOVlist labels Year pathtoDMRs geometriesandcolourspairs outputdirectory pixelupdatelist showpixelupdate showlumi FORCE" << endl;
723 all_labels =
argv[2],
725 pathtoDMRs =
argv[4],
726 geometrieandcolours =
argv[5],
727 outputdirectory =
argv[6],
728 pixelupdatelist =
argv[7];
729 bool showpixelupdate =
argv[8],
732 TObjArray *labelarray = all_labels.Tokenize(
",");
734 for(
int i=0;
i < labelarray->GetEntries();
i++)labels.push_back((
string)(labelarray->At(
i)->GetName()));
735 TObjArray *IOVarray = runlist.Tokenize(
",");
737 for(
int i=0;
i < IOVarray->GetEntries();
i++)IOVlist.push_back(stoi(IOVarray->At(
i)->GetName()));
738 vector<int> pixelupdateruns;
739 TObjArray *PIXarray = pixelupdatelist.Tokenize(
",");
740 for(
int i=0;
i < PIXarray->GetEntries();
i++)pixelupdateruns.push_back(stoi(PIXarray->At(
i)->GetName()));
741 vector<string> geometries;
742 vector<Color_t> colours;
743 TObjArray *geometrieandcolourspairs = geometrieandcolours.Tokenize(
",");
744 for (
int i=0;
i < geometrieandcolourspairs->GetEntries();
i++) {
745 TObjArray *geomandcolourvec = TString(geometrieandcolourspairs->At(
i)->GetName()).Tokenize(
":");
746 geometries.push_back(geomandcolourvec->At(0)->GetName());
747 colours.push_back((Color_t)(atoi(geomandcolourvec->At(1)->GetName())));
749 DMRtrends(IOVlist,labels,Year,pathtoDMRs.Data(),geometries,colours,outputdirectory.Data(),showpixelupdate, pixelupdateruns,showlumi,FORCE);
void DMRtrends(vector< int > IOVlist, vector< string >labels={"MB"}, TString Year="2018", string myValidation="/afs/cern.ch/cms/CAF/CMSALCA/ALCA_TRACKERALIGN/data/commonValidation/results/acardini/DMRs/", vector< string > geometries={"GT","SG","MP pix LBL","PIX HLS+ML STR fix"}, vector< Color_t > colours={kBlue, kRed, kGreen, kCyan}, TString outputdir="/afs/cern.ch/cms/CAF/CMSALCA/ALCA_TRACKERALIGN/data/commonValidation/alignmentObjects/acardini/DMRsTrends/", bool pixelupdate=false, vector< int > pixelupdateruns={314881, 316758, 317527, 318228, 320377}, bool showlumi=false, bool FORCE=false)