]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/PHOS/AliHLTPHOSRecoParamHandler.cxx
Removing unused constants
[u/mrichter/AliRoot.git] / HLT / PHOS / AliHLTPHOSRecoParamHandler.cxx
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"
19 #include "TMatrixF.h"
20 #include "TVector3.h"
21 #include "AliPHOSPIDv1.h"
22 #include "TObjArray.h"
23
24 AliHLTPHOSRecoParamHandler::AliHLTPHOSRecoParamHandler() :
25 AliHLTCaloRecoParamHandler("PHOS")
26 ,fPHOSPidPtr(0)
27 {
28    // See header file for class documentation
29
30    fPHOSPidPtr = new AliPHOSPIDv1();
31
32 }
33
34 AliHLTPHOSRecoParamHandler::~AliHLTPHOSRecoParamHandler()
35 {
36    // See header file for class documentation
37 }
38
39 Float_t AliHLTPHOSRecoParamHandler::GetCorrectedEnergy ( Float_t e )
40 {
41    // See header file for class documentation
42    return fPHOSPidPtr->GetCalibratedEnergy(e); 
43 }
44
45 void AliHLTPHOSRecoParamHandler::FillParameters()
46 {
47    //See header file for class documentation
48    if(fRecoParamPtr)
49    {
50       fLogWeight = dynamic_cast<AliPHOSRecoParam*>(fRecoParamPtr)->GetEMCLogWeight();
51       fRecPointMemberThreshold = dynamic_cast<AliPHOSRecoParam*>(fRecoParamPtr)->GetEMCMinE();
52       fRecPointThreshold = dynamic_cast<AliPHOSRecoParam*>(fRecoParamPtr)->GetEMCClusteringThreshold();
53    }
54 }
55