]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/PHOS/AliHLTPHOSRecoParamHandler.cxx
fix bug in calculation of signals and npads for clusters
[u/mrichter/AliRoot.git] / HLT / PHOS / AliHLTPHOSRecoParamHandler.cxx
CommitLineData
09dce353 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 "AliHLTPHOSRecoParamHandler.h"
16#include "AliCDBManager.h"
17#include "AliCDBEntry.h"
18#include "AliPHOSRecoParam.h"
2c465572 19#include "TMatrixF.h"
20#include "TVector3.h"
0205fe4c 21#include "AliPHOSReconstructor.h"
b9792686 22#ifdef HAVE_NOT_ALIPHOSRECONSTRUCTOR_r44091
23#include "AliPHOSPIDv1.h"
24#endif // HAVE_NOT_ALIPHOSRECONSTRUCTOR_r44091
09dce353 25#include "TObjArray.h"
26
27AliHLTPHOSRecoParamHandler::AliHLTPHOSRecoParamHandler() :
28AliHLTCaloRecoParamHandler("PHOS")
09dce353 29{
30 // See header file for class documentation
09dce353 31
32
09dce353 33}
34
f05c2d17 35AliHLTPHOSRecoParamHandler::~AliHLTPHOSRecoParamHandler()
09dce353 36{
f05c2d17 37 // See header file for class documentation
09dce353 38}
39
40Float_t AliHLTPHOSRecoParamHandler::GetCorrectedEnergy ( Float_t e )
41{
42 // See header file for class documentation
b9792686 43#ifndef HAVE_NOT_ALIPHOSRECONSTRUCTOR_r44091
0205fe4c 44 return AliPHOSReconstructor::CorrectNonlinearity(e) ;
b9792686 45#else // !HAVE_NOT_ALIPHOSRECONSTRUCTOR_r44091
46 AliPHOSPIDv1 phospidv1;
47 return phospidv1.GetCalibratedEnergy(e);
48#endif // HAVE_NOT_ALIPHOSRECONSTRUCTOR_r44091
09dce353 49}
50
f05c2d17 51void AliHLTPHOSRecoParamHandler::FillParameters()
52{
53 //See header file for class documentation
54 if(fRecoParamPtr)
55 {
56 fLogWeight = dynamic_cast<AliPHOSRecoParam*>(fRecoParamPtr)->GetEMCLogWeight();
57 fRecPointMemberThreshold = dynamic_cast<AliPHOSRecoParam*>(fRecoParamPtr)->GetEMCMinE();
58 fRecPointThreshold = dynamic_cast<AliPHOSRecoParam*>(fRecoParamPtr)->GetEMCClusteringThreshold();
59 }
60}
61