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");
29template <is_aod_hash T>
30using TracksPlusFrom = soa::Join<StoredTracksIUFrom<T>, StoredTracksExtra_002From<T>>;
31} // namespace o2::aod
32
34 void process(aod::BCs const& bcs, aod::BCsFrom<aod::Hash<"EMB"_h>> const& bcse,
35 aod::TracksIU const& tracks, aod::TracksIUFrom<aod::Hash<"EMB"_h>> const& trackse)
36 {
37 LOGP(info, "BCs from run {} ({}) and {} ({})", bcs.begin().runNumber(), bcs.size(), bcse.begin().runNumber(), bcse.size());
38 LOGP(info, "Joined tracks: {} and {}", tracks.size(), trackse.size());
39 }
40};
41
43{
44 return {adaptAnalysisTask<TestEmbeddingSubscription>(cfgc)};
45}
#define O2ORIGIN(_Str_)
Pre-declare Hash specialization for an origin string.
Definition ASoA.h:302
BCs_001From< O > BCsFrom
Defining ITS Vertex explicitly as messageable.
Definition Cartesian.h:288
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::TracksIU const &tracks, aod::TracksIUFrom< aod::Hash<"EMB"_h > > const &trackse)