--- quicklook/tracker/flight/macros/FTrkQLook_BASIC.cxx 2006/06/08 17:03:57 1.7 +++ quicklook/tracker/flight/macros/FTrkQLook_BASIC.cxx 2006/07/02 17:41:14 1.9 @@ -1,8 +1,8 @@ /** - * FTrkQLook_BASIC.cpp + * FTrkQLook_BASIC.cxx * * autor: D.Fedele - * version 3.0 + * version v1r05 * Parameters: * file - the data file to analyze * fromevent - first event to analyze @@ -17,6 +17,7 @@ #include #include #include +#include #include #include // @@ -29,30 +30,15 @@ // #define MAXSTORAGE 50000 -void stringcopy(TString& s1, const TString& s2, Int_t from=0, Int_t to=0){ - if ( to == 0 ){ - Int_t t2length = s2.Length(); - s1 = ""; - to = t2length; - }; - for (Int_t i = from; i0) base+="/"; + ffile=file(dwpos+1,dwpos1-(dwpos+1)); + if(dwpos>0) base=file(0,dwpos); TString out; if(outdir.Length()==0){ @@ -60,6 +46,7 @@ }else{ out = outdir; } + if(out.Last('/')+1GetYaxis()->SetRangeUser(0,4000); dataletime[i][ii]->SetMarkerStyle(21); if((maxev-minev)<50) dataletime[i][ii]->SetMarkerSize(0.5); - else dataletime[i][ii]->SetMarkerSize(0.3); + else dataletime[i][ii]->SetMarkerSize(0.1); dataletime[i][ii]->SetMarkerColor(4); dataletime[i][ii]->Draw("ap"); @@ -396,7 +383,7 @@ dataletime1[i][ii]= new TGraph(countbad[i],xb,yb); dataletime1[i][ii]->SetMarkerStyle(21); if((maxev-minev)<50) dataletime1[i][ii]->SetMarkerSize(0.5); - else dataletime1[i][ii]->SetMarkerSize(0.3); + else dataletime1[i][ii]->SetMarkerSize(0.1); dataletime1[i][ii]->SetMarkerColor(2); dataletime1[i][ii]->Draw("psame"); } @@ -404,7 +391,7 @@ dataletime1[i][ii]= new TGraph(countbad[i],xb,yb); dataletime1[i][ii]->SetMarkerStyle(21); if((maxev-minev)<50) dataletime1[i][ii]->SetMarkerSize(0.5); - else dataletime1[i][ii]->SetMarkerSize(0.3); + else dataletime1[i][ii]->SetMarkerSize(0.1); dataletime1[i][ii]->SetMarkerColor(2); dataletime1[i][ii]->Draw("psame"); }