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
18
#include "
Framework/runDataProcessing.h
"
19
#include "
Framework/AnalysisTask.h
"
20
21
using namespace
o2
;
22
using namespace
o2::framework
;
23
using namespace
o2::framework::expressions
;
24
25
namespace
o2::aod
26
{
27
O2ORIGIN
(
"EMB"
);
28
using
TracksPlus
=
soa::Join<StoredTracksIU, StoredTracksExtra>
;
29
template
<is_aod_hash T>
30
using
TracksPlusFrom
=
soa::Join<StoredTracksIUFrom<T>
, StoredTracksExtra_002From<T>>;
31
}
// namespace o2::aod
32
33
struct
TestEmbeddingSubscription
{
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
42
WorkflowSpec
defineDataProcessing
(
ConfigContext
const
& cfgc)
43
{
44
return
{adaptAnalysisTask<TestEmbeddingSubscription>(cfgc)};
45
}
O2ORIGIN
#define O2ORIGIN(_Str_)
Pre-declare Hash specialization for an origin string.
Definition
ASoA.h:302
AnalysisTask.h
o2::framework::ConfigContext
Definition
ConfigContext.h:24
o2::aod
Definition
AnalysisDataModel.h:32
o2::aod::BCsFrom
BCs_001From< O > BCsFrom
Definition
AnalysisDataModel.h:55
o2::aod::BCs
BCs_001 BCs
Definition
AnalysisDataModel.h:53
o2::framework::expressions
Definition
Configurable.h:20
o2::framework
Defining ITS Vertex explicitly as messageable.
Definition
Cartesian.h:288
o2::framework::WorkflowSpec
std::vector< DataProcessorSpec > WorkflowSpec
Definition
HBFUtilsInitializer.h:39
o2
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
Definition
FlattenRestore.h:23
defineDataProcessing
WorkflowSpec defineDataProcessing(ConfigContext const &cfgc)
This function hooks up the the workflow specifications into the DPL driver.
Definition
o2TestMultisource.cxx:42
runDataProcessing.h
TestEmbeddingSubscription
Definition
o2TestMultisource.cxx:33
TestEmbeddingSubscription::process
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)
Definition
o2TestMultisource.cxx:34
o2::aod::Hash
Definition
ASoA.h:275
o2::soa::Join
Definition
ASoA.h:3446
Framework
TestWorkflows
src
o2TestMultisource.cxx
Generated on Thu Apr 23 2026 20:09:55 for Project by
1.9.8