]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliEMCALTriggerTRU.cxx
from M Weber: L1Gamma sigma check value relaxed
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALTriggerTRU.cxx
index be09a2c2381aad56f8f0bfd27085f35db5ef03f8..0962da5eafc4d2374e4d16c5f421aaf8373b90e3 100644 (file)
@@ -37,6 +37,9 @@ namespace
        const Int_t kTimeWindowSize =  4; // 
 }
 
+using std::ofstream;
+using std::endl;
+using std::ios_base;
 ClassImp(AliEMCALTriggerTRU)
 
 //________________
@@ -167,11 +170,14 @@ Int_t AliEMCALTriggerTRU::L0()
        
        AliDebug(999,Form("=== TRU fw version %x ===",fDCSConfig->GetFw()));
        
-       if (fDCSConfig->GetFw() < 0x4d) {
+       if (fDCSConfig->IsA()->GetClassVersion() >= 3) {
+               if (fDCSConfig->GetFw() < 0x4d) {
+                       return L0v0(nb, ma);
+               } else {
+                       return L0v1(nb, ma);
+               }
+       } else
                return L0v0(nb, ma);
-       } else {
-               return L0v1(nb, ma);
-       }
 }
 
 //________________