Skip to content
Closed
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 failure on line 1 in PWGLF/TableProducer/Strangeness/Converters/straevselsconverter5.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.)

Check failure on line 1 in PWGLF/TableProducer/Strangeness/Converters/straevselsconverter5.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[doc/file]

Provide mandatory file documentation.
// 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 failure on line 11 in PWGLF/TableProducer/Strangeness/Converters/straevselsconverter5.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 PWGLF/TableProducer/Strangeness/Converters/straevselsconverter5.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 PWGLF/TableProducer/Strangeness/Converters/straevselsconverter5.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[doc/file]

Documentation for \file is missing, incorrect or misplaced.
#include "Framework/AnalysisTask.h"
#include "Framework/AnalysisDataModel.h"
#include "CCDB/BasicCCDBManager.h"
Expand All @@ -23,21 +23,22 @@
static const int32_t nBCsPerOrbit = o2::constants::lhc::LHCMaxBunches;

// Converts Stra Event selections from 004 to 005
struct straevselsconverter5 {

Check failure on line 26 in PWGLF/TableProducer/Strangeness/Converters/straevselsconverter5.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[name/struct]

Use UpperCamelCase for names of structs.
Produces<aod::StraEvSels_005> straEvSels_005;

Check failure on line 27 in PWGLF/TableProducer/Strangeness/Converters/straevselsconverter5.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[name/function-variable]

Use lowerCamelCase for names of functions and variables.

Service<o2::ccdb::BasicCCDBManager> ccdb;

int lastRun = -1;
int64_t lastTF = -1;
uint32_t lastRCT = 0;
uint64_t sorTimestamp = 0; // default SOR timestamp
uint64_t eorTimestamp = 1; // default EOR timestamp
int64_t bcSOR = -1; // global bc of the start of run
int64_t nBCsPerTF = -1; // duration of TF in bcs, should be 128*3564 or 3
uint64_t sorTimestamp = 0; // default SOR timestamp
uint64_t eorTimestamp = 1; // default EOR timestamp
int64_t bcSOR = -1; // global bc of the start of run
int64_t nBCsPerTF = -1; // duration of TF in bcs, should be 128*3564 or 3
std::map<uint64_t, uint32_t>* mapRCT = nullptr;

uint32_t getRctRaw(int run, uint64_t timestamp, uint64_t globalBC) {
uint32_t getRctRaw(int run, uint64_t timestamp, uint64_t globalBC)
{
if (run != lastRun) {
lastRun = run;
auto runInfo = o2::parameters::AggregatedRunInfo::buildAggregatedRunInfo(o2::ccdb::BasicCCDBManager::instance(), run);
Expand Down Expand Up @@ -80,7 +81,7 @@

void process(soa::Join<aod::StraEvSels_004, aod::StraStamps> const& straEvSels_004)
{
for (auto& values : straEvSels_004) {

Check failure on line 84 in PWGLF/TableProducer/Strangeness/Converters/straevselsconverter5.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.
straEvSels_005(values.sel8(),
values.selection_raw(),
values.multFT0A(),
Expand Down
Loading