]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOSRecoParam.cxx
Correct the way to access PHOS Calo Clusters from ESD
[u/mrichter/AliRoot.git] / PHOS / AliPHOSRecoParam.cxx
1 /**************************************************************************
2  * Copyright(c) 2007, ALICE Experiment at CERN, All rights reserved.      *
3  *                                                                        *
4  * Author: The ALICE Off-line Project.                                    *
5  * Contributors are mentioned in the code where appropriate.              *
6  *                                                                        *
7  * Permission to use, copy, modify and distribute this software and its   *
8  * documentation strictly for non-commercial purposes is hereby granted   *
9  * without fee, provided that the above copyright notice appears in all   *
10  * copies and that both the copyright notice and this permission notice   *
11  * appear in the supporting documentation. The authors make no claims     *
12  * about the suitability of this software for any purpose. It is          *
13  * provided "as is" without express or implied warranty.                  *
14  **************************************************************************/
15
16 /* $Id$ */
17
18 // Base class for the PHOS reconstruction parameters.
19 // Do not use in the reconstruction; use derivative classes instead.
20 // Author: Boris Polichtchouk.
21
22 // --- AliRoot header files ---
23 #include "AliPHOSRecoParam.h"
24
25 ClassImp(AliPHOSRecoParam)
26
27 //-----------------------------------------------------------------------------
28 AliPHOSRecoParam::AliPHOSRecoParam() : TNamed(),
29   fClusteringThreshold(9999),fLocMaxCut(9999),fMinE(9999),fW0(9999),
30   fSubtractPedestals(kTRUE),fDecoderVersion("")
31 {
32   //Default constructor.
33 }
34
35 //-----------------------------------------------------------------------------
36 AliPHOSRecoParam::AliPHOSRecoParam(const AliPHOSRecoParam& recoParam):
37   TNamed(recoParam),fClusteringThreshold(recoParam.fClusteringThreshold),
38   fLocMaxCut(recoParam.fLocMaxCut),fMinE(recoParam.fMinE),fW0(recoParam.fW0),
39   fSubtractPedestals(recoParam.fSubtractPedestals),fDecoderVersion(recoParam.fDecoderVersion)
40 {
41   //Copy constructor.
42 }
43
44 //-----------------------------------------------------------------------------
45 AliPHOSRecoParam& AliPHOSRecoParam::operator = (const AliPHOSRecoParam& recoParam)
46 {
47   //Assignment operator.
48
49   if(this != &recoParam) {
50     fClusteringThreshold = recoParam.fClusteringThreshold;
51     fLocMaxCut = recoParam.fLocMaxCut;
52     fMinE = recoParam.fMinE;
53     fW0 = recoParam.fW0;
54     fSubtractPedestals = recoParam.fSubtractPedestals;
55     fDecoderVersion=recoParam.fDecoderVersion ;
56   }
57
58   return *this;
59 }
60