Add missing geometry initialization in Raw2SDigits
authorcblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 4 Aug 2009 13:20:13 +0000 (13:20 +0000)
committercblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 4 Aug 2009 13:20:13 +0000 (13:20 +0000)
TRD/AliTRDdigitizer.cxx

index 9c38f83..ba3f887 100644 (file)
@@ -1373,6 +1373,10 @@ Bool_t AliTRDdigitizer::Digits2SDigits(AliTRDdigitsManager *manDig
 
   AliDebug(1,"Start converting digits to s-digits");
 
+  if (!fGeo) {
+    fGeo = new AliTRDgeometry();
+  }
+
   AliTRDcalibDB     *calibration = AliTRDcalibDB::Instance();
   if (!calibration) {
     AliFatal("Could not get calibration object");
@@ -1401,8 +1405,8 @@ Bool_t AliTRDdigitizer::Digits2SDigits(AliTRDdigitsManager *manDig
   Double_t baseline     = simParam->GetADCbaseline() 
                         / adcConvert;
   // The electronics baseline in electrons
-  Double_t baselineEl   = baseline
-                        / convert;
+  //Double_t baselineEl   = baseline
+  //                      / convert;
 
   // The gainfactor calibration objects
   //const AliTRDCalDet *calGainFactorDet      = calibration->GetGainFactorDet();