Warnfixes in PWGC2F
Warnfixes in PWGC2F
The following warnings are fixed:
/u/sgorbuno/cbm/cbmroot/analysis/PWGC2F/femtoscopy/hal/helpers/fair/QAManagerBasic.cxx: In member function ‘virtual FairRunAna* Hal::Fair::QAManagerBasic::GetRunAna(TString, TString, TString, TString)’:
/u/sgorbuno/cbm/cbmroot/analysis/PWGC2F/femtoscopy/hal/helpers/fair/QAManagerBasic.cxx:38:25: warning: ‘virtual void FairRun::SetOutputFile(const char*)’ is deprecated [-Wdeprecated-declarations]
38 | run->SetOutputFile(outFile);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~
In file included from /u/sgorbuno/cbm/cbmroot/analysis/PWGC2F/femtoscopy/hal/helpers/fair/QAManagerBasic.cxx:8:
/cvmfs/fairsoft.gsi.de/debian12/fairroot/v18.8.0_fs_nov22p1/include/FairRun.h:166:33: note: declared here
166 | [[deprecated]] virtual void SetOutputFile(const char* fname);
| ^~~~~~~~~~~~~
/u/sgorbuno/cbm/cbmroot/analysis/PWGC2F/femtoscopy/hal/format/anatree/mc/HalCbmMCEvent.cxx: In member function ‘virtual Bool_t HalCbmMCEvent::ExistInTree() const’:
/u/sgorbuno/cbm/cbmroot/analysis/PWGC2F/femtoscopy/hal/format/anatree/mc/HalCbmMCEvent.cxx:40:32: warning: ‘Bool_t Hal::Event::CheckBranches(Int_t, ...) const’ is deprecated: Use CheckBranches({std::initializer_list}) instead. [-Wdeprecated-declaration ]
40 | Bool_t exist = CheckBranches(1, "CbmAnaTreeMcSourceContainer.");
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /u/sgorbuno/cbm/cbmroot/build/include/Hal/McEvent.h:12,
from /u/sgorbuno/cbm/cbmroot/analysis/PWGC2F/femtoscopy/hal/format/anatree/mc/HalCbmMCEvent.h:7,
from /u/sgorbuno/cbm/cbmroot/analysis/PWGC2F/femtoscopy/hal/format/anatree/mc/HalCbmMCEvent.cxx:4:
/u/sgorbuno/cbm/cbmroot/build/include/Hal/Event.h:118:82: note: declared here
118 | [[deprecated("Use CheckBranches({std::initializer_list}) instead.")]] Bool_t CheckBranches(Int_t n...) const;
| ^~~~~~~~~~~~~
/u/sgorbuno/cbm/cbmroot/analysis/PWGC2F/femtoscopy/hal/format/anatree/mc/HalCbmMCEvent.cxx:41:32: warning: ‘Bool_t Hal::Event::CheckBranches(Int_t, ...) const’ is deprecated: Use CheckBranches({std::initializer_list}) instead. [-Wdeprecated-declaration ]
41 | Bool_t exist2 = CheckBranches(1, "CbmMCTrack");
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/u/sgorbuno/cbm/cbmroot/build/include/Hal/Event.h:118:82: note: declared here
118 | [[deprecated("Use CheckBranches({std::initializer_list}) instead.")]] Bool_t CheckBranches(Int_t n...) const;
| ^~~~~~~~~~~~~