Skip to content

Commit 5bd3943

Browse files
wiechulasawenzel
authored andcommitted
fix codechecker errors
1 parent 9660c13 commit 5bd3943

3 files changed

Lines changed: 13 additions & 13 deletions

File tree

Detectors/TPC/calibration/include/TPCCalibration/CalibPedestal.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ class CalibPedestal : public CalibRawBase
4040
/// Update function called once per digit
4141
///
4242
/// \param sector
43-
virtual Int_t Update(const Int_t sector, const Int_t row, const Int_t pad,
44-
const Int_t timeBin, const Float_t signal) final;
43+
Int_t Update(const Int_t sector, const Int_t row, const Int_t pad,
44+
const Int_t timeBin, const Float_t signal) final;
4545

4646
/// Analyse the buffered adc values and calculate noise and pedestal
4747
void analyse();
@@ -57,7 +57,7 @@ class CalibPedestal : public CalibRawBase
5757
const CalPad& getNoise() const { return mNoise; }
5858

5959
/// Dump the relevant data to file
60-
virtual void dumpToFile(TString filename) final;
60+
void dumpToFile(TString filename) final;
6161

6262

6363
//private:
@@ -76,7 +76,7 @@ class CalibPedestal : public CalibRawBase
7676
vectorType* getVector(ROC roc, bool create=kFALSE);
7777

7878
/// dummy reset
79-
virtual void ResetEvent() final {}
79+
void ResetEvent() final {}
8080
};
8181

8282
} // namespace TPC

Detectors/TPC/monitor/include/TPCMonitor/SimpleEventDisplay.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ class SimpleEventDisplay : public CalibRawBase
3131

3232
virtual ~SimpleEventDisplay() = default;
3333

34-
virtual Int_t Update(const Int_t roc, const Int_t row, const Int_t pad,
35-
const Int_t timeBin, const Float_t signal) override;
34+
Int_t Update(const Int_t roc, const Int_t row, const Int_t pad,
35+
const Int_t timeBin, const Float_t signal) final;
3636

3737
CalPad* getCalPadMax() {return &mPadMax;}
3838

@@ -63,7 +63,7 @@ class SimpleEventDisplay : public CalibRawBase
6363

6464
const Mapper& mTPCmapper; //! mapper
6565

66-
virtual void ResetEvent() override;
66+
void ResetEvent() final;
6767
};
6868

6969

Detectors/TPC/monitor/src/SimpleEventDisplay.cxx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,9 @@ Int_t SimpleEventDisplay::Update(const Int_t roc,
141141
TH1D* SimpleEventDisplay::MakePadSignals(Int_t roc, Int_t row, Int_t pad)
142142
{
143143
// TODO: check
144-
//if (roc<0||roc>=(Int_t)mROC->GetNSectors()) return 0x0;
145-
//if (row<0||row>=(Int_t)mROC->GetNRows(roc)) return 0x0;
146-
//if (pad<0||pad>=(Int_t)mROC->GetNPads(roc,row)) return 0x0;
144+
//if (roc<0||roc>=(Int_t)mROC->GetNSectors()) return nullptr;
145+
//if (row<0||row>=(Int_t)mROC->GetNRows(roc)) return nullptr;
146+
//if (pad<0||pad>=(Int_t)mROC->GetNPads(roc,row)) return nullptr;
147147
// TODO: possible bug for OROC
148148
const Int_t channel =
149149
mTPCmapper.globalPadNumber(PadPos(row,pad))
@@ -158,11 +158,11 @@ TH1D* SimpleEventDisplay::MakePadSignals(Int_t roc, Int_t row, Int_t pad)
158158
mLastSelSector=mSelectedSector;
159159
mSectorLoop=kFALSE;
160160
}
161-
TH1D *h=0x0;
161+
TH1D *h=nullptr;
162162
const Int_t nbins = mLastTimeBin - mFirstTimeBin;
163-
if (nbins<=0) return 0x0;
163+
if (nbins<=0) return nullptr;
164164
const Int_t offset = (nbins+2)*(channel+1);
165-
Double_t *arrP=0x0;
165+
Double_t *arrP=nullptr;
166166

167167
const FECInfo& fecInfo = mTPCmapper.getFECInfo(PadROCPos(roc, row, pad));
168168

0 commit comments

Comments
 (0)