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: 6 additions & 6 deletions PWGUD/Tasks/fwdMuonsUPC.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 warning on line 1 in PWGUD/Tasks/fwdMuonsUPC.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[const-ref-in-process]

Use constant references for table subscriptions in process functions.

Check warning on line 1 in PWGUD/Tasks/fwdMuonsUPC.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 Down Expand Up @@ -28,7 +28,7 @@
#include "DataFormatsParameters/GRPECSObject.h"
#include "PWGUD/DataModel/UDTables.h"

//#include "TDatabasePDG.h"
// #include "TDatabasePDG.h"
#include "TLorentzVector.h"
#include "TSystem.h"
#include "TMath.h"
Expand Down Expand Up @@ -165,7 +165,7 @@
const float kEtaMax = -2.5;
const float kPtMin = 0.;

struct fwdMuonsUPC {

Check warning on line 168 in PWGUD/Tasks/fwdMuonsUPC.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[name/struct]

Use UpperCamelCase for names of structs.

// a pdg object
Service<o2::framework::O2DatabasePDG> pdg;
Expand All @@ -187,7 +187,7 @@
HistogramRegistry mcRecoRegistry{"mcRecoRegistry", {}, OutputObjHandlingPolicy::AnalysisObject, true, true};

// CONFIGURABLES
static constexpr double pi = o2::constants::math::PI;

Check warning on line 190 in PWGUD/Tasks/fwdMuonsUPC.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[name/constexpr-constant]

Use UpperCamelCase for names of constexpr constants. Names of special constants may be prefixed with "k".
// pT of muon pairs
Configurable<int> nBinsPt{"nBinsPt", 250, "N bins in pT histo"};
Configurable<float> lowPt{"lowPt", 0., "lower limit in pT histo"};
Expand Down Expand Up @@ -228,7 +228,7 @@
void init(InitContext&)
{
// PDG
//pdg = TDatabasePDG::Instance();
// pdg = TDatabasePDG::Instance();

// binning of pT axis fr fit
std::vector<double> ptFitBinning = {
Expand Down Expand Up @@ -343,10 +343,10 @@
{
auto mass = pdg->Mass(pid);

//auto pdgparticle = pdg->GetParticle(pid);
//if (pdgparticle != nullptr) {
// mass = pdgparticle->Mass();
//}
// auto pdgparticle = pdg->GetParticle(pid);
// if (pdgparticle != nullptr) {
// mass = pdgparticle->Mass();
// }
return mass;
}

Expand Down Expand Up @@ -864,7 +864,7 @@
// PROCESS FUNCTION
void processData(CandidatesFwd const& eventCandidates,
o2::aod::UDZdcsReduced& ZDCs,
ForwardTracks const& fwdTracks)

Check warning on line 867 in PWGUD/Tasks/fwdMuonsUPC.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[const-ref-in-process]

Argument o2::aod::UDZdcsReduced& ZDCs is not const&.
{

// map with the tracks
Expand Down
Loading