Skip to content

Commit

Permalink
deprecate(Base): FairRootFileSink::OpenRootFile
Browse files Browse the repository at this point in the history
This is just a thin wrapper that calls TFile::Open.

It's not used in FairRoot.
And everybody else should use TFile::Open.
  • Loading branch information
ChristianTackeGSI committed Aug 11, 2024
1 parent 84175d0 commit 7ce1d12
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions fairroot/base/sink/FairRootFileSink.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/********************************************************************************
* Copyright (C) 2014-2023 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* Copyright (C) 2014-2024 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* *
* This software is distributed under the terms of the *
* GNU Lesser General Public Licence version 3 (LGPL) version 3, *
Expand Down Expand Up @@ -45,7 +45,10 @@ class FairRootFileSink : public FairSink

virtual void FillEventHeader(FairEventHeader* feh);

virtual TFile* OpenRootFile(TString fileName = "");
/**
* \deprecated Just use TFile::Open directly
*/
[[deprecated("Use TFile::Open")]] virtual TFile* OpenRootFile(TString fileName = "");
TFile* GetRootFile() { return fRootFile.get(); }
TString GetFileName() override { return (fRootFile ? fRootFile->GetName() : ""); }

Expand Down

0 comments on commit 7ce1d12

Please sign in to comment.