]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliCaloFitResults.cxx
added settings for magnetic field
[u/mrichter/AliRoot.git] / EMCAL / AliCaloFitResults.cxx
index 07317e17765b0585a395718c6f771f1c97c5441d..80c9009af1eb62bae0c54d0dbb2e986764346e98 100644 (file)
@@ -1,11 +1,12 @@
+// -*- mode: c++ -*-
 /**************************************************************************
  * This file is property of and copyright by                              *
  * the Relativistic Heavy Ion Group (RHIG), Yale University, US, 2009     *
  *                                                                        *
- * Primary Author: Per Thomas Hille <p.t.hille@fys.uio.no>                *
+ * Primary Author: Per Thomas Hille <perthomas.hille@yale.edu>            *
  *                                                                        *
  * Contributors are mentioned in the code where appropriate.              *
- * Please report bugs to p.t.hille@fys.uio.no                             *
+ * Please report bugs to perthomas.hille@yale.edu                         *
  *                                                                        *
  * Permission to use, copy, modify and distribute this software and its   *
  * documentation strictly for non-commercial purposes is hereby granted   *
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
-
 #include "AliCaloFitResults.h"
+#include "AliCaloConstants.h"
+
+AliCaloFitResults::AliCaloFitResults() : fMaxSig(-1),
+                                        fPed(-1), 
+                                        fStatus(-1),
+                                        fAmpSig(-1),
+                                        fTime(-1),
+                                        fMaxTimebin(-1),
+                                        fChi2Sig(-1),
+                                        fNdfSig(-1),
+                                        fMinSig(-1),
+                                        fFitSubarray(10) 
+{
+  
+  
+}
+
 
 
 // Container class to hold results from fitting 
 // Applied. fStatus holds information on wether or not 
 // The signal was fitted sucessfully. fStatus might have a different meaning If other 
 // procedures than  A different meaning Fitting is applied 
+
+AliCaloFitResults::AliCaloFitResults(const Int_t maxSig, 
+                                    const Float_t ped, 
+                                    const Short_t fitstatus, 
+                                    const Float_t  amp,  
+                                    const Float_t time,  
+                                    const Int_t maxTimebin, 
+                                    const Float_t chi,  
+                                    const Int_t ndf, 
+                                    Int_t minSig,
+                                    const AliCaloFitSubarray fitSubarray ) : 
+  fMaxSig(maxSig),
+  fPed(ped), 
+  fStatus(fitstatus),
+  fAmpSig(amp),
+  fTime(time),
+  fMaxTimebin(maxTimebin),
+  fChi2Sig(chi),
+  fNdfSig(ndf),
+  fMinSig(minSig),
+  fFitSubarray(fitSubarray) 
+{
+
+}
+
+
 AliCaloFitResults::AliCaloFitResults(const Int_t maxSig, const Float_t ped, 
-                                      const Short_t fitstatus, const Float_t  amp,  
-                                      const Float_t t0,  const Float_t chi,  
-                                      const Int_t ndf, Int_t minSig ) : fMaxSig(maxSig),
-                                                                              fPed(ped), 
-                                                                              fStatus(fitstatus),
-                                                                              fAmpSig(amp),
-                                                                              fT0(t0),
-                                                                              fChi2Sig(chi),
-                                                                              fNdfSig(ndf),
-                                                                              fMinSig(minSig) 
+                                    const Short_t fitstatus, const Float_t  amp,  
+                                    const Float_t time, const Int_t maxTimebin, const Float_t chi,  
+                                    const Int_t ndf, Int_t minSig ) : 
+  fMaxSig(maxSig),
+  fPed(ped), 
+  fStatus(fitstatus),
+  fAmpSig(amp),
+  fTime(time),
+  fMaxTimebin(maxTimebin),
+  fChi2Sig(chi),
+  fNdfSig(ndf),
+  fMinSig(minSig),
+  fFitSubarray(Ret::kDummy)  
 {
+  
 }
 
 
+AliCaloFitResults::AliCaloFitResults(const Int_t maxSig, const Float_t ped, 
+                                    const Short_t fitstatus, const Float_t  amp,  
+                                    const Int_t maxTimebin) : 
+  fMaxSig(maxSig),
+  fPed(ped), 
+  fStatus(fitstatus),
+  fAmpSig(amp),
+  fTime(maxTimebin),
+  fMaxTimebin(maxTimebin),
+  fChi2Sig( Ret::kNoFit ),
+  fNdfSig( Ret::kNoFit ),
+  fMinSig( Ret::kNoFit ),
+  fFitSubarray( Ret::kNoFit ) 
+{
+
+}
+
 
 
-AliCaloFitResults::AliCaloFitResults(const Int_t maxSig, const Int_t minSig) : fMaxSig(maxSig),
-                                                                                      fPed(-98),
-                                                                                      fStatus( -1 ),
-                                                                                      fAmpSig( -1 ), 
-                                                                                      fT0(-99),  
-                                                                                      fChi2Sig( -1 ),
-                                                                                      fNdfSig( -1),
-                                                                                      fMinSig (minSig)
+AliCaloFitResults::AliCaloFitResults(const Int_t maxSig, const Int_t minSig) : 
+  fMaxSig(maxSig),
+  fPed( Ret::kInvalid ),
+  fStatus( Ret::kInvalid ),
+  fAmpSig( Ret::kInvalid ), 
+  fTime( Ret::kInvalid ),
+  fMaxTimebin( Ret::kInvalid ),
+  fChi2Sig( Ret::kInvalid ),
+  fNdfSig( Ret::kInvalid),
+  fMinSig (minSig),
+  fFitSubarray( Ret::kInvalid )  
 {
-  
+
 }