Skip to content

Commit

Permalink
fixed matching
Browse files Browse the repository at this point in the history
  • Loading branch information
Archita-Dash committed Sep 10, 2024
2 parents 8d69ff1 + 18bf88d commit 94f026a
Show file tree
Hide file tree
Showing 47 changed files with 2,311 additions and 321 deletions.
1 change: 1 addition & 0 deletions Common/DataModel/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ o2physics_add_header_only_library(DataModel
TrackSelectionTables.h
McCollisionExtra.h
Qvectors.h
MatchMFTFT0.h
MftmchMatchingML.h)
34 changes: 34 additions & 0 deletions Common/DataModel/MatchMFTFT0.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
// 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.

// \file MatchMFTFT0.h
// \author Sarah Herrmann <[email protected]>
//
// \brief Declaration of tables useful for the matching of MFT tracks to FT0-C signals
// \date 03/09/24

#include "Framework/AnalysisDataModel.h"

namespace o2::aod
{
namespace indices
{ // For bctoft0c
DECLARE_SOA_ARRAY_INDEX_COLUMN(FT0, ft0s); // has_ft0s works now, without it doesn't
DECLARE_SOA_ARRAY_INDEX_COLUMN(BC, bcs); // has_bcs works now, without it doesn't
} // namespace indices
namespace ambii
{ // for MA2T
DECLARE_SOA_INDEX_COLUMN(MFTTrack, track);
} // namespace ambii
DECLARE_SOA_TABLE(MatchedToFT0, "AOD", "MAFT", indices::BCId, indices::FT0Ids);

DECLARE_SOA_TABLE(BCofMFT, "AOD", "BCOFMFT", ambii::MFTTrackId, indices::BCIds);
} // namespace o2::aod
21 changes: 17 additions & 4 deletions Common/DataModel/Multiplicity.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ DECLARE_SOA_TABLE(PVMults, "AOD", "PVMULT", //! Multiplicity from the PV contrib
mult::IsInelGt1<mult::MultNTracksPVeta1>);
using BarrelMults = soa::Join<TrackletMults, TPCMults, PVMults>;
using Mults = soa::Join<BarrelMults, FV0Mults, FT0Mults, FDDMults, ZDCMults>;
using FT0Mult = FT0Mults::iterator;
using Mult = Mults::iterator;

DECLARE_SOA_TABLE(MultsExtra, "AOD", "MULTEXTRA", //!
Expand All @@ -129,7 +130,9 @@ DECLARE_SOA_TABLE(MultsGlobal, "AOD", "MULTGLOBAL", //! counters that use Track
DECLARE_SOA_TABLE(MultSelections, "AOD", "MULTSELECTIONS", //!
evsel::Selection); // for derived data / QA studies
using MultExtra = MultsExtra::iterator;
DECLARE_SOA_TABLE(MultsExtraMC, "AOD", "MULTEXTRAMC", //! Table for the MC information

// mc collisions table - indexed to Mult
DECLARE_SOA_TABLE(MultMCExtras, "AOD", "MULTMCEXTRA", //! Table for the MC information
mult::MultMCFT0A,
mult::MultMCFT0C,
mult::MultMCNParticlesEta05,
Expand All @@ -139,7 +142,17 @@ DECLARE_SOA_TABLE(MultsExtraMC, "AOD", "MULTEXTRAMC", //! Table for the MC infor
mult::IsInelGt0<mult::MultMCNParticlesEta10>,
mult::IsInelGt1<mult::MultMCNParticlesEta10>,
o2::soa::Marker<1>);
using MultExtraMC = MultsExtraMC::iterator;
using MultMCExtra = MultMCExtras::iterator;
using MultsExtraMC = MultMCExtras; // for backwards compatibility with previous naming scheme

// crosslinks
namespace mult
{
DECLARE_SOA_INDEX_COLUMN(MultMCExtra, multMCExtra);
}

DECLARE_SOA_TABLE(MC2Mults, "AOD", "MC2MULTS", //! Relate BC -> mult
o2::soa::Index<>, mult::MultMCExtraId);

namespace multZeq
{
Expand Down Expand Up @@ -218,14 +231,14 @@ DECLARE_SOA_INDEX_COLUMN(MultBC, multBC);
}
namespace multBC
{
DECLARE_SOA_INDEX_COLUMN(Mult, mult);
DECLARE_SOA_INDEX_COLUMN(FT0Mult, ft0Mult);
}

// for QA purposes
DECLARE_SOA_TABLE(Mults2BC, "AOD", "MULTS2BC", //! Relate mult -> BC
o2::soa::Index<>, mult::MultBCId);
DECLARE_SOA_TABLE(BC2Mults, "AOD", "BC2MULTS", //! Relate BC -> mult
o2::soa::Index<>, multBC::MultId);
o2::soa::Index<>, multBC::FT0MultId);

} // namespace o2::aod

Expand Down
7 changes: 7 additions & 0 deletions Common/TableProducer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,10 @@ o2physics_add_dpl_workflow(mftmchmatchingml
O2::CCDB O2Physics::MLCore
O2::ReconstructionDataFormats
COMPONENT_NAME Analysis)

o2physics_add_dpl_workflow(match-mft-ft0
SOURCES match-mft-ft0.cxx
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore
O2::ReconstructionDataFormats
O2::DetectorsBase O2::DetectorsCommonDataFormats
COMPONENT_NAME Analysis)
Loading

0 comments on commit 94f026a

Please sign in to comment.