Commit 89780693 authored by Administrator's avatar Administrator Committed by Florian Uhlig
Browse files

Use new enumerator correctly

Build glue code for the new enumerator such that it can be properly used in
the macro.
parent cb85dc6e
......@@ -279,8 +279,8 @@ void run_reco(TString input = "", Int_t nTimeSlices = -1, Int_t firstTimeSlice =
// ----- Local reconstruction in STS ----------------------------------
if (useSts) {
CbmRecoSts* stsReco = new CbmRecoSts(kCbmRecoTimeslice);
if (eventBased) stsReco->SetMode(kCbmRecoEvent);
CbmRecoSts* stsReco = new CbmRecoSts(ECbmRecoMode::kCbmRecoTimeslice);
if (eventBased) stsReco->SetMode(ECbmRecoMode::kCbmRecoEvent);
run->AddTask(stsReco);
std::cout << "-I- " << myName << ": Added task " << stsReco->GetName() << std::endl;
}
......
......@@ -25,4 +25,6 @@
#pragma link C++ class CbmStsUnpackConfig + ;
#pragma link C++ class CbmStsUnpackMonitor + ;
#pragma link C++ enum ECbmRecoMode;
#endif /* __CINT__ */
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment