Skip to content
Merged
Show file tree
Hide file tree
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
84 changes: 84 additions & 0 deletions PWGLF/DataModel/LFSpincorrelationTables.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.

Check failure on line 1 in PWGLF/DataModel/LFSpincorrelationTables.h

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.
//
// This software is distributed under the terms of the GNU General Public
// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
//
// 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.

///
/// \author Sourav Kundu <sourav.kundu@cern.ch>

Check failure on line 13 in PWGLF/DataModel/LFSpincorrelationTables.h

View workflow job for this annotation

GitHub Actions / O2 linter

[doc/file]

Documentation for \brief is missing, incorrect or misplaced.

Check failure on line 13 in PWGLF/DataModel/LFSpincorrelationTables.h

View workflow job for this annotation

GitHub Actions / O2 linter

[doc/file]

Documentation for \file is missing, incorrect or misplaced.

#ifndef PWGLF_DATAMODEL_LFSPINCORRELATIONTABLES_H_
#define PWGLF_DATAMODEL_LFSPINCORRELATIONTABLES_H_

#include "Common/Core/RecoDecay.h"
#include "Common/DataModel/Centrality.h"
#include "Common/DataModel/Multiplicity.h"
#include "Common/DataModel/PIDResponse.h"
#include "Common/DataModel/TrackSelectionTables.h"

#include "Framework/ASoA.h"
#include "Framework/AnalysisDataModel.h"

#include <cmath>

namespace o2::aod
{
namespace lambdaspincorrevent
{
DECLARE_SOA_COLUMN(Cent, cent, float);
DECLARE_SOA_COLUMN(Posz, posz, float);
} // namespace lambdaspincorrevent
DECLARE_SOA_TABLE(LambdaSpinCorrEvents, "AOD", "LAMBDASPINCOREVENT",
o2::soa::Index<>,
lambdaspincorrevent::Cent,
lambdaspincorrevent::Posz)
using LambdaSpinCorrEvent = LambdaSpinCorrEvents::iterator;

namespace lambdaspincorrpair
{
DECLARE_SOA_INDEX_COLUMN(LambdaSpinCorrEvent, lambdaspincorrevent);

Check failure on line 44 in PWGLF/DataModel/LFSpincorrelationTables.h

View workflow job for this annotation

GitHub Actions / O2 linter

[name/o2-column]

Use UpperCamelCase for names of O2 columns and matching lowerCamelCase names for their getters.
DECLARE_SOA_COLUMN(V0Status, v0Status, float); //! Lambda or Anti-Lambda status
DECLARE_SOA_COLUMN(DoubleStatus, doubleStatus, bool); //! Double status
DECLARE_SOA_COLUMN(V0Cospa, v0Cospa, float); //! V0 Cospa
DECLARE_SOA_COLUMN(V0Radius, v0Radius, float); //! V0 Radius
DECLARE_SOA_COLUMN(DcaPositive, dcaPositive, float); //! DCA Positive
DECLARE_SOA_COLUMN(DcaNegative, dcaNegative, float); //! DCA Negative
DECLARE_SOA_COLUMN(DcaBetweenDaughter, dcaBetweenDaughter, float); //! DCA between daughters
DECLARE_SOA_COLUMN(LambdaPt, lambdaPt, float); //! Lambda Pt
DECLARE_SOA_COLUMN(LambdaEta, lambdaEta, float); //! Lambda Eta
DECLARE_SOA_COLUMN(LambdaPhi, lambdaPhi, float); //! Lambda Phi
DECLARE_SOA_COLUMN(LambdaMass, lambdaMass, float); //! Lambda Mass
DECLARE_SOA_COLUMN(ProtonPt, protonPt, float); //! Proton Pt
DECLARE_SOA_COLUMN(ProtonEta, protonEta, float); //! Proton Eta
DECLARE_SOA_COLUMN(ProtonPhi, protonPhi, float); //! Proton Phi
DECLARE_SOA_COLUMN(ProtonIndex, protonIndex, int); //! Proton index
DECLARE_SOA_COLUMN(PionIndex, pionIndex, int); //! Pion index
} // namespace lambdaspincorrpair
DECLARE_SOA_TABLE(LambdaSpinCorrPairs, "AOD", "LAMBDAPAIR",
o2::soa::Index<>,
lambdaspincorrpair::LambdaSpinCorrEventId,
lambdaspincorrpair::V0Status,
lambdaspincorrpair::DoubleStatus,
lambdaspincorrpair::V0Cospa,
lambdaspincorrpair::V0Radius,
lambdaspincorrpair::DcaPositive,
lambdaspincorrpair::DcaNegative,
lambdaspincorrpair::DcaBetweenDaughter,
lambdaspincorrpair::LambdaPt,
lambdaspincorrpair::LambdaEta,
lambdaspincorrpair::LambdaPhi,
lambdaspincorrpair::LambdaMass,
lambdaspincorrpair::ProtonPt,
lambdaspincorrpair::ProtonEta,
lambdaspincorrpair::ProtonPhi,
lambdaspincorrpair::ProtonIndex,
lambdaspincorrpair::PionIndex);

using LambdaSpinCorrPair = LambdaSpinCorrPairs::iterator;
} // namespace o2::aod
#endif // PWGLF_DATAMODEL_LFSPINCORRELATIONTABLES_H_
7 changes: 6 additions & 1 deletion PWGLF/TableProducer/Strangeness/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore
COMPONENT_NAME Analysis)

o2physics_add_dpl_workflow(hstrangecorrelationfilter

Check failure on line 54 in PWGLF/TableProducer/Strangeness/CMakeLists.txt

View workflow job for this annotation

GitHub Actions / O2 linter

[name/o2-workflow]

Workflow name hstrangecorrelationfilter does not match its file name hStrangeCorrelationFilter.cxx. (Matches hstrangecorrelationfilter.cxx.)
SOURCES hStrangeCorrelationFilter.cxx
PUBLIC_LINK_LIBRARIES O2::DCAFitter O2Physics::AnalysisCore O2Physics::EventFilteringUtils
COMPONENT_NAME Analysis)
Expand Down Expand Up @@ -91,7 +91,7 @@
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore
COMPONENT_NAME Analysis)

o2physics_add_dpl_workflow(strange-tree-creator

Check failure on line 94 in PWGLF/TableProducer/Strangeness/CMakeLists.txt

View workflow job for this annotation

GitHub Actions / O2 linter

[name/o2-workflow]

Workflow name strange-tree-creator does not match its file name LFStrangeTreeCreator.cxx. (Matches strangeTreeCreator.cxx.)
SOURCES LFStrangeTreeCreator.cxx
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore
COMPONENT_NAME Analysis)
Expand All @@ -111,7 +111,7 @@
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore O2::DCAFitter KFParticle::KFParticle O2Physics::TPCDriftManager
COMPONENT_NAME Analysis)

o2physics_add_dpl_workflow(v0-selector

Check failure on line 114 in PWGLF/TableProducer/Strangeness/CMakeLists.txt

View workflow job for this annotation

GitHub Actions / O2 linter

[name/o2-workflow]

Workflow name v0-selector does not match its file name v0selector.cxx. (Matches v0Selector.cxx.)
SOURCES v0selector.cxx
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore
COMPONENT_NAME Analysis)
Expand All @@ -121,18 +121,18 @@
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore
COMPONENT_NAME Analysis)

o2physics_add_dpl_workflow(lambdalambdatable

Check failure on line 124 in PWGLF/TableProducer/Strangeness/CMakeLists.txt

View workflow job for this annotation

GitHub Actions / O2 linter

[name/o2-workflow]

Workflow name lambdalambdatable does not match its file name LambdaLambdatable.cxx. (Matches lambdalambdatable.cxx.)
SOURCES LambdaLambdatable.cxx
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore O2::DetectorsVertexing
COMPONENT_NAME Analysis)

# ML selection
o2physics_add_dpl_workflow(lambdakzeromlselectiontreecreator

Check failure on line 130 in PWGLF/TableProducer/Strangeness/CMakeLists.txt

View workflow job for this annotation

GitHub Actions / O2 linter

[name/o2-workflow]

Workflow name lambdakzeromlselectiontreecreator does not match its file name lambdakzeroMLSelectionTreeCreator.cxx. (Matches lambdakzeromlselectiontreecreator.cxx.)
SOURCES lambdakzeroMLSelectionTreeCreator.cxx
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore
COMPONENT_NAME Analysis)

o2physics_add_dpl_workflow(cascademlselectiontreecreator

Check failure on line 135 in PWGLF/TableProducer/Strangeness/CMakeLists.txt

View workflow job for this annotation

GitHub Actions / O2 linter

[name/o2-workflow]

Workflow name cascademlselectiontreecreator does not match its file name cascadeMLSelectionTreeCreator.cxx. (Matches cascademlselectiontreecreator.cxx.)
SOURCES cascadeMLSelectionTreeCreator.cxx
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore
COMPONENT_NAME Analysis)
Expand Down Expand Up @@ -160,4 +160,9 @@
o2physics_add_dpl_workflow(stracents
SOURCES stracents.cxx
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore
COMPONENT_NAME Analysis)
COMPONENT_NAME Analysis)

o2physics_add_dpl_workflow(lambdaspincorrelation
SOURCES lambdaspincorrelation.cxx
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore
COMPONENT_NAME Analysis)
Loading
Loading