]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliCaloFitResults.cxx
Adding include path to allow compilation of CleanGeom task
[u/mrichter/AliRoot.git] / EMCAL / AliCaloFitResults.cxx
index 2d0348b90ac1887abf2e7d6da73f5f3e13c93fc5..d0c7b6f8b89edacf6092deb1a563f054c72c3a8a 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(0),
+                                        fPed(-1), 
+                                        fStatus(-1),
+                                        fAmpSig(-1),
+                                        fTime(-1),
+                                        fMaxTimebin(-1),
+                                        fChi2Sig(-1),
+                                        fNdfSig(0),
+                                        fMinSig(0),
+                                        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 t0,  const Float_t chi,  
-                                    const Int_t ndf, Int_t minSig,
-                                    const AliCaloFitSubarray fitSubarray) : 
+
+
+AliCaloFitResults::AliCaloFitResults(const Int_t maxSig, 
+                                    const Float_t ped, 
+                                    const Short_t fitstatus, 
+                                    const Float_t  amp,  
+                                    const double 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),
-  fT0(t0),
+  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 double time, const Int_t maxTimebin, const Float_t chi,  
                                     const Int_t ndf, Int_t minSig ) : 
   fMaxSig(maxSig),
   fPed(ped), 
   fStatus(fitstatus),
   fAmpSig(amp),
-  fT0(t0),
+  fTime(time),
+  fMaxTimebin(maxTimebin),
   fChi2Sig(chi),
   fNdfSig(ndf),
   fMinSig(minSig),
-  fFitSubarray(kDummy)  
+  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( 0 ),
+  fMinSig( 0 ),
+  fFitSubarray( Ret::kNoFit ) 
 {
 
 }
@@ -67,18 +115,19 @@ AliCaloFitResults::AliCaloFitResults(const Int_t maxSig, const Float_t ped,
 
 AliCaloFitResults::AliCaloFitResults(const Int_t maxSig, const Int_t minSig) : 
   fMaxSig(maxSig),
-  fPed(kNoFit),
-  fStatus( kNoFit ),
-  fAmpSig( kNoFit ), 
-  fT0(kNoFit),  
-  fChi2Sig( kNoFit ),
-  fNdfSig( kNoFit),
+  fPed( Ret::kInvalid ),
+  fStatus( Ret::kInvalid ),
+  fAmpSig( Ret::kInvalid ), 
+  fTime( Ret::kInvalid ),
+  fMaxTimebin( Ret::kInvalid ),
+  fChi2Sig( Ret::kInvalid ),
+  fNdfSig( 0 ),
   fMinSig (minSig),
-  fFitSubarray(kNoFit)  
+  fFitSubarray( Ret::kInvalid )  
 {
 
 }
-
 
 
 AliCaloFitResults::~AliCaloFitResults()