Project
Loading...
Searching...
No Matches
CaloFitResults.cxx
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11
14
15#include <fairlogger/Logger.h>
16#include "TMath.h"
17
20
21using namespace o2::emcal;
22
23CaloFitResults::CaloFitResults(unsigned short maxSig, float ped,
24 int fitstatus, float amp,
25 double time, int maxTimebin,
26 float chi, unsigned short ndf, unsigned short minSig) : mMaxSig(maxSig),
27 mPed(ped),
28 mStatus(fitstatus),
29 mAmpSig(amp),
30 mTime(time),
31 mMaxTimebin(maxTimebin),
32 mChi2Sig(chi),
33 mNdfSig(ndf),
34 mMinSig(minSig)
35{
36}
37
38CaloFitResults::CaloFitResults(unsigned short maxSig, float ped,
39 int fitstatus, float amp,
40 int maxTimebin) : mMaxSig(maxSig),
41 mPed(ped),
42 mStatus(fitstatus),
43 mAmpSig(amp),
44 mTime(maxTimebin),
45 mMaxTimebin(maxTimebin)
46{
47}
48
49CaloFitResults::CaloFitResults(int maxSig, int minSig) : mMaxSig(maxSig),
50 mMinSig(minSig)
51{
52}
53
55{
56 if (this != &source) {
57 mMaxSig = source.mMaxSig;
58 mPed = source.mPed;
59 mStatus = source.mStatus;
60 mAmpSig = source.mAmpSig;
61 mTime = source.mTime;
62 mMaxTimebin = source.mMaxTimebin;
63 mChi2Sig = source.mChi2Sig;
64 mNdfSig = source.mNdfSig;
65 mMinSig = source.mMinSig;
66 }
67 return *this;
68}
69
71{
72 return (mMaxSig == other.mMaxSig) && (mPed == other.mPed) &&
73 (mStatus == other.mStatus) && (mAmpSig == other.mAmpSig) && (mTime == other.mTime) &&
74 (mMaxTimebin == other.mMaxTimebin) && (mChi2Sig == other.mChi2Sig) &&
75 (mNdfSig == other.mNdfSig) && (mMinSig == other.mMinSig);
76}
int16_t time
Definition RawEventData.h:4
Container class to hold results from fitting.
CaloFitResults & operator=(const CaloFitResults &source)
Assignment operator.
CaloFitResults()=default
Default constructor.
bool operator==(const CaloFitResults &other) const
Comparison of two fit results.
GLsizei GLsizei GLchar * source
Definition glcorearb.h:798
VectorOfTObjectPtrs other