]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
fix mistyping
authoralla <alla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 31 Oct 2011 14:00:45 +0000 (14:00 +0000)
committeralla <alla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 31 Oct 2011 14:00:45 +0000 (14:00 +0000)
T0/AliT0CalibTimeEq.cxx

index 1baad64f77380f8113339d56c200f10afbc1e863..dc1ab648a3d743400d9f5a38a88e493b7ad0d908 100644 (file)
@@ -101,8 +101,8 @@ void  AliT0CalibTimeEq::Print(Option_t*) const
 
   printf("\n   ----    PM Arrays       ----\n\n");
   printf(" Time delay CFD \n");
-  for (Int_t i=0; i<24; i++) printf(" CFD  %f ",fTimeEq[i]);
-  printf("\n Mean Vertex %f \n", fMeanVertex);
+  for (Int_t i=0; i<24; i++) 
+    printf(" CFD  %f diff %f  \n",fCFDvalue[i][0],fTimeEq[i]);
 } 
 
 
@@ -151,14 +151,18 @@ Bool_t AliT0CalibTimeEq::ComputeOnlineParams(const char* filePhys)
          }
          if(cfd) {
            nent = Int_t(cfd->GetEntries());
-           if( nent<=50 || cfd->GetRMS() == 0 || cfd->GetMean() ) {
+           if( nent<=50) {
              okdiff++;
+             //              printf(" pmt %i nent %i cfd->GetRMS() %f cfd->GetMean() %f \n",
+             //     i, nent, cfd->GetRMS(), cfd->GetMean() );
              if(okdiff<4) {
                meandiff = 0;
                sigmadiff = 0;
              }
              else
                {
+                 // printf(" OK fsle:: pmt %i nent %i cfd->GetRMS() %f cfd->GetMean() %f \n",
+                 // i, nent, cfd->GetRMS(), cfd->GetMean() );
                  AliWarning(Form(" Not  enouph data in PMT %i- PMT1:  %i ", i, nent));
                  ok = false; 
                }
@@ -179,7 +183,7 @@ Bool_t AliT0CalibTimeEq::ComputeOnlineParams(const char* filePhys)
          
          if(cfdtime) {
            nent = Int_t(cfdtime->GetEntries());
-           if( nent<=50 || cfdtime->GetRMS() == 0 || cfdtime->GetMean() ) {
+           if( nent<=50 ) {
              oktime++;
              if(oktime<4) {
                meancfdtime = 0;
@@ -190,11 +194,14 @@ Bool_t AliT0CalibTimeEq::ComputeOnlineParams(const char* filePhys)
                  ok = false; 
                }
            }
-           if(nent > 50 )  { //!!!!!!!!!!
+           if(nent > 50  )  { //!!!!!!!!!!
              if(cfdtime->GetRMS()>1.5 )
                GetMeanAndSigma(cfdtime,meancfdtime, sigmacfdtime);
              if(cfdtime->GetRMS()<=1.5) 
                {
+                 if(cfdtime->GetRMS()==0 ||cfdtime->GetMean()==0 ) {
+                   ok = false;
+                 }
                  meancfdtime = cfdtime->GetMean();
                  sigmacfdtime = cfdtime->GetRMS();
                }