Project
Loading...
Searching...
No Matches
CaloFitResults.h
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
12#ifndef CALOFITRESULTS_H_
13#define CALOFITRESULTS_H_
14
15#include <iosfwd>
16#include <Rtypes.h>
18
19namespace o2
20{
21
22namespace emcal
23{
24
39{
40
41 public:
43 CaloFitResults() = default;
44
46 CaloFitResults(const CaloFitResults& fitresults) = default;
47
50
52 explicit CaloFitResults(unsigned short maxSig,
53 float ped,
54 int fitStatus,
55 float amp,
56 double time,
57 int maxTimebin,
58 float chi,
59 unsigned short ndf,
60 unsigned short minSig = 0);
61
63 explicit CaloFitResults(unsigned short maxSig,
64 float ped,
65 int fitStatus,
66 float amp,
67 int maxTimebin);
68
70 explicit CaloFitResults(int maxSig, int minSig);
71
73 bool operator==(const CaloFitResults& other) const;
74
75 ~CaloFitResults() = default;
76
77 void setMaxSig(unsigned short maxSig) { mMaxSig = maxSig; }
78 void setPed(float ped) { mPed = ped; }
79 void setMinSig(unsigned short minSig) { mMinSig = minSig; }
80 void setStatus(int status) { mStatus = status; }
81 void setTime(float time) { mTime = time; }
82 void setAmp(float amp) { mAmpSig = amp; }
83 void setMaxTimeBin(int timebin) { mMaxTimebin = timebin; }
84 void setChi2(float chi2) { mChi2Sig = chi2; }
85 void setNdf(unsigned short ndf) { mNdfSig = ndf; }
86
87 unsigned short getMaxSig() const { return mMaxSig; }
88 float getPed() const { return mPed; }
89 unsigned short getMinSig() const { return mMinSig; }
90 int getStatus() const { return mStatus; }
91 float getAmp() const { return mAmpSig; }
92 double getTime() const { return mTime; }
93 int getMaxTimeBin() const { return mMaxTimebin; }
94 float getChi2() const { return mChi2Sig; }
95 unsigned short getNdf() const { return mNdfSig; }
96
97 private:
98 unsigned short mMaxSig = 0;
99 float mPed = -1;
100 int mStatus = -1;
101 float mAmpSig = -1;
102 double mTime = -1;
103 int mMaxTimebin = -1;
104 float mChi2Sig = -1;
105 unsigned short mNdfSig = 0;
106 unsigned short mMinSig = 0;
107};
108
109} // namespace emcal
110
111} // namespace o2
112#endif
int16_t time
Definition RawEventData.h:4
Container class to hold results from fitting.
void setMinSig(unsigned short minSig)
void setMaxTimeBin(int timebin)
void setStatus(int status)
unsigned short getMaxSig() const
CaloFitResults & operator=(const CaloFitResults &source)
Assignment operator.
unsigned short getNdf() const
CaloFitResults()=default
Default constructor.
CaloFitResults(const CaloFitResults &fitresults)=default
copy constructor
void setMaxSig(unsigned short maxSig)
void setNdf(unsigned short ndf)
bool operator==(const CaloFitResults &other) const
Comparison of two fit results.
unsigned short getMinSig() const
GLsizei GLsizei GLchar * source
Definition glcorearb.h:798
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
VectorOfTObjectPtrs other