the same time delay as in CDB
authoralla <alla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 11 May 2006 13:47:18 +0000 (13:47 +0000)
committeralla <alla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 11 May 2006 13:47:18 +0000 (13:47 +0000)
START/AliSTARTParameters.cxx

index dec31bdadcc76d5e78a63d4a636073abdbd6aafd..62b6bc276ea3af943c869f0047f63f6dfbe83e6f 100644 (file)
@@ -92,6 +92,15 @@ AliSTARTParameters::Init()
   fCalibentry  = cdb->Get("START/Calib/Gain_TimeDelay_Slewing_Walk");
   if (fCalibentry){
    fgCalibData  = (AliSTARTCalibData*)fCalibentry->GetObject();
+   //<<<<<<< AliSTARTParameters.cxx
+         //   cout<<" got calibdata "<<endl;
+         //  }
+         //   fAlignentry     = cdb-> Get("START/Align/Positions");
+         //  if (fAlignentry){
+         //   fgAlignData  = (AliSTARTAlignData*) fAlignentry->GetObject();
+         //   cout<<" got align data "<<endl;
+         //=======
+         //>>>>>>> 1.5
   }
 
   fIsInit = kTRUE;
@@ -132,7 +141,8 @@ AliSTARTParameters::GetTimeDelayCFD(Int_t ipmt)
   if (!fCalibentry) 
     {
       fTimeDelayCFD = fTimeDelayCablesCFD[ipmt] + fTimeDelayElectronicCFD[ipmt] + fTimeDelayPMT[ipmt] + fVariableDelayLine[ipmt];
-      return fTimeDelayCFD;
+      
+      return fTimeDelayCFD+37;
     }
    
   return fgCalibData->GetTimeDelayCFD(ipmt);
@@ -178,6 +188,7 @@ TGraph *AliSTARTParameters::GetSlew(Int_t ipmt) const
 //__________________________________________________________________
 
 
+//<<<<<<< AliSTARTParameters.cxx
 void 
 AliSTARTParameters::SetSlewingRec(Int_t ipmt)
 {
@@ -191,7 +202,7 @@ AliSTARTParameters::SetSlewingRec(Int_t ipmt)
       Float_t y1[23], mv1[23];
       for (Int_t i=0; i<23; i++){
        y1[i] = y[22-i]; mv1[i] = mv[22-i];}
-
+      cout<<endl;
       TGraph* gr = new TGraph(23,y1,mv1);
       fSlewingRec.AddAtAndExpand(gr,ipmt);
 
@@ -216,12 +227,13 @@ TGraph *AliSTARTParameters::GetSlewRec(Int_t ipmt) const
   return fgCalibData -> GetSlewRec(ipmt) ;
 }
 
+//
 //__________________________________________________________________
 void 
 AliSTARTParameters::SetPMTeff(Int_t ipmt)
 {
   Float_t lambda[50];
-  Float_t eff[50 ] = {0,        0,       0.23619,  0.202909, 0.177913, 
+  Float_t eff[50] = {0,        0,       0.23619,  0.202909, 0.177913, 
                    0.175667, 0.17856, 0.190769, 0.206667, 0.230286,
                    0.252276, 0.256267,0.26,     0.27125,  0.281818,
                    0.288118, 0.294057,0.296222, 0.301622, 0.290421,