- Timestamp:
- 04/28/04 12:39:08 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/macros/CCDataCheck.C
r3830 r3866 37 37 //////////////////////////////////////////////////////////////////////////// 38 38 39 void CCDataCheck(const TString filename="CC_2004_0 2_11.root", const TString directory="../")39 void CCDataCheck(const TString filename="CC_2004_04_28.root", const TString directory="/home/raquel/") 40 40 { 41 41 … … 500 500 TGraph *g; 501 501 TH1 *hist; 502 TH1 *hist2; 502 503 TAxis *axey; 503 504 TAxis *axex; … … 743 744 clone1 = (MHVsTime*)hCamMean.DrawClone("nonewsame"); 744 745 legHV->DrawClone(); 745 746 // ---------------------------- HV status ----------------------------------- 746 747 c3->cd(2); 747 748 g = hHVStatus.GetGraph(); … … 1108 1109 g->SetMarkerColor(2); 1109 1110 g->SetLineColor(2); 1110 legtrig->AddEntry(g,Form("Mc 1: %3.0e",g->GetHistogram()->GetMaximum()),"p");1111 1111 g->SetTitle("Trigger rate of macrocell 1 : (maximum)"); 1112 //pixclone1 = (MHPixVsTime*)htrigmc1.DrawClone("nonew");1112 pixclone1 = (MHPixVsTime*)htrigmc1.DrawClone("nonew"); 1113 1113 if(clone1->GetGraph()->GetN()) 1114 1114 { … … 1123 1123 hist->SetLabelSize(0.05,"Y"); 1124 1124 } 1125 hist.DrawClone("nonew");1125 legtrig->AddEntry(hist,Form("Mc 1: %3.0e",hist->GetMaximum()),"p"); 1126 1126 legtrig->DrawClone(); 1127 1127 c8->cd(2); … … 1131 1131 g->SetMarkerStyle(kFullDotSmall); 1132 1132 g->SetMarkerColor(2); 1133 legtrig->AddEntry(g,Form("Mc 2: %3.0e",g->GetHistogram()->GetMaximum()),"p");1134 1133 g->SetTitle("Trigger rate of macrocells 2-7 : (maximum)"); 1135 1134 pixclone1 = (MHPixVsTime*)htrigmc2.DrawClone("nonew"); … … 1146 1145 hist->SetLabelSize(0.05,"Y"); 1147 1146 } 1147 legtrig->AddEntry(hist,Form("Mc 2: %3.0e",hist->GetMaximum()),"p"); 1148 1148 g=htrigmc3.GetGraph(); 1149 1149 g->SetMarkerStyle(kFullDotSmall); 1150 1150 g->SetMarkerColor(3); 1151 legtrig->AddEntry(g,Form("Mc 3: %3.0e",g->GetHistogram()->GetMaximum()),"p"); 1152 if(hist->GetMaximum()<g->GetHistogram()->GetMaximum()) 1153 hist->SetMaximum(g->GetHistogram()->GetMaximum()); 1151 if(htrigmc3.GetGraph()->GetN()) 1152 { 1153 if(hist->GetMaximum()<g->GetHistogram()->GetMaximum()) 1154 hist->SetMaximum(g->GetHistogram()->GetMaximum()); 1155 legtrig->AddEntry(g,Form("Mc 3: %3.0e",g->GetHistogram()->GetMaximum()),"p"); 1156 } 1154 1157 pixclone1 = (MHPixVsTime*)htrigmc3.DrawClone("nonewsame"); 1155 1158 g=htrigmc4.GetGraph(); 1156 1159 g->SetMarkerStyle(kFullDotSmall); 1157 1160 g->SetMarkerColor(4); 1158 legtrig->AddEntry(g,Form("Mc 4: %3.0e",g->GetHistogram()->GetMaximum()),"p"); 1159 if(hist->GetMaximum()<g->GetHistogram()->GetMaximum()) 1160 hist->SetMaximum(g->GetHistogram()->GetMaximum()); 1161 if(htrigmc4.GetGraph()->GetN()) 1162 { 1163 if(hist->GetMaximum()<g->GetHistogram()->GetMaximum()) 1164 hist->SetMaximum(g->GetHistogram()->GetMaximum()); 1165 legtrig->AddEntry(g,Form("Mc 4: %3.0e",g->GetHistogram()->GetMaximum()),"p"); 1166 } 1161 1167 pixclone1 = (MHPixVsTime*)htrigmc4.DrawClone("nonewsame"); 1162 1168 g=htrigmc5.GetGraph(); 1163 1169 g->SetMarkerStyle(kFullDotSmall); 1164 1170 g->SetMarkerColor(5); 1165 legtrig->AddEntry(g,Form("Mc 5: %3.0e",g->GetHistogram()->GetMaximum()),"p"); 1166 if(hist->GetMaximum()<g->GetHistogram()->GetMaximum()) 1167 hist->SetMaximum(g->GetHistogram()->GetMaximum()); 1171 if(htrigmc5.GetGraph()->GetN()) 1172 { 1173 legtrig->AddEntry(g,Form("Mc 5: %3.0e",g->GetHistogram()->GetMaximum()),"p"); 1174 if(hist->GetMaximum()<g->GetHistogram()->GetMaximum()) 1175 hist->SetMaximum(g->GetHistogram()->GetMaximum()); 1176 } 1168 1177 pixclone1 = (MHPixVsTime*)htrigmc5.DrawClone("nonewsame"); 1169 1178 g=htrigmc6.GetGraph(); 1170 1179 g->SetMarkerStyle(kFullDotSmall); 1171 1180 g->SetMarkerColor(6); 1172 legtrig->AddEntry(g,Form("Mc 6: %3.0e",g->GetHistogram()->GetMaximum()),"p"); 1173 if(hist->GetMaximum()<g->GetHistogram()->GetMaximum()) 1174 hist->SetMaximum(g->GetHistogram()->GetMaximum()); 1181 if(htrigmc6.GetGraph()->GetN()) 1182 { 1183 legtrig->AddEntry(g,Form("Mc 6: %3.0e",g->GetHistogram()->GetMaximum()),"p"); 1184 if(hist->GetMaximum()<g->GetHistogram()->GetMaximum()) 1185 hist->SetMaximum(g->GetHistogram()->GetMaximum()); 1186 } 1175 1187 pixclone1 = (MHPixVsTime*)htrigmc6.DrawClone("nonewsame"); 1176 1188 g=htrigmc7.GetGraph(); 1177 1189 g->SetMarkerStyle(kFullDotSmall); 1178 1190 g->SetMarkerColor(7); 1179 legtrig->AddEntry(g,Form("Mc 7: %3.0e",g->GetHistogram()->GetMaximum()),"p"); 1180 if(hist->GetMaximum()<g->GetHistogram()->GetMaximum()) 1181 hist->SetMaximum(g->GetHistogram()->GetMaximum()); 1191 if(htrigmc7.GetGraph()->GetN()) 1192 { 1193 legtrig->AddEntry(g,Form("Mc 7: %3.0e",g->GetHistogram()->GetMaximum()),"p"); 1194 if(hist->GetMaximum()<g->GetHistogram()->GetMaximum()) 1195 hist->SetMaximum(g->GetHistogram()->GetMaximum()); 1196 } 1182 1197 pixclone1 = (MHPixVsTime*)htrigmc7.DrawClone("nonewsame"); 1183 1198 legtrig->DrawClone(); … … 1188 1203 g->SetMarkerStyle(kFullDotSmall); 1189 1204 g->SetMarkerColor(2); 1190 legtrig->AddEntry(g,Form("Mc 8: %3.0e",g->GetHistogram()->GetMaximum()),"p");1191 1205 g->SetTitle("Trigger rate of macrocells 8-13 : (maximum)"); 1192 if(hist->GetMaximum()<g->GetHistogram()->GetMaximum()) 1193 hist->SetMaximum(g->GetHistogram()->GetMaximum()); 1206 if(htrigmc8.GetGraph()->GetN()) 1207 { 1208 legtrig->AddEntry(g,Form("Mc 8: %3.0e",g->GetHistogram()->GetMaximum()),"p"); 1209 if(hist->GetMaximum()<g->GetHistogram()->GetMaximum()) 1210 hist->SetMaximum(g->GetHistogram()->GetMaximum()); 1211 } 1194 1212 pixclone1 = (MHPixVsTime*)htrigmc8.DrawClone("nonew"); 1195 1213 if(clone1->GetGraph()->GetN()) 1196 1214 { 1197 1215 hist = pixclone1->GetGraph()->GetHistogram(); 1198 1216 if(hist->GetMaximum()<g->GetHistogram()->GetMaximum()) 1199 1217 hist->SetMaximum(g->GetHistogram()->GetMaximum()); … … 1208 1226 g->SetMarkerStyle(kFullDotSmall); 1209 1227 g->SetMarkerColor(3); 1210 legtrig->AddEntry(g,Form("Mc 9: %3.0e",g->GetHistogram()->GetMaximum()),"p"); 1211 if(hist->GetMaximum()<g->GetHistogram()->GetMaximum()) 1212 hist->SetMaximum(g->GetHistogram()->GetMaximum()); 1228 if(htrigmc9.GetGraph()->GetN()) 1229 { 1230 legtrig->AddEntry(g,Form("Mc 9: %3.0e",g->GetHistogram()->GetMaximum()),"p"); 1231 if(hist->GetMaximum()<g->GetHistogram()->GetMaximum()) 1232 hist->SetMaximum(g->GetHistogram()->GetMaximum()); 1233 } 1213 1234 pixclone1 = (MHPixVsTime*)htrigmc9.DrawClone("nonewsame"); 1214 1235 g=htrigmc10.GetGraph(); 1215 1236 g->SetMarkerStyle(kFullDotSmall); 1216 1237 g->SetMarkerColor(4); 1217 legtrig->AddEntry(g,Form("Mc 10: %3.0e",g->GetHistogram()->GetMaximum()),"p"); 1218 if(hist->GetMaximum()<g->GetHistogram()->GetMaximum()) 1219 hist->SetMaximum(g->GetHistogram()->GetMaximum()); 1238 if(htrigmc10.GetGraph()->GetN()) 1239 { 1240 legtrig->AddEntry(g,Form("Mc 10: %3.0e",g->GetHistogram()->GetMaximum()),"p"); 1241 if(hist->GetMaximum()<g->GetHistogram()->GetMaximum()) 1242 hist->SetMaximum(g->GetHistogram()->GetMaximum()); 1243 } 1220 1244 pixclone1 = (MHPixVsTime*)htrigmc10.DrawClone("nonewsame"); 1221 1245 g=htrigmc11.GetGraph(); 1222 1246 g->SetMarkerStyle(kFullDotSmall); 1223 1247 g->SetMarkerColor(5); 1224 legtrig->AddEntry(g,Form("Mc 11: %3.0e",g->GetHistogram()->GetMaximum()),"p"); 1225 if(hist->GetMaximum()<g->GetHistogram()->GetMaximum()) 1226 hist->SetMaximum(g->GetHistogram()->GetMaximum()); 1248 if(htrigmc11.GetGraph()->GetN()) 1249 { 1250 legtrig->AddEntry(g,Form("Mc 11: %3.0e",g->GetHistogram()->GetMaximum()),"p"); 1251 if(hist->GetMaximum()<g->GetHistogram()->GetMaximum()) 1252 hist->SetMaximum(g->GetHistogram()->GetMaximum()); 1253 } 1227 1254 pixclone1 = (MHPixVsTime*)htrigmc11.DrawClone("nonewsame"); 1228 1255 g=htrigmc12.GetGraph(); 1229 1256 g->SetMarkerStyle(kFullDotSmall); 1230 1257 g->SetMarkerColor(6); 1231 legtrig->AddEntry(g,Form("Mc 12: %3.0e",g->GetHistogram()->GetMaximum()),"p"); 1258 if(htrigmc12.GetGraph()->GetN()) 1259 { 1260 legtrig->AddEntry(g,Form("Mc 12: %3.0e",g->GetHistogram()->GetMaximum()),"p"); 1261 if(hist->GetMaximum()<g->GetHistogram()->GetMaximum()) 1262 hist->SetMaximum(g->GetHistogram()->GetMaximum()); 1263 } 1232 1264 pixclone1 = (MHPixVsTime*)htrigmc12.DrawClone("nonewsame"); 1233 1265 g=htrigmc13.GetGraph(); 1234 1266 g->SetMarkerStyle(kFullDotSmall); 1235 1267 g->SetMarkerColor(7); 1236 legtrig->AddEntry(g,Form("Mc 13: %3.0e",g->GetHistogram()->GetMaximum()),"p"); 1237 if(hist->GetMaximum()<g->GetHistogram()->GetMaximum()) 1238 hist->SetMaximum(g->GetHistogram()->GetMaximum()); 1268 if(htrigmc13.GetGraph()->GetN()) 1269 { 1270 legtrig->AddEntry(g,Form("Mc 13: %3.0e",g->GetHistogram()->GetMaximum()),"p"); 1271 if(hist->GetMaximum()<g->GetHistogram()->GetMaximum()) 1272 hist->SetMaximum(g->GetHistogram()->GetMaximum()); 1273 } 1239 1274 pixclone1 = (MHPixVsTime*)htrigmc13.DrawClone("nonewsame"); 1240 1275 legtrig->DrawClone(); … … 1245 1280 g->SetMarkerStyle(kFullDotSmall); 1246 1281 g->SetMarkerColor(2); 1247 legtrig->AddEntry(g,Form("Mc 14: %3.0e",g->GetHistogram()->GetMaximum()),"p"); 1282 if(htrigmc14.GetGraph()->GetN()) 1283 legtrig->AddEntry(g,Form("Mc 14: %3.0e",g->GetHistogram()->GetMaximum()),"p"); 1248 1284 g->SetTitle("Trigger rate of macrocells 14-19 : (maximum)"); 1249 1285 pixclone1 = (MHPixVsTime*)htrigmc14.DrawClone("nonew"); … … 1263 1299 g->SetMarkerStyle(kFullDotSmall); 1264 1300 g->SetMarkerColor(3); 1265 legtrig->AddEntry(g,Form("Mc 15: %3.0e",g->GetHistogram()->GetMaximum()),"p"); 1266 if(hist->GetMaximum()<g->GetHistogram()->GetMaximum()) 1267 hist->SetMaximum(g->GetHistogram()->GetMaximum()); 1301 if(htrigmc15.GetGraph()->GetN()) 1302 { 1303 legtrig->AddEntry(g,Form("Mc 15: %3.0e",g->GetHistogram()->GetMaximum()),"p"); 1304 if(hist->GetMaximum()<g->GetHistogram()->GetMaximum()) 1305 hist->SetMaximum(g->GetHistogram()->GetMaximum()); 1306 } 1268 1307 pixclone1 = (MHPixVsTime*)htrigmc15.DrawClone("nonewsame"); 1269 1308 g=htrigmc16.GetGraph(); 1270 1309 g->SetMarkerStyle(kFullDotSmall); 1271 1310 g->SetMarkerColor(4); 1272 legtrig->AddEntry(g,Form("Mc 16: %3.0e",g->GetHistogram()->GetMaximum()),"p"); 1273 if(hist->GetMaximum()<g->GetHistogram()->GetMaximum()) 1274 hist->SetMaximum(g->GetHistogram()->GetMaximum()); 1311 if(htrigmc16.GetGraph()->GetN()) 1312 { 1313 legtrig->AddEntry(g,Form("Mc 16: %3.0e",g->GetHistogram()->GetMaximum()),"p"); 1314 if(hist->GetMaximum()<g->GetHistogram()->GetMaximum()) 1315 hist->SetMaximum(g->GetHistogram()->GetMaximum()); 1316 } 1275 1317 pixclone1 = (MHPixVsTime*)htrigmc16.DrawClone("nonewsame"); 1276 1318 g=htrigmc17.GetGraph(); 1277 1319 g->SetMarkerStyle(kFullDotSmall); 1278 1320 g->SetMarkerColor(5); 1279 legtrig->AddEntry(g,Form("Mc 17: %3.0e",g->GetHistogram()->GetMaximum()),"p"); 1280 if(hist->GetMaximum()<g->GetHistogram()->GetMaximum()) 1281 hist->SetMaximum(g->GetHistogram()->GetMaximum()); 1321 if(htrigmc17.GetGraph()->GetN()) 1322 { 1323 legtrig->AddEntry(g,Form("Mc 17: %3.0e",g->GetHistogram()->GetMaximum()),"p"); 1324 if(hist->GetMaximum()<g->GetHistogram()->GetMaximum()) 1325 hist->SetMaximum(g->GetHistogram()->GetMaximum()); 1326 } 1282 1327 pixclone1 = (MHPixVsTime*)htrigmc17.DrawClone("nonewsame"); 1283 1328 g=htrigmc18.GetGraph(); 1284 1329 g->SetMarkerStyle(kFullDotSmall); 1285 1330 g->SetMarkerColor(6); 1286 legtrig->AddEntry(g,Form("Mc 18: %3.0e",g->GetHistogram()->GetMaximum()),"p"); 1287 if(hist->GetMaximum()<g->GetHistogram()->GetMaximum()) 1288 hist->SetMaximum(g->GetHistogram()->GetMaximum()); 1331 if(htrigmc18.GetGraph()->GetN()) 1332 { 1333 legtrig->AddEntry(g,Form("Mc 18: %3.0e",g->GetHistogram()->GetMaximum()),"p"); 1334 if(hist->GetMaximum()<g->GetHistogram()->GetMaximum()) 1335 hist->SetMaximum(g->GetHistogram()->GetMaximum()); 1336 } 1289 1337 pixclone1 = (MHPixVsTime*)htrigmc18.DrawClone("nonewsame"); 1290 1338 g=htrigmc19.GetGraph(); 1291 1339 g->SetMarkerStyle(kFullDotSmall); 1292 1340 g->SetMarkerColor(7); 1293 legtrig->AddEntry(g,Form("Mc 19: %3.0e",g->GetHistogram()->GetMaximum()),"p"); 1294 if(hist->GetMaximum()<g->GetHistogram()->GetMaximum()) 1295 hist->SetMaximum(g->GetHistogram()->GetMaximum()); 1341 if(htrigmc19.GetGraph()->GetN()) 1342 { 1343 legtrig->AddEntry(g,Form("Mc 19: %3.0e",g->GetHistogram()->GetMaximum()),"p"); 1344 if(hist->GetMaximum()<g->GetHistogram()->GetMaximum()) 1345 hist->SetMaximum(g->GetHistogram()->GetMaximum()); 1346 } 1296 1347 pixclone1 = (MHPixVsTime*)htrigmc19.DrawClone("nonewsame"); 1297 1348 legtrig->DrawClone(); … … 1319 1370 hist->SetXTitle("Time"); 1320 1371 hist->SetYTitle("Humidity [%]"); 1321 hist->SetLabelSize(0.05,"X");1322 1372 } 1323 1373 // -------------------------- Temperature -----------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.