]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Restoring the storage of trigger into in the ESD. It was lost in translation... Thank...
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 26 Jul 2008 22:02:45 +0000 (22:02 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 26 Jul 2008 22:02:45 +0000 (22:02 +0000)
STEER/AliReconstruction.cxx

index 70128203b7efcf0dfc10ce7e10aac8fa683f3e0b..acecebd1876e7055d7ef810c0adaf6c15c1b7a8e 100644 (file)
 #include "AliCentralTrigger.h"
 #include "AliTriggerConfiguration.h"
 #include "AliTriggerClass.h"
+#include "AliTriggerCluster.h"
 #include "AliCTPRawStream.h"
 
 #include "AliQADataMakerRec.h" 
@@ -2875,6 +2876,7 @@ Bool_t AliReconstruction::GetEventInfo()
     return kFALSE;
   }
 
+  UChar_t clustmask = 0;
   TString trclasses;
   ULong64_t trmask = fEventInfo.GetTriggerMask();
   const TObjArray& classesArray = config->GetClasses();
@@ -2888,11 +2890,16 @@ Bool_t AliReconstruction::GetEventInfo()
        trclasses += " ";
        trclasses += trclass->GetName();
        trclasses += " ";
+       clustmask |= trclass->GetCluster()->GetClusterMask();
       }
     }
   }
   fEventInfo.SetTriggerClasses(trclasses);
 
+  // Set the information in ESD
+  fesd->SetTriggerMask(trmask);
+  fesd->SetTriggerCluster(clustmask);
+
   if (!aCTP->CheckTriggeredDetectors()) {
     if (fRawReader) delete aCTP;
     return kFALSE;