Re-enable trigger calculation removing STU OCDB access. Improve simulation (L0 time...
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALTriggerDCSConfigDB.cxx
index 60717ee..56b9e77 100644 (file)
@@ -245,81 +245,3 @@ const AliEMCALTriggerDCSConfig* AliEMCALTriggerDCSConfigDB::GetTriggerDCSConfig(
        else
                return dcsConf;
 }
-
-//_____________________________________________________________________________
-void AliEMCALTriggerDCSConfigDB::GetSTUSegmentation(Int_t ssg[], Int_t spg[], Int_t ssj[], Int_t spj[])
-{
-       //
-       // Get STU segmentation
-       //
-       const AliEMCALTriggerDCSConfig* dcsConf = dynamic_cast<const AliEMCALTriggerDCSConfig*>(GetCachedCDBObject(kIDTriggerConfig));
-  if(dcsConf){
-    AliEMCALTriggerSTUDCSConfig* stuConf = dcsConf->GetSTUDCSConfig();
-    if(stuConf){
-      Int_t fw = stuConf->GetFw();
-      
-      switch ( fw )
-      {
-        case 2223:
-          ssg[0] = 1;
-          ssg[1] = 1;
-          spg[0] = 2;
-          spg[1] = 2;
-          
-          ssj[0] = 4;
-          ssj[1] = 4;
-          spj[0] = 2;
-          spj[1] = 2;
-          break;
-        default:
-          AliError("Firmware version do not match!");
-          break;
-      }
-    }
-    else {
-      AliError("STUDCSConfig is null!");
-    }
-  }
-  else {
-    AliError("DCSConfig is null!");
-  }
-  
-}
-
-//_____________________________________________________________________________
-Int_t AliEMCALTriggerDCSConfigDB::GetTRUSegmentation(Int_t iTRU)
-{
-       // Get TRU segmentation
-       
-       const AliEMCALTriggerDCSConfig* dcsConf = dynamic_cast<const AliEMCALTriggerDCSConfig*>(GetCachedCDBObject(kIDTriggerConfig));
-  if(dcsConf){ 
-    AliEMCALTriggerTRUDCSConfig* truConf = dcsConf->GetTRUDCSConfig(iTRU);
-    if(truConf){
-      Int_t sel = truConf->GetL0SEL();
-       
-      if (sel & 0x0001)
-        return 2;
-      else
-        return 1;
-    } else AliError("TRUDCSConf Null!") ;
-  }else AliError("TriggerDCSConf Null!") ;
-  
-  return -1;
-}
-
-//_____________________________________________________________________________
-Int_t AliEMCALTriggerDCSConfigDB::GetTRUGTHRL0(Int_t iTRU)
-{
-       //
-       // Get TRU L0 threshold
-       //
-       const AliEMCALTriggerDCSConfig* dcsConf = dynamic_cast<const AliEMCALTriggerDCSConfig*>(GetCachedCDBObject(kIDTriggerConfig));
-  if(dcsConf){ 
-    AliEMCALTriggerTRUDCSConfig* truConf = dcsConf->GetTRUDCSConfig(iTRU);
-    if(truConf){
-      return truConf->GetGTHRL0();
-    } else AliError("TRUDCSConf Null!") ;
-  }else AliError("TriggerDCSConf Null!") ;
-  
-  return -1;
-}