Skip to content

Commit d7049e1

Browse files
ChristianTackeGSIkarabowi
authored andcommitted
refactor(examples): Drop empty Reset methods
1 parent 9a74545 commit d7049e1

4 files changed

Lines changed: 8 additions & 26 deletions

File tree

examples/MQ/pixelAlternative/src/PixelAltDigiWriteToRootVector.cxx

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/********************************************************************************
2-
* Copyright (C) 2014-2023 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
2+
* Copyright (C) 2014-2024 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
33
* *
44
* This software is distributed under the terms of the *
55
* GNU Lesser General Public Licence (LGPL) version 3, *
@@ -47,16 +47,12 @@ PixelAltDigiWriteToRootVector::PixelAltDigiWriteToRootVector(const char* name, I
4747
, fRunId(0)
4848
, fMCEntryNo(0)
4949
, fPartNo(0)
50-
{
51-
Reset();
52-
}
50+
{}
5351

54-
PixelAltDigiWriteToRootVector::~PixelAltDigiWriteToRootVector() { Reset(); }
52+
PixelAltDigiWriteToRootVector::~PixelAltDigiWriteToRootVector() = default;
5553

5654
void PixelAltDigiWriteToRootVector::Exec(Option_t* /*opt*/)
5755
{
58-
Reset();
59-
6056
Int_t nofDigis = fDigis->GetEntriesFast();
6157

6258
for (Int_t ifile = 0; ifile < fNofOutputFiles; ifile++) {
@@ -102,7 +98,6 @@ void PixelAltDigiWriteToRootVector::Exec(Option_t* /*opt*/)
10298

10399
InitStatus PixelAltDigiWriteToRootVector::Init()
104100
{
105-
106101
// Get input array
107102
FairRootManager* ioman = FairRootManager::Instance();
108103

@@ -163,8 +158,6 @@ InitStatus PixelAltDigiWriteToRootVector::ReInit()
163158
return Status;
164159
}
165160

166-
void PixelAltDigiWriteToRootVector::Reset() {}
167-
168161
void PixelAltDigiWriteToRootVector::Finish()
169162
{
170163
for (Int_t ifile = 0; ifile < fNofOutputFiles; ifile++) {

examples/MQ/pixelAlternative/src/PixelAltDigiWriteToRootVector.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/********************************************************************************
2-
* Copyright (C) 2014-2022 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
2+
* Copyright (C) 2014-2024 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
33
* *
44
* This software is distributed under the terms of the *
55
* GNU Lesser General Public Licence (LGPL) version 3, *
@@ -71,9 +71,6 @@ class PixelAltDigiWriteToRootVector : public FairTask
7171
/** Reinitialisation **/
7272
virtual InitStatus ReInit();
7373

74-
/** Reset eventwise counters **/
75-
void Reset();
76-
7774
/** Finish at the end of each event **/
7875
virtual void Finish();
7976

examples/MQ/pixelDetector/src/PixelDigiWriteToFile.cxx

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/********************************************************************************
2-
* Copyright (C) 2014-2023 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
2+
* Copyright (C) 2014-2024 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
33
* *
44
* This software is distributed under the terms of the *
55
* GNU Lesser General Public Licence (LGPL) version 3, *
@@ -38,17 +38,12 @@ PixelDigiWriteToFile::PixelDigiWriteToFile(const char* name, Int_t iVerbose)
3838
, fRunId(0)
3939
, fMCEntryNo(0)
4040
, fPartNo(0)
41+
{}
4142

42-
{
43-
Reset();
44-
}
45-
46-
PixelDigiWriteToFile::~PixelDigiWriteToFile() { Reset(); }
43+
PixelDigiWriteToFile::~PixelDigiWriteToFile() = default;
4744

4845
void PixelDigiWriteToFile::Exec(Option_t* /*opt*/)
4946
{
50-
Reset();
51-
5247
Int_t nofDigis = fDigis->GetEntriesFast();
5348

5449
for (Int_t ifile = 0; ifile < fNofOutputFiles; ifile++) {

examples/MQ/pixelDetector/src/PixelDigiWriteToFile.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/********************************************************************************
2-
* Copyright (C) 2014-2022 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
2+
* Copyright (C) 2014-2024 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
33
* *
44
* This software is distributed under the terms of the *
55
* GNU Lesser General Public Licence (LGPL) version 3, *
@@ -64,9 +64,6 @@ class PixelDigiWriteToFile : public FairTask
6464
/** Reinitialisation **/
6565
InitStatus ReInit() override;
6666

67-
/** Reset eventwise counters **/
68-
void Reset() {}
69-
7067
/** Finish at the end of each event **/
7168
void Finish() override;
7269

0 commit comments

Comments
 (0)