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