Do not load the Trigger every time
authorfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 27 Feb 2010 11:14:51 +0000 (11:14 +0000)
committerfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 27 Feb 2010 11:14:51 +0000 (11:14 +0000)
STEER/AliRawDataHeaderSim.h

index 0f47d8a..005ca5f 100644 (file)
@@ -17,8 +17,8 @@ public:
     // stores it in the data header
     AliRunLoader *runloader = AliRunLoader::Instance();
     if (runloader) {
-      if (!runloader->LoadTrigger()) {
-       AliCentralTrigger *aCTP = runloader->GetTrigger();
+      if(!runloader->GetTrigger()) runloader->LoadTrigger();
+      if (AliCentralTrigger *aCTP = runloader->GetTrigger()) {
        ULong64_t mask = aCTP->GetClassMask();
        SetTriggerClass(mask);
       }