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
17 changes: 10 additions & 7 deletions Common/Tasks/trackqa.cxx
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 failure on line 1 in Common/Tasks/trackqa.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[doc/file]

Provide mandatory file documentation.

Check failure on line 1 in Common/Tasks/trackqa.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[o2-workflow-options]

Do not use workflow options to customise workflow topology composition in defineDataProcessing. Use process function switches or metadata instead.
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
// All rights not expressly granted are reserved.
//
Expand All @@ -8,11 +8,14 @@
// 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.

Check failure on line 11 in Common/Tasks/trackqa.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[doc/file]

Documentation for \author is missing, incorrect or misplaced.

Check failure on line 11 in Common/Tasks/trackqa.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[doc/file]

Documentation for \brief is missing, incorrect or misplaced.

Check failure on line 11 in Common/Tasks/trackqa.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[doc/file]

Documentation for \file is missing, incorrect or misplaced.
//
// Task producing basic tracking qa histograms
//

#include <utility> // std::swap
#include <vector>

#include "Framework/AnalysisDataModel.h"
#include "Framework/AnalysisTask.h"
#include "Framework/HistogramRegistry.h"
Expand Down Expand Up @@ -54,13 +57,13 @@
// kine histograms
histos.add("Kine/pt", "#it{p}_{T};#it{p}_{T} [GeV/c]", kTH1D, {{ptBinning}});
histos.add("Kine/eta", "#eta;#eta", kTH1D, {{180, -0.9, 0.9}});
histos.add("Kine/phi", "#phi;#phi [rad]", kTH1D, {{180, 0., 2 * M_PI}});

Check failure on line 60 in Common/Tasks/trackqa.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[pi-multiple-fraction]

Use multiples/fractions of PI defined in o2::constants::math.

Check failure on line 60 in Common/Tasks/trackqa.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[external-pi]

Use the PI constant (and its multiples and fractions) defined in o2::constants::math.

// track histograms
histos.add("TrackPar/x", "track #it{x} position at dca in local coordinate system;#it{x} [cm]", kTH1D, {{200, -0.36, 0.36}});
histos.add("TrackPar/y", "track #it{y} position at dca in local coordinate system;#it{y} [cm]", kTH1D, {{200, -0.5, 0.5}});
histos.add("TrackPar/z", "track #it{z} position at dca in local coordinate system;#it{z} [cm]", kTH1D, {{200, -11., 11.}});
histos.add("TrackPar/alpha", "rotation angle of local wrt. global coordinate system;#alpha [rad]", kTH1D, {{36, -M_PI, M_PI}});

Check failure on line 66 in Common/Tasks/trackqa.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[external-pi]

Use the PI constant (and its multiples and fractions) defined in o2::constants::math.
histos.add("TrackPar/signed1Pt", "track signed 1/#it{p}_{T};#it{q}/#it{p}_{T}", kTH1D, {{200, -8, 8}});
histos.add("TrackPar/snp", "sinus of track momentum azimuthal angle;snp", kTH1D, {{11, -0.1, 0.1}});
histos.add("TrackPar/tgl", "tangent of the track momentum dip angle;tgl;", kTH1D, {{200, -1., 1.}});
Expand Down Expand Up @@ -101,7 +104,7 @@
histos.fill(HIST("TrackPar/signed1Pt"), track.signed1Pt());
histos.fill(HIST("TrackPar/snp"), track.snp());
histos.fill(HIST("TrackPar/tgl"), track.tgl());
for (unsigned int i = 0; i < 64; i++) {
for (unsigned int i = 0; i < 32; i++) {

Check failure on line 107 in Common/Tasks/trackqa.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
if (track.flags() & (1 << i)) {
histos.fill(HIST("TrackPar/flags"), i);
}
Expand All @@ -113,7 +116,7 @@
// fill ITS variables
histos.fill(HIST("ITS/itsNCls"), track.itsNCls());
histos.fill(HIST("ITS/itsChi2NCl"), track.itsChi2NCl());
for (unsigned int i = 0; i < 7; i++) {

Check failure on line 119 in Common/Tasks/trackqa.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
if (track.itsClusterMap() & (1 << i)) {
histos.fill(HIST("ITS/itsHits"), i);
}
Expand Down Expand Up @@ -161,13 +164,13 @@

HistogramRegistry resolution{"Resolution", {}, OutputObjHandlingPolicy::QAObject};

void init(o2::framework::InitContext&){

};

void process(soa::Join<aod::FullTracks, aod::McTrackLabels>::iterator const&){
void init(o2::framework::InitContext&)
{
}

};
void process(soa::Join<aod::FullTracks, aod::McTrackLabels>::iterator const&)
{
}
};

//****************************************************************************************
Expand Down
Loading