Changeset 3866 for trunk


Ignore:
Timestamp:
04/28/04 12:39:08 (21 years ago)
Author:
reyes
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/macros/CCDataCheck.C

    r3830 r3866  
    3737////////////////////////////////////////////////////////////////////////////
    3838
    39 void CCDataCheck(const TString filename="CC_2004_02_11.root", const TString directory="../")
     39void CCDataCheck(const TString filename="CC_2004_04_28.root", const TString directory="/home/raquel/")
    4040{
    4141
     
    500500  TGraph *g;
    501501  TH1 *hist;
     502  TH1 *hist2;
    502503  TAxis *axey;
    503504  TAxis *axex;
     
    743744  clone1 = (MHVsTime*)hCamMean.DrawClone("nonewsame");
    744745  legHV->DrawClone();
    745   // ---------------------------- HV status -----------------------------------
     746 // ---------------------------- HV status -----------------------------------
    746747  c3->cd(2);
    747748  g = hHVStatus.GetGraph();
     
    11081109  g->SetMarkerColor(2);
    11091110  g->SetLineColor(2);
    1110   legtrig->AddEntry(g,Form("Mc 1: %3.0e",g->GetHistogram()->GetMaximum()),"p");
    11111111  g->SetTitle("Trigger rate of macrocell 1 : (maximum)");
    1112 //    pixclone1 = (MHPixVsTime*)htrigmc1.DrawClone("nonew");
     1112  pixclone1 = (MHPixVsTime*)htrigmc1.DrawClone("nonew");
    11131113  if(clone1->GetGraph()->GetN())
    11141114    {
     
    11231123      hist->SetLabelSize(0.05,"Y");
    11241124    }
    1125   hist.DrawClone("nonew");
     1125  legtrig->AddEntry(hist,Form("Mc 1: %3.0e",hist->GetMaximum()),"p");
    11261126  legtrig->DrawClone();
    11271127  c8->cd(2);
     
    11311131  g->SetMarkerStyle(kFullDotSmall);
    11321132  g->SetMarkerColor(2);
    1133   legtrig->AddEntry(g,Form("Mc 2: %3.0e",g->GetHistogram()->GetMaximum()),"p");
    11341133  g->SetTitle("Trigger rate of macrocells 2-7 : (maximum)");
    11351134  pixclone1 = (MHPixVsTime*)htrigmc2.DrawClone("nonew");
     
    11461145      hist->SetLabelSize(0.05,"Y");
    11471146    }
     1147  legtrig->AddEntry(hist,Form("Mc 2: %3.0e",hist->GetMaximum()),"p");
    11481148  g=htrigmc3.GetGraph();
    11491149  g->SetMarkerStyle(kFullDotSmall);
    11501150  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  }
    11541157  pixclone1 = (MHPixVsTime*)htrigmc3.DrawClone("nonewsame");
    11551158  g=htrigmc4.GetGraph();
    11561159  g->SetMarkerStyle(kFullDotSmall);
    11571160  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  }
    11611167  pixclone1 = (MHPixVsTime*)htrigmc4.DrawClone("nonewsame");
    11621168  g=htrigmc5.GetGraph();
    11631169  g->SetMarkerStyle(kFullDotSmall);
    11641170  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  }
    11681177  pixclone1 = (MHPixVsTime*)htrigmc5.DrawClone("nonewsame");
    11691178  g=htrigmc6.GetGraph();
    11701179  g->SetMarkerStyle(kFullDotSmall);
    11711180  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  }
    11751187  pixclone1 = (MHPixVsTime*)htrigmc6.DrawClone("nonewsame");
    11761188  g=htrigmc7.GetGraph();
    11771189  g->SetMarkerStyle(kFullDotSmall);
    11781190  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  }
    11821197  pixclone1 = (MHPixVsTime*)htrigmc7.DrawClone("nonewsame");
    11831198  legtrig->DrawClone();
     
    11881203  g->SetMarkerStyle(kFullDotSmall);
    11891204  g->SetMarkerColor(2);
    1190   legtrig->AddEntry(g,Form("Mc 8: %3.0e",g->GetHistogram()->GetMaximum()),"p");
    11911205  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  }
    11941212  pixclone1 = (MHPixVsTime*)htrigmc8.DrawClone("nonew");
    11951213  if(clone1->GetGraph()->GetN())
    11961214    {
    1197       hist = pixclone1->GetGraph()->GetHistogram();
     1215        hist = pixclone1->GetGraph()->GetHistogram();
    11981216      if(hist->GetMaximum()<g->GetHistogram()->GetMaximum())
    11991217        hist->SetMaximum(g->GetHistogram()->GetMaximum());
     
    12081226  g->SetMarkerStyle(kFullDotSmall);
    12091227  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  }
    12131234  pixclone1 = (MHPixVsTime*)htrigmc9.DrawClone("nonewsame");
    12141235  g=htrigmc10.GetGraph();
    12151236  g->SetMarkerStyle(kFullDotSmall);
    12161237  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  }
    12201244  pixclone1 = (MHPixVsTime*)htrigmc10.DrawClone("nonewsame");
    12211245  g=htrigmc11.GetGraph();
    12221246  g->SetMarkerStyle(kFullDotSmall);
    12231247  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  }
    12271254  pixclone1 = (MHPixVsTime*)htrigmc11.DrawClone("nonewsame");
    12281255  g=htrigmc12.GetGraph();
    12291256  g->SetMarkerStyle(kFullDotSmall);
    12301257  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  }
    12321264  pixclone1 = (MHPixVsTime*)htrigmc12.DrawClone("nonewsame");
    12331265  g=htrigmc13.GetGraph();
    12341266  g->SetMarkerStyle(kFullDotSmall);
    12351267  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  }
    12391274  pixclone1 = (MHPixVsTime*)htrigmc13.DrawClone("nonewsame");
    12401275  legtrig->DrawClone();
     
    12451280  g->SetMarkerStyle(kFullDotSmall);
    12461281  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");
    12481284  g->SetTitle("Trigger rate of macrocells 14-19 : (maximum)");
    12491285  pixclone1 = (MHPixVsTime*)htrigmc14.DrawClone("nonew");
     
    12631299  g->SetMarkerStyle(kFullDotSmall);
    12641300  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  }
    12681307  pixclone1 = (MHPixVsTime*)htrigmc15.DrawClone("nonewsame");
    12691308  g=htrigmc16.GetGraph();
    12701309  g->SetMarkerStyle(kFullDotSmall);
    12711310  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  }
    12751317  pixclone1 = (MHPixVsTime*)htrigmc16.DrawClone("nonewsame");
    12761318  g=htrigmc17.GetGraph();
    12771319  g->SetMarkerStyle(kFullDotSmall);
    12781320  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  }
    12821327  pixclone1 = (MHPixVsTime*)htrigmc17.DrawClone("nonewsame");
    12831328  g=htrigmc18.GetGraph();
    12841329  g->SetMarkerStyle(kFullDotSmall);
    12851330  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  }
    12891337  pixclone1 = (MHPixVsTime*)htrigmc18.DrawClone("nonewsame");
    12901338  g=htrigmc19.GetGraph();
    12911339  g->SetMarkerStyle(kFullDotSmall);
    12921340  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  }
    12961347  pixclone1 = (MHPixVsTime*)htrigmc19.DrawClone("nonewsame");
    12971348  legtrig->DrawClone();
     
    13191370      hist->SetXTitle("Time");
    13201371      hist->SetYTitle("Humidity [%]");
    1321       hist->SetLabelSize(0.05,"X");
    13221372    }
    13231373  // -------------------------- Temperature -----------------------------------
Note: See TracChangeset for help on using the changeset viewer.