]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EMCAL/AliCaloFitResults.cxx
Remove dependency on AliRecPoint from AliEMCALGeometry
[u/mrichter/AliRoot.git] / EMCAL / AliCaloFitResults.cxx
1 /**************************************************************************
2  * This file is property of and copyright by                              *
3  * the Relativistic Heavy Ion Group (RHIG), Yale University, US, 2009     *
4  *                                                                        *
5  * Primary Author: Per Thomas Hille <perthomas.hille@yale.edu>            *
6  *                                                                        *
7  * Contributors are mentioned in the code where appropriate.              *
8  * Please report bugs to perthomas.hille@yale.edu                         *
9  *                                                                        *
10  * Permission to use, copy, modify and distribute this software and its   *
11  * documentation strictly for non-commercial purposes is hereby granted   *
12  * without fee, provided that the above copyright notice appears in all   *
13  * copies and that both the copyright notice and this permission notice   *
14  * appear in the supporting documentation. The authors make no claims     *
15  * about the suitability of this software for any purpose. It is          *
16  * provided "as is" without express or implied warranty.                  *
17  **************************************************************************/
18
19
20 #include "AliCaloFitResults.h"
21
22 AliCaloFitResults::AliCaloFitResults() : fMaxSig(-1),
23                                          fPed(-1), 
24                                          fStatus(-1),
25                                          fAmpSig(-1),
26                                          fTime(-1),
27                                          fMaxTimebin(-1),
28                                          fChi2Sig(-1),
29                                          fNdfSig(-1),
30                                          fMinSig(-1),
31                                          fFitSubarray(10) 
32 {
33   
34   
35 }
36
37
38
39 // Container class to hold results from fitting 
40 // as well as other methods for
41 // raw data signals extraction. The class memebers
42 // fChi2Sig, fNdfSig is only relevant if a fitting procedure is
43 // Applied. fStatus holds information on wether or not 
44 // The signal was fitted sucessfully. fStatus might have a different meaning If other 
45 // procedures than  A different meaning Fitting is applied 
46
47 AliCaloFitResults::AliCaloFitResults(const Int_t maxSig, const Float_t ped, 
48                                      const Short_t fitstatus, const Float_t  amp,  
49                                      const Float_t time,  const Int_t maxTimebin, const Float_t chi,  
50                                      const Int_t ndf, Int_t minSig,
51                                      const AliCaloFitSubarray fitSubarray) : 
52   fMaxSig(maxSig),
53   fPed(ped), 
54   fStatus(fitstatus),
55   fAmpSig(amp),
56   fTime(time),
57   fMaxTimebin(maxTimebin),
58   fChi2Sig(chi),
59   fNdfSig(ndf),
60   fMinSig(minSig),
61   fFitSubarray(fitSubarray) 
62 {
63 }
64
65
66 AliCaloFitResults::AliCaloFitResults(const Int_t maxSig, const Float_t ped, 
67                                      const Short_t fitstatus, const Float_t  amp,  
68                                      const Float_t time, const Int_t maxTimebin, const Float_t chi,  
69                                      const Int_t ndf, Int_t minSig ) : 
70   fMaxSig(maxSig),
71   fPed(ped), 
72   fStatus(fitstatus),
73   fAmpSig(amp),
74   fTime(time),
75   fMaxTimebin(maxTimebin),
76   fChi2Sig(chi),
77   fNdfSig(ndf),
78   fMinSig(minSig),
79   fFitSubarray(kDummy)  
80 {
81 }
82
83
84 AliCaloFitResults::AliCaloFitResults(const Int_t maxSig, const Float_t ped, 
85                                      const Short_t fitstatus, const Float_t  amp,  
86                                      const Int_t maxTimebin) : 
87   fMaxSig(maxSig),
88   fPed(ped), 
89   fStatus(fitstatus),
90   fAmpSig(amp),
91   fTime(maxTimebin),
92   fMaxTimebin(maxTimebin),
93   fChi2Sig( kNoFit ),
94   fNdfSig( kNoFit ),
95   fMinSig( kNoFit ),
96   fFitSubarray( kNoFit ) 
97 {
98 }
99
100
101 AliCaloFitResults::AliCaloFitResults(const Int_t maxSig, const Int_t minSig) : 
102   fMaxSig(maxSig),
103   fPed( kInvalid ),
104   fStatus( kInvalid ),
105   fAmpSig( kInvalid ), 
106   fTime( kInvalid ),
107   fMaxTimebin( kInvalid ),
108   fChi2Sig( kInvalid ),
109   fNdfSig( kInvalid),
110   fMinSig (minSig),
111   fFitSubarray(kInvalid)  
112 {
113
114 }
115
116
117
118 AliCaloFitResults::~AliCaloFitResults()
119 {
120
121 }
122