Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion Common/Tools/TrackPropagationModule.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// or submit itself to any jurisdiction.

/// \file TrackPropagationModule.h
/// \brief track propagation module functionality to be used in tasks
/// \brief track propagation module functionality to be used in core services
/// \author ALICE

#ifndef COMMON_TOOLS_TRACKPROPAGATIONMODULE_H_
Expand Down Expand Up @@ -54,7 +54,7 @@

struct TrackPropagationConfigurables : o2::framework::ConfigurableGroup {
std::string prefix = "trackPropagation";
o2::framework::Configurable<float> minPropagationRadius{"minPropagationDistance", o2::constants::geom::XTPCInnerRef + 0.1, "Only tracks which are at a smaller radius will be propagated, defaults to TPC inner wall"};

Check failure on line 57 in Common/Tools/TrackPropagationModule.h

View workflow job for this annotation

GitHub Actions / O2 linter

[name/configurable]

Use lowerCamelCase for names of configurables and use the same name for the struct member as for the JSON string. (Declare the type and names on the same line.)
// for TrackTuner only (MC smearing)
o2::framework::Configurable<bool> useTrackTuner{"useTrackTuner", false, "Apply track tuner corrections to MC"};
o2::framework::Configurable<bool> useTrkPid{"useTrkPid", false, "use pid in tracking"};
Expand All @@ -73,6 +73,7 @@
}

// controls behaviour
bool fillTracks = false;
bool fillTracksCov = false;
bool fillTracksDCA = false;
bool fillTracksDCACov = false;
Expand All @@ -93,10 +94,15 @@
void init(TConfigurableGroup const& cGroup, THistoRegistry& registry, TInitContext& initContext)
{
// Checking if the tables are requested in the workflow and enabling them
fillTracks = isTableRequiredInWorkflow(initContext, "Tracks");
fillTracksCov = isTableRequiredInWorkflow(initContext, "TracksCov");
fillTracksDCA = isTableRequiredInWorkflow(initContext, "TracksDCA");
fillTracksDCACov = isTableRequiredInWorkflow(initContext, "TracksDCACov");

if (!fillTracks) {
LOGF(info, "Track propagation to PV not required. Suppressing all further processing and logs.");
}

/// TrackTuner initialization
if (cGroup.useTrackTuner.value) {
std::string outputStringParams = "";
Expand Down Expand Up @@ -129,6 +135,10 @@
template <bool isMc, typename TConfigurableGroup, typename TCCDBLoader, typename TCollisions, typename TTracks, typename TOutputGroup, typename THistoRegistry>
void fillTrackTables(TConfigurableGroup const& cGroup, TCCDBLoader const& ccdbLoader, TCollisions const& collisions, TTracks const& tracks, TOutputGroup& cursors, THistoRegistry& registry)
{
if (!fillTracks) {
return; // suppress everything
}

if (fillTracksCov) {
cursors.tracksParCovPropagated.reserve(tracks.size());
cursors.tracksParCovExtensionPropagated.reserve(tracks.size());
Expand Down
Loading