X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=T0%2FAliT0CalibTimeEq.cxx;h=5cb2f59827e0c34d47b3f6fe2a5535285c7c35b6;hb=f0a991bf1d7dfab877da8e7066125203ce6256cc;hp=a8493dee6c32358542f13b5ae1d1dabb6b097b00;hpb=370867d2cb3797636179a8361c747878573b6f0b;p=u%2Fmrichter%2FAliRoot.git diff --git a/T0/AliT0CalibTimeEq.cxx b/T0/AliT0CalibTimeEq.cxx index a8493dee6c3..5cb2f59827e 100644 --- a/T0/AliT0CalibTimeEq.cxx +++ b/T0/AliT0CalibTimeEq.cxx @@ -114,7 +114,7 @@ Bool_t AliT0CalibTimeEq::ComputeOnlineParams(const char* filePhys) Int_t nent=0; Bool_t ok=false; Int_t npeaks = 20; - Int_t sigma=3.; + Int_t sigma=3; Bool_t down=false; Int_t index[20]; Int_t nfound=0; @@ -124,7 +124,7 @@ Bool_t AliT0CalibTimeEq::ComputeOnlineParams(const char* filePhys) } else { - gFile->ls(); + // gFile->ls(); ok=true; Char_t buf1[30]; for (Int_t i=0; i<24; i++) @@ -142,14 +142,21 @@ Bool_t AliT0CalibTimeEq::ComputeOnlineParams(const char* filePhys) Float_t xp = xpeak[index[0]]; Double_t hmax = xp+3*sigma; Double_t hmin = xp-3*sigma; - cfd->GetXaxis()->SetRangeUser(hmin-3,hmax+3); + cfd->GetXaxis()->SetRangeUser(hmin-20,hmax+20); mean=cfd->GetMean(); rms=cfd->GetRMS(); nent=cfd->GetEntries(); - if(nent<500 || rms>5 ) ok=false; + if(nent<500 || rms>20. ) { + ok=false; + AliWarning(Form("Data is not good enouph in PMT %i - mean %f rsm %f nentries %i", i,mean, rms, nent)); + + } } else - ok=false; + { + ok=false; + AliWarning(Form("Data is not good enouph in PMT %i , no clean peak", i)); + } } @@ -158,7 +165,7 @@ Bool_t AliT0CalibTimeEq::ComputeOnlineParams(const char* filePhys) if (cfd) delete cfd; } TH1F *ver = (TH1F*) gFile->Get("hVertex"); - if(!ver) AliWarning("no Vertex histograms collected by PHYS DA for Zvertex"); + if(!ver) AliWarning("no T0 histogram collected by PHYS DA "); if(ver) { meanver = ver->GetMean(); rmsver = ver->GetRMS();