X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=EMCAL%2FAliCaloFitResults.cxx;h=9c3c4d0fe205acb2d18572b30b07fa694dddecd4;hb=068e2c00b797fa2ccbb3a4852358a34ac05d32c5;hp=07317e17765b0585a395718c6f771f1c97c5441d;hpb=57839add729de273b3f0b5a2c75f94eda52dc4e4;p=u%2Fmrichter%2FAliRoot.git diff --git a/EMCAL/AliCaloFitResults.cxx b/EMCAL/AliCaloFitResults.cxx index 07317e17765..9c3c4d0fe20 100644 --- a/EMCAL/AliCaloFitResults.cxx +++ b/EMCAL/AliCaloFitResults.cxx @@ -2,10 +2,10 @@ * This file is property of and copyright by * * the Relativistic Heavy Ion Group (RHIG), Yale University, US, 2009 * * * - * Primary Author: Per Thomas Hille * + * Primary Author: Per Thomas Hille * * * * 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 * @@ -19,6 +19,22 @@ #include "AliCaloFitResults.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 // as well as other methods for @@ -27,35 +43,74 @@ // 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 ) : 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, + 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 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(kDummy) +{ +} -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 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( kNoFit ), + fNdfSig( kNoFit ), + fMinSig( kNoFit ), + fFitSubarray( kNoFit ) { - +} + + +AliCaloFitResults::AliCaloFitResults(const Int_t maxSig, const Int_t minSig) : + fMaxSig(maxSig), + fPed( kInvalid ), + fStatus( kInvalid ), + fAmpSig( kInvalid ), + fTime( kInvalid ), + fMaxTimebin( kInvalid ), + fChi2Sig( kInvalid ), + fNdfSig( kInvalid), + fMinSig (minSig), + fFitSubarray(kInvalid) +{ + }