Skip to content

Commit

Permalink
Align: Opt. request debug ouput only for first lane
Browse files Browse the repository at this point in the history
  • Loading branch information
f3sch committed Nov 15, 2024
1 parent 2121e45 commit 99577ca
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions Detectors/Align/Workflow/src/BarrelAlignmentSpec.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class BarrelAlignmentSpec : public Task
bool mIgnoreCCDBAlignment = false;
bool mCosmic = false;
bool mLoadTPCCalib = false;
int mLane = 0;
size_t mLane = 0;
int mPostProcessing = 0; // special mode of extracting alignment or constraints check
GTrackID::mask_t mMPsrc{};
DetID::mask_t mDetMask{};
Expand Down Expand Up @@ -136,8 +136,8 @@ void BarrelAlignmentSpec::init(InitContext& ic)
int dbg = ic.options().get<int>("debug-output");
mLane = ic.services().get<const o2::framework::DeviceSpec>().inputTimesliceId;
mController = std::make_unique<Controller>(mDetMask, mMPsrc, mCosmic, mUseMC, mLane);
if (dbg) {
mController->setDebugOutputLevel(dbg);
if (dbg > 0 || (dbg < 0 && mLane == 0)) {
mController->setDebugOutputLevel(std::abs(dbg));
}

mConfMacro = ic.options().get<std::string>("config-macro");
Expand Down Expand Up @@ -385,8 +385,8 @@ DataProcessorSpec getBarrelAlignmentSpec(GTrackID::mask_t srcMP, GTrackID::mask_
ConfigParamSpec{"initial-params-file", VariantType::String, "", {"initial parameters file"}},
ConfigParamSpec{"config-macro", VariantType::String, "", {"configuration macro with signature (o2::align::Controller*, int) to execute from init"}},
ConfigParamSpec{"ignore-initial-params-errors", VariantType::Bool, false, {"ignore initial params (if any) errors for precondition"}},
ConfigParamSpec{"debug-output", VariantType::Int, 0, {"produce debugging output root files"}}};
if (!postprocess) {
ConfigParamSpec{"debug-output", VariantType::Int, 0, {"produce debugging output root files (>0 for all lanes; <0 only for first lane)"}}};
if (postprocess == 0) {
dataRequest->requestTracks(src, useMC);
dataRequest->requestClusters(src, false, skipDetClusters);
dataRequest->requestPrimaryVertices(useMC);
Expand Down
4 changes: 2 additions & 2 deletions Detectors/Align/include/Align/Controller.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class Controller final : public TObject
kMPAlignDone = BIT(16) };

Controller() = default;
Controller(DetID::mask_t detmask, GTrackID::mask_t trcmask, bool cosmic = false, bool useMC = false, int instID = 0);
Controller(DetID::mask_t detmask, GTrackID::mask_t trcmask, bool cosmic = false, bool useMC = false, size_t instID = 0);
~Controller() final;

void expandGlobalsBy(int n);
Expand Down Expand Up @@ -299,7 +299,7 @@ class Controller final : public TObject
GTrackID::mask_t mMPsrc{};
std::vector<int> mTrackSources;
o2::framework::TimingInfo mTimingInfo{};
int mInstanceID = 0; // instance in case of pipelining
size_t mInstanceID = 0; // instance in case of pipelining
int mRunNumber = 0;
int mNDet = 0; // number of deectors participating in the alignment
int mNDOFs = 0; // number of degrees of freedom
Expand Down
2 changes: 1 addition & 1 deletion Detectors/Align/src/Controller.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const Char_t* Controller::sDetectorName[Controller::kNDetectors] = {"ITS", "TPC"
const int Controller::sSkipLayers[Controller::kNLrSkip] = {0, 0, 0, 0}; // TODO(milettri, shahoian): needs AliGeomManager - remove this line after fix.

//________________________________________________________________
Controller::Controller(DetID::mask_t detmask, GTrackID::mask_t trcmask, bool cosmic, bool useMC, int instID)
Controller::Controller(DetID::mask_t detmask, GTrackID::mask_t trcmask, bool cosmic, bool useMC, size_t instID)
: mDetMask(detmask), mMPsrc(trcmask), mUseMC(useMC), mInstanceID(instID)
{
setCosmic(cosmic);
Expand Down

0 comments on commit 99577ca

Please sign in to comment.