]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSTrigger.cxx
Add option for building ideal (no dead channels) calibration objects
[u/mrichter/AliRoot.git] / ITS / AliITSTrigger.cxx
index 7ee066b5bd3f181b84db8678001c463d3bd1b6c2..5a354ced303df7929432f824c5ade6873e9b4e30 100644 (file)
@@ -86,16 +86,18 @@ void AliITSTrigger::Trigger() {
   if (!itsLoader) {
     AliError("ITS loader is NULL.");
   }
-  else {
-    AliBaseLoader* foLoader = itsLoader->GetFOSignalsLoader();
-    if (!foLoader) {
-      AliError("FO signals base loader not retrieved.");
-    }
-    else {
-      foLoader->Load();
-      foSignals = (AliITSFOSignalsSPD*) foLoader->Get();
-    }
-  }
+
+   else {
+      itsLoader->LoadDigits();
+      TTree *tree = itsLoader->TreeD();
+      if(!tree) {
+        AliError("TreeD not available");
+       itsLoader->UnloadDigits();
+        return;
+      }
+      foSignals = (AliITSFOSignalsSPD*)tree->GetUserInfo()->FindObject("AliITSFOSignalsSPD");
+      if(!foSignals) AliError("FO signals not retrieved");
+     }
 
   // Process the FO signals
   if (foSignals) {
@@ -110,5 +112,5 @@ void AliITSTrigger::Trigger() {
   else {
     AliError("Fast-OR signals not available. No trigger processing done.");
   }
-
+  if (itsLoader) itsLoader->UnloadDigits();
 }