Skip to content

Commit

Permalink
further fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
YanzhaoW committed Jul 15, 2024
1 parent f7e69c2 commit 2510eb9
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 15 deletions.
5 changes: 0 additions & 5 deletions examples/MQ/pixelDetector/src/PixelDigiBinSource.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,6 @@ Bool_t PixelDigiBinSource::ActivateObject(TObject** obj, const char* BrName)
return kTRUE;
}

void PixelDigiBinSource::Close()
{
fInputFile.close();
}

void PixelDigiBinSource::Reset() {}

Int_t PixelDigiBinSource::CheckMaxEventNo(Int_t /*EvtEnd*/)
Expand Down
1 change: 0 additions & 1 deletion examples/MQ/pixelDetector/src/PixelDigiBinSource.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ class PixelDigiBinSource : public FairSource
Bool_t Init() override;

Int_t ReadEvent(UInt_t i = 0) override;
[[deprecated("Close will go away, the dtor closes resources")]] void Close() override;
void Reset() override;
Bool_t SpecifyRunId() override
{
Expand Down
7 changes: 0 additions & 7 deletions fairroot/base/sink/FairRootFileSink.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,6 @@ FairRootFileSink::FairRootFileSink(const TString RootFileName, const char* Title
LOG(debug) << "FairRootFileSink created------------";
}

FairRootFileSink::~FairRootFileSink()
{
if (fRootFile) {
fRootFile->Close();
}
}

TFile* FairRootFileSink::OpenRootFile(TString fileName)
{
if (fileName.Length() <= 5)
Expand Down
1 change: 0 additions & 1 deletion fairroot/base/sink/FairRootFileSink.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ class FairRootFileSink : public FairSink
FairRootFileSink(const TString RootFileName, const char* Title = "OutputRootFile");
FairRootFileSink(const FairRootFileSink&) = delete;
FairRootFileSink operator=(const FairRootFileSink&) = delete;
~FairRootFileSink() override;

Bool_t InitSink() override;
void Reset() override;
Expand Down
2 changes: 1 addition & 1 deletion fairroot/base/sink/FairSink.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class FairSink
virtual ~FairSink();

virtual Bool_t InitSink() = 0;
[[deprecated("Close will go away, the dtor closes resources")]] virtual void Close(){};
[[deprecated("Close will go away, the dtor closes resources")]] virtual void Close() {}
virtual void Reset() = 0;

virtual Sink_Type GetSinkType() = 0;
Expand Down

0 comments on commit 2510eb9

Please sign in to comment.