]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Corrected switching between the input and output streams
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 18 Apr 2005 09:26:13 +0000 (09:26 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 18 Apr 2005 09:26:13 +0000 (09:26 +0000)
START/AliSTARTDigitizer.cxx

index 25caf7e20f355e6aa9fcd97c12d4e6b418b05ce3..1da215c4c60450c9115b49b9c8394b23649d616f 100644 (file)
@@ -124,7 +124,6 @@ void AliSTARTDigitizer::Exec(Option_t* /*option*/)
   //output loader 
   AliRunLoader *outRL = AliRunLoader::GetRunLoader(fManager->GetOutputFolderName());
   AliLoader * pOutStartLoader = outRL->GetLoader("STARTLoader");
-  AliSTART *fSTART  = (AliSTART*)outRL ->GetAliRun()->GetDetector("START");
 
   AliDebug(1,"start...");
   cout<<" AliSTARTDigitizer::Exec "<<endl;
@@ -167,6 +166,7 @@ void AliSTARTDigitizer::Exec(Option_t* /*option*/)
     AliRunLoader * inRL = AliRunLoader::GetRunLoader(fManager->GetInputFolderName(inputFile));
     AliLoader * pInStartLoader = inRL->GetLoader("STARTLoader");
     if (!inRL->GetAliRun()) inRL->LoadgAlice();
+    AliSTART *fSTART  = (AliSTART*)inRL ->GetAliRun()->GetDetector("START");
 
        //read Hits 
     pInStartLoader->LoadHits("READ");//probably it is necessary to load them before
@@ -281,6 +281,7 @@ void AliSTARTDigitizer::Exec(Option_t* /*option*/)
       pOutStartLoader->MakeTree("D");
       treeD = pOutStartLoader->TreeD();
     }
+    AliSTART *fSTART  = (AliSTART*)outRL ->GetAliRun()->GetDetector("START");
     fSTART->MakeBranch("D");
      treeD->Reset();
      treeD->Fill();