|
26 | 26 | #include "DataFormatsFT0/RecPoints.h" |
27 | 27 | #include "Framework/ConfigParamRegistry.h" |
28 | 28 | #include "Framework/CCDBParamSpec.h" |
| 29 | +#include "Framework/DeviceSpec.h" |
29 | 30 | #include "FT0Reconstruction/InteractionTag.h" |
30 | 31 | #include "ITSMFTBase/DPLAlpideParam.h" |
31 | 32 | #include "DetectorsCommonDataFormats/DetID.h" |
@@ -118,8 +119,12 @@ void TrackingStudySpec::init(InitContext& ic) |
118 | 119 | { |
119 | 120 | o2::base::GRPGeomHelper::instance().setRequest(mGGCCDBRequest); |
120 | 121 | mTPCCorrMapsLoader.init(ic); |
121 | | - mDBGOut = std::make_unique<o2::utils::TreeStreamRedirector>("trackStudy.root", "recreate"); |
122 | | - mDBGOutVtx = std::make_unique<o2::utils::TreeStreamRedirector>("trackStudyVtx.root", "recreate"); |
| 122 | + int lane = ic.services().get<const o2::framework::DeviceSpec>().inputTimesliceId; |
| 123 | + int maxLanes = ic.services().get<const o2::framework::DeviceSpec>().maxInputTimeslices; |
| 124 | + std::string dbgnm = maxLanes == 1 ? "trackStudy.root" : fmt::format("trackStudy_{}.root", lane); |
| 125 | + mDBGOut = std::make_unique<o2::utils::TreeStreamRedirector>(dbgnm.c_str(), "recreate"); |
| 126 | + dbgnm = maxLanes == 1 ? "trackStudyVtx.root" : fmt::format("trackStudyVtx_{}.root", lane); |
| 127 | + mDBGOutVtx = std::make_unique<o2::utils::TreeStreamRedirector>(dbgnm.c_str(), "recreate"); |
123 | 128 | mStoreWithITSOnly = ic.options().get<bool>("with-its-only"); |
124 | 129 | mMaxVTTimeDiff = ic.options().get<float>("max-vtx-timediff"); |
125 | 130 | mMaxNeighbours = ic.options().get<int>("max-vtx-neighbours"); |
|
0 commit comments