LCOV - code coverage report
Current view: top level - HLT/CALO - AliHLTCaloRecoParamHandler.cxx (source / functions) Hit Total Coverage
Test: coverage.info Lines: 1 30 3.3 %
Date: 2016-06-14 17:26:59 Functions: 1 8 12.5 %

          Line data    Source code
       1             : /**************************************************************************
       2             :  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
       3             :  *                                                                        *
       4             :  * Authors: Oystein Djuvsland <oysteind@ift.uib.no>                       *
       5             :  *                                                                        *
       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             :  **************************************************************************/
      14             : 
      15             : #include "AliHLTCaloRecoParamHandler.h"
      16             : #include "AliDetectorRecoParam.h"
      17             : #include "AliCDBEntry.h"
      18             : #include "AliCDBManager.h"
      19             : #include "TObjArray.h"
      20             : 
      21           6 : ClassImp(AliHLTCaloRecoParamHandler);
      22             : 
      23             : AliHLTCaloRecoParamHandler::AliHLTCaloRecoParamHandler ( TString det ) : 
      24           0 : AliHLTCaloConstantsHandler(det)
      25           0 : ,AliHLTLogging()
      26           0 : ,fLogWeight(4.5)
      27           0 : ,fRecPointMemberThreshold(0.01)
      28           0 : ,fRecPointThreshold(0.1)
      29           0 : ,fRecoParamPtr(0)
      30           0 : ,fRecoParamPath(det, "Calib", "RecoParam")
      31           0 : {
      32             :    // See header file for class documentation
      33             : 
      34           0 : }
      35             : 
      36             : 
      37           0 : AliHLTCaloRecoParamHandler::~AliHLTCaloRecoParamHandler()
      38           0 : {
      39             :    // See header file for class documentation
      40             :    
      41           0 : }
      42             : 
      43             : 
      44             : 
      45             : Int_t AliHLTCaloRecoParamHandler::GetParametersFromCDB()
      46             : {
      47             :    // See header file for documentation
      48             : 
      49           0 :    if(fRecoParamPath.GetPath())
      50             :     {
      51             : //      HLTInfo("configure from entry %s", path.GetPath());
      52           0 :       AliCDBEntry *pEntry = AliCDBManager::Instance()->Get(fRecoParamPath/*,GetRunNo()*/);
      53           0 :       if (pEntry) 
      54             :         {
      55             :             
      56           0 :             TObjArray *paramArray = dynamic_cast<TObjArray*>(pEntry->GetObject());
      57           0 :             if(paramArray)
      58             :               {
      59           0 :                 fRecoParamPtr = dynamic_cast<AliDetectorRecoParam*>((paramArray)->At(0));
      60           0 :               }
      61           0 :             if(!fRecoParamPtr)
      62             :               {
      63           0 :                 HLTError("can not fetch object reconstruction parameters from \"%s\"", fRecoParamPath.GetPath().Data());
      64           0 :                 return -1;
      65             :               }
      66           0 :         }
      67             :       else
      68             :         {
      69           0 :             HLTError("can not fetch object \"%s\" from OCDB", fRecoParamPath.GetPath().Data());
      70           0 :             return -1;
      71             :         }
      72           0 :     }
      73           0 :     FillParameters();
      74           0 :     return 0;
      75           0 : }

Generated by: LCOV version 1.11