]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Technical fix: PIT simulation was loading the digits for ALL detectors in READ mode...
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 25 Jun 2010 09:42:28 +0000 (09:42 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 25 Jun 2010 09:42:28 +0000 (09:42 +0000)
ITS/AliITSTrigger.cxx

index 84c42dff67e5eab329b86cb25f7a8194471a81a6..5a354ced303df7929432f824c5ade6873e9b4e30 100644 (file)
@@ -82,16 +82,17 @@ void AliITSTrigger::Trigger() {
   // Get the FO signals for this event
   AliITSFOSignalsSPD* foSignals = NULL;
   AliRunLoader* runLoader = AliRunLoader::Instance();
-  runLoader->LoadDigits();
   AliITSLoader* itsLoader = (AliITSLoader*) runLoader->GetLoader("ITSLoader");
   if (!itsLoader) {
     AliError("ITS loader is NULL.");
   }
 
    else {
+      itsLoader->LoadDigits();
       TTree *tree = itsLoader->TreeD();
       if(!tree) {
         AliError("TreeD not available");
+       itsLoader->UnloadDigits();
         return;
       }
       foSignals = (AliITSFOSignalsSPD*)tree->GetUserInfo()->FindObject("AliITSFOSignalsSPD");
@@ -111,5 +112,5 @@ void AliITSTrigger::Trigger() {
   else {
     AliError("Fast-OR signals not available. No trigger processing done.");
   }
-
+  if (itsLoader) itsLoader->UnloadDigits();
 }