@@ -107,7 +107,7 @@ class BarrelAlignmentSpec : public Task
107107 bool mIgnoreCCDBAlignment = false ;
108108 bool mCosmic = false ;
109109 bool mLoadTPCCalib = false ;
110- int mLane = 0 ;
110+ size_t mLane = 0 ;
111111 int mPostProcessing = 0 ; // special mode of extracting alignment or constraints check
112112 GTrackID::mask_t mMPsrc {};
113113 DetID::mask_t mDetMask {};
@@ -136,8 +136,8 @@ void BarrelAlignmentSpec::init(InitContext& ic)
136136 int dbg = ic.options ().get <int >(" debug-output" );
137137 mLane = ic.services ().get <const o2::framework::DeviceSpec>().inputTimesliceId ;
138138 mController = std::make_unique<Controller>(mDetMask , mMPsrc , mCosmic , mUseMC , mLane );
139- if (dbg) {
140- mController ->setDebugOutputLevel (dbg);
139+ if (dbg > 0 || (dbg < 0 && mLane == 0 ) ) {
140+ mController ->setDebugOutputLevel (std::abs ( dbg) );
141141 }
142142
143143 mConfMacro = ic.options ().get <std::string>(" config-macro" );
@@ -385,8 +385,8 @@ DataProcessorSpec getBarrelAlignmentSpec(GTrackID::mask_t srcMP, GTrackID::mask_
385385 ConfigParamSpec{" initial-params-file" , VariantType::String, " " , {" initial parameters file" }},
386386 ConfigParamSpec{" config-macro" , VariantType::String, " " , {" configuration macro with signature (o2::align::Controller*, int) to execute from init" }},
387387 ConfigParamSpec{" ignore-initial-params-errors" , VariantType::Bool, false , {" ignore initial params (if any) errors for precondition" }},
388- ConfigParamSpec{" debug-output" , VariantType::Int, 0 , {" produce debugging output root files" }}};
389- if (! postprocess) {
388+ ConfigParamSpec{" debug-output" , VariantType::Int, 0 , {" produce debugging output root files (>0 for all lanes; <0 only for first lane) " }}};
389+ if (postprocess == 0 ) {
390390 dataRequest->requestTracks (src, useMC);
391391 dataRequest->requestClusters (src, false , skipDetClusters);
392392 dataRequest->requestPrimaryVertices (useMC);
0 commit comments