Project
Loading...
Searching...
No Matches
o2TestMultisource.cxx
Go to the documentation of this file.
1// Copyright 2019-2026 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
17
20
21using namespace o2;
22using namespace o2::framework;
23using namespace o2::framework::expressions;
24
25namespace o2::aod
26{
27O2ORIGIN("EMB");
28template <is_aod_hash T>
29using BCsFrom = BCs_001From<T>;
31template <is_aod_hash T>
32using TracksPlusFrom = soa::Join<StoredTracksIUFrom<T>, StoredTracksExtra_002From<T>>;
33} // namespace o2::aod
34
36 void process(aod::BCs const& bcs, aod::BCsFrom<aod::Hash<"EMB"_h>> const& bcse,
37 aod::TracksPlus const& tracks, aod::TracksPlusFrom<aod::Hash<"EMB"_h>> const& trackse)
38 {
39 LOGP(info, "BCs from run {} and {}", bcs.begin().runNumber(), bcse.begin().runNumber());
40 LOGP(info, "Joined tracks: {} and {}", tracks.size(), trackse.size());
41 }
42};
43
45{
46 return {adaptAnalysisTask<TestEmbeddingSubscription>(cfgc)};
47}
#define O2ORIGIN(_Str_)
Pre-declare Hash specialization for an origin string.
Definition ASoA.h:302
BCs_001From< T > BCsFrom
Defining PrimaryVertex explicitly as messageable.
std::vector< DataProcessorSpec > WorkflowSpec
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
WorkflowSpec defineDataProcessing(ConfigContext const &cfgc)
This function hooks up the the workflow specifications into the DPL driver.
void process(aod::BCs const &bcs, aod::BCsFrom< aod::Hash<"EMB"_h > > const &bcse, aod::TracksPlus const &tracks, aod::TracksPlusFrom< aod::Hash<"EMB"_h > > const &trackse)