]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
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 0f47d8a064ee5cd5c27433f4b2a865b1edf1efd9..005ca5fbd6a02d97761b88550f0e4c5d0afbdfc9 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);
       }