]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Verify that fFile exist before cd (the file does not exist in case of event merhing)
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 25 Jun 2002 15:45:01 +0000 (15:45 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 25 Jun 2002 15:45:01 +0000 (15:45 +0000)
PHOS/AliPHOSGetter.cxx

index 5bec04e21bf9f0ee8ffbe6456e0f270552741dd7..3ad277516f0c597fd906d7ec862e40e560a566f2 100644 (file)
@@ -177,7 +177,8 @@ AliPHOSGetter * AliPHOSGetter::GetInstance()
   // Returns the pointer of the unique instance already defined
   
   if ( fgObjGetter ) {
-    fFile->cd() ; 
+    if (fFile)   // not the case if fManager
+      fFile->cd() ; 
     return fgObjGetter ;
   }
   else {
@@ -1809,12 +1810,12 @@ void AliPHOSGetter::ReadTreeS(TTree * treeS, Int_t input)
   TString sdname(sdigitsBranch->GetTitle()) ;
   sdname+=":" ;
   sdname+=filename ;
+  
   if(!SDigitizer(sdigitsBranch->GetTitle()) )
     PostSDigitizer(sdigitsBranch->GetTitle(),filename) ;
-
-  sdigitizerBranch->SetAddress(SDigitizerRef(sdname)) ;
-  sdigitizerBranch->GetEntry(0) ;
-  
+  //!!!!!!!!!!!!!!!!!!!!!!!!!! Weird problem, the following line causes a seg fault
+  //   sdigitizerBranch->SetAddress(SDigitizerRef(sdname)) ;
+  //   sdigitizerBranch->GetEntry(0) ;
 }