* provided "as is" without express or implied warranty. *
**************************************************************************/
+/*
+
+
+
+
+Adapted from TRD
+Author: R. GUERNANE LPSC Grenoble CNRS/IN2P3
+*/
+
#include <TClonesArray.h>
#include <TObjArray.h>
// 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!");
const AliEMCALTriggerDCSConfig* AliEMCALTriggerDCSConfigDB::GetTriggerDCSConfig()
{
//
- //
+ // Get DCS config
//
const AliEMCALTriggerDCSConfig* dcsConf = dynamic_cast<const AliEMCALTriggerDCSConfig*>(GetCachedCDBObject(kIDTriggerConfig));
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();
-}