1055 vector<int> IOVlist = {314881, 315257, 315488, 315489, 315506, 316239, 316271, 316361, 316363, 316378, 316456,
1056 316470, 316505, 316569, 316665, 316758, 317080, 317182, 317212, 317295, 317339, 317382,
1057 317438, 317527, 317661, 317664, 318712, 319337, 319460, 320841, 320854, 320856, 320888,
1058 320916, 320933, 320980, 321009, 321119, 321134, 321164, 321261, 321294, 321310, 321393,
1059 321397, 321431, 321461, 321710, 321735, 321773, 321774, 321778, 321820, 321831, 321880,
1060 321960, 322014, 322510, 322603, 323232, 323423, 323472, 323475, 323693, 323794, 323976,
1061 324202, 324206, 324245, 324729, 324764, 324840, 324999, 325097, 325110};
1062 vector<int> pixelupdateruns{316758, 317527, 317661, 317664, 318227, 320377};
1065 cout <<
"WARNING: Running function with arguments specified in DMRtrends.cc" << endl
1066 <<
"If you want to specify the arguments from command line run the macro as follows:" << endl
1067 <<
"DMRtrends labels pathtoDMRs geometriesandcolourspairs outputdirectory showpixelupdate showlumi FORCE" 1074 {
"median",
"DrmsNR"},
1077 "/afs/cern.ch/cms/CAF/CMSALCA/ALCA_TRACKERALIGN/data/commonValidation/results/adewit/UL18_DMR_MB_eoj_v3/",
1078 {
"1-step hybrid",
"mid18 rereco",
"counter twist"},
1079 {kBlue, kBlack, kGreen + 3},
1080 "/afs/cern.ch/user/a/acardini/commonValidation/results/acardini/DMRs/DMRTrends/test/",
1086 }
else if (
argc < 12) {
1087 cout <<
"DMRtrends IOVlist labels Year pathtoDMRs geometriesandcolourspairs outputdirectory pixelupdatelist " 1088 "showpixelupdate showlumi FORCE" 1094 TString runlist =
argv[1], all_variables =
argv[2], all_labels =
argv[3], Year =
argv[4], pathtoDMRs =
argv[5],
1095 geometrieandcolours =
argv[6],
1096 outputdirectory =
argv[7], pixelupdatelist =
argv[8];
1097 bool showpixelupdate =
argv[9], showlumi =
argv[10], FORCE =
argv[11];
1098 TObjArray *vararray = all_variables.Tokenize(
",");
1100 for (
int i = 0;
i < vararray->GetEntries();
i++)
1101 Variables.push_back((
string)(vararray->At(
i)->GetName()));
1102 TObjArray *labelarray = all_labels.Tokenize(
",");
1104 for (
int i = 0;
i < labelarray->GetEntries();
i++)
1105 labels.push_back((
string)(labelarray->At(
i)->GetName()));
1106 TObjArray *IOVarray = runlist.Tokenize(
",");
1107 vector<int> IOVlist;
1108 for (
int i = 0;
i < IOVarray->GetEntries();
i++)
1109 IOVlist.push_back(stoi(IOVarray->At(
i)->GetName()));
1110 vector<int> pixelupdateruns;
1111 TObjArray *PIXarray = pixelupdatelist.Tokenize(
",");
1112 for (
int i = 0;
i < PIXarray->GetEntries();
i++)
1113 pixelupdateruns.push_back(stoi(PIXarray->At(
i)->GetName()));
1114 vector<string> geometries;
1116 vector<Color_t> colours;
1117 TObjArray *geometrieandcolourspairs = geometrieandcolours.Tokenize(
",");
1118 for (
int i = 0;
i < geometrieandcolourspairs->GetEntries();
i++) {
1119 TObjArray *geomandcolourvec = TString(geometrieandcolourspairs->At(
i)->GetName()).Tokenize(
":");
1120 geometries.push_back(geomandcolourvec->At(0)->GetName());
1121 colours.push_back(ColorParser(geomandcolourvec->At(1)->GetName()));
1130 outputdirectory.Data(),
void DMRtrends(vector< int > IOVlist, vector< string > Variables={"median","DrmsNR"}, 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)