1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Authors: Oystein Djuvsland <oysteind@ift.uib.no> *
6 * Permission to use, copy, modify and distribute this software and its *
7 * documentation strictly for non-commercial purposes is hereby granted *
8 * without fee, provided that the above copyright notice appears in all *
9 * copies and that both the copyright notice and this permission notice *
10 * appear in the supporting documentation. The authors make no claims *
11 * about the suitability of this software for any purpose. It is *
12 * provided "as is" without express or implied warranty. *
13 **************************************************************************/
15 #include "AliHLTCaloRecoParamHandler.h"
16 #include "AliDetectorRecoParam.h"
17 #include "AliCDBEntry.h"
18 #include "AliCDBManager.h"
19 #include "TObjArray.h"
21 ClassImp(AliHLTCaloRecoParamHandler);
23 AliHLTCaloRecoParamHandler::AliHLTCaloRecoParamHandler ( TString det ) :
24 AliHLTCaloConstantsHandler(det)
27 ,fRecPointMemberThreshold(0.01)
28 ,fRecPointThreshold(0.1)
30 ,fRecoParamPath(det, "Calib", "RecoParam")
32 // See header file for class documentation
37 AliHLTCaloRecoParamHandler::~AliHLTCaloRecoParamHandler()
39 // See header file for class documentation
45 Int_t AliHLTCaloRecoParamHandler::GetParametersFromCDB()
47 // See header file for documentation
49 if(fRecoParamPath.GetPath())
51 // HLTInfo("configure from entry %s", path.GetPath());
52 AliCDBEntry *pEntry = AliCDBManager::Instance()->Get(fRecoParamPath/*,GetRunNo()*/);
56 TObjArray *paramArray = dynamic_cast<TObjArray*>(pEntry->GetObject());
59 fRecoParamPtr = dynamic_cast<AliDetectorRecoParam*>((paramArray)->At(0));
63 HLTError("can not fetch object reconstruction parameters from \"%s\"", fRecoParamPath.GetPath().Data());
69 HLTError("can not fetch object \"%s\" from OCDB", fRecoParamPath.GetPath().Data());