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
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.

Check warning on line 1 in PWGLF/TableProducer/Strangeness/Converters/stradautracksextraconverter2.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[doc/file]

Provide mandatory file documentation.

Check warning on line 1 in PWGLF/TableProducer/Strangeness/Converters/stradautracksextraconverter2.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[name/workflow-file]

Name of a workflow file must match the name of the main struct in it (without the PWG prefix). (Class implementation files should be in "Core" directories.)
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
// All rights not expressly granted are reserved.
//
Expand All @@ -8,7 +8,7 @@
// In applying this license CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
#include "Framework/runDataProcessing.h"

Check warning on line 11 in PWGLF/TableProducer/Strangeness/Converters/stradautracksextraconverter2.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[doc/file]

Documentation for \file is missing, incorrect or misplaced.

Check warning on line 11 in PWGLF/TableProducer/Strangeness/Converters/stradautracksextraconverter2.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[doc/file]

Documentation for \brief is missing, incorrect or misplaced.

Check warning on line 11 in PWGLF/TableProducer/Strangeness/Converters/stradautracksextraconverter2.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[doc/file]

Documentation for \author is missing, incorrect or misplaced.
#include "Framework/AnalysisTask.h"
#include "Framework/AnalysisDataModel.h"
#include "PWGLF/DataModel/LFStrangenessTables.h"
Expand All @@ -18,15 +18,15 @@
using namespace o2::framework;

// Converts daughter TracksExtra from 1 to 2
struct stradautracksextraconverter2 {

Check warning on line 21 in PWGLF/TableProducer/Strangeness/Converters/stradautracksextraconverter2.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[name/struct]

Use UpperCamelCase for names of structs.
Produces<aod::DauTrackExtras_002> dauTrackExtras_002;

Check warning on line 22 in PWGLF/TableProducer/Strangeness/Converters/stradautracksextraconverter2.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[name/function-variable]

Use lowerCamelCase for names of functions and variables.

void process(aod::DauTrackExtras_001 const& dauTrackExtras_001)
{
for (auto& values : dauTrackExtras_001) {

Check warning on line 26 in PWGLF/TableProducer/Strangeness/Converters/stradautracksextraconverter2.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[const-ref-in-for-loop]

Use constant references for non-modified iterators in range-based for loops.
const int maxFindable = 130; //synthetic findable to ensure range is ok
int findableMinusFound = maxFindable-values.tpcClusters();
int findableMinusCrossedRows = maxFindable-values.tpcCrossedRows();
const int maxFindable = 130; // synthetic findable to ensure range is ok
int findableMinusFound = maxFindable - values.tpcClusters();
int findableMinusCrossedRows = maxFindable - values.tpcCrossedRows();
dauTrackExtras_002(values.itsChi2PerNcl(),
values.detectorMap(),
values.itsClusterSizes(),
Expand Down
Loading