]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
The LHC clock phase stored also in the Raw2SDigits method. Temporary solution
authorkowal2 <kowal2@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 23 Jul 2010 07:38:45 +0000 (07:38 +0000)
committerkowal2 <kowal2@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 23 Jul 2010 07:38:45 +0000 (07:38 +0000)
TPC/AliTPC.cxx

index af8bc32128b5d6871e480467dcd9767601026f5c..23a8d2ced6a0ecabfcf27ecc440477d926f92993 100644 (file)
@@ -836,6 +836,7 @@ void AliTPC::Digits2Raw()
     return;
   }
 
+  //
   AliSimDigits digarr;
   AliSimDigits* digrow = &digarr;
   digits->GetBranch("Segment")->SetAddress(&digrow);
@@ -1056,8 +1057,15 @@ Bool_t AliTPC::Raw2SDigits(AliRawReader* rawReader){
 
     } // end of the sector digitization
   }
-
-  fLoader->WriteSDigits("OVERWRITE");
+  // get LHC clock phase from the digits tree
+  TParameter<float> *ph; 
+    ph = (TParameter<float>*)fLoader->TreeD()->GetUserInfo()->FindObject("lhcphase0");
+    //
+    // store lhc clock phase in S-digits tree
+    //
+    fLoader->TreeS()->GetUserInfo()->Add(new TParameter<float>("lhcphase0",ph->GetVal()));
+   //
+   fLoader->WriteSDigits("OVERWRITE");
 
   if(GetDigitsArray()) delete GetDigitsArray();
   SetDigitsArray(0x0);