]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliEMCALTriggerDCSConfigDB.cxx
coverity, remove unneeded check on existence of ESDEvent pointer
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALTriggerDCSConfigDB.cxx
index f2c26756e3a78984122469fce1e8c38846df26f1..56b9e77179eaadbcd49620f543e194d79af3683a 100644 (file)
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
+/*
+
+
+
+
+Adapted from TRD
+Author: R. GUERNANE LPSC Grenoble CNRS/IN2P3
+*/
+
 #include <TClonesArray.h>
 #include <TObjArray.h>
 
@@ -134,26 +143,11 @@ const TObject *AliEMCALTriggerDCSConfigDB::GetCachedCDBObject(Int_t id)
        // Retrieves a cdb object with the given id. The objects are cached as
        // long as the run number is not changed.
        //
-       // Put together the available objects here by using the lines
-       //   a) For usual calibration objects:
-       //      case kID<Name> : 
-       //        return CacheCDBEntry(kID<Name>,"TRD/Calib/<Path>"); 
-       //        break;
-       //      See function CacheCDBEntry for details.
-       //   and
-       //   b) For calibration data which depends on two objects: One containing 
-       //      a value per detector and one the local fluctuations per pad:
-       //      case kID<Name> :
-       //        return CacheMergeCDBEntry(kID<Name>,"TRD/Calib/<padPath>","TRD/Calib/<chamberPath>"); 
-       //        break;
-       //      See function CacheMergeCDBEntry for details.
-       //
-    
        switch (id) 
        {
                // Parameters defined per pad and chamber
                case kIDTriggerConfig : 
-                       return CacheCDBEntry(kIDTriggerConfig, "EMCAL/Config/Trigger"); 
+                       return CacheCDBEntry(kIDTriggerConfig, "EMCAL/Calib/Trigger"); 
                        break;
                default:                        
                        AliError("Object not found!");
@@ -239,7 +233,7 @@ void AliEMCALTriggerDCSConfigDB::Invalidate()
 const AliEMCALTriggerDCSConfig* AliEMCALTriggerDCSConfigDB::GetTriggerDCSConfig()
 {
        //
-       //
+       // Get DCS config
        //
        const AliEMCALTriggerDCSConfig* dcsConf = dynamic_cast<const AliEMCALTriggerDCSConfig*>(GetCachedCDBObject(kIDTriggerConfig));
        
@@ -251,42 +245,3 @@ const AliEMCALTriggerDCSConfig* AliEMCALTriggerDCSConfigDB::GetTriggerDCSConfig(
        else
                return dcsConf;
 }
-
-//_____________________________________________________________________________
-void AliEMCALTriggerDCSConfigDB::GetSTUSegmentation(Int_t ss[], Int_t sp[])
-{
-       //
-       //
-       //
-       const AliEMCALTriggerDCSConfig* dcsConf = dynamic_cast<const AliEMCALTriggerDCSConfig*>(GetCachedCDBObject(kIDTriggerConfig));
-
-       AliEMCALTriggerSTUDCSConfig* stuConf = dcsConf->GetSTUDCSConfig();
-       
-       Int_t fw = stuConf->GetFw();
-       
-       switch ( fw )
-       {
-               case 2223:
-                       ss[0] = 4;
-                       ss[1] = 4;
-                       sp[0] = 2;
-                       sp[1] = 2;
-                       break;
-               default:
-                       AliError("Firmware version do not match!");
-                       break;
-       }
-}
-
-//_____________________________________________________________________________
-Int_t AliEMCALTriggerDCSConfigDB::GetTRUGTHRL0(Int_t iTRU)
-{
-       //
-       //
-       //
-       const AliEMCALTriggerDCSConfig* dcsConf = dynamic_cast<const AliEMCALTriggerDCSConfig*>(GetCachedCDBObject(kIDTriggerConfig));
-       
-       AliEMCALTriggerTRUDCSConfig* truConf = dcsConf->GetTRUDCSConfig(iTRU);
-       
-       return truConf->GetGTHRL0();
-}