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
using
TracksPlus
=
soa::Join<StoredTracksIU, StoredTracksExtra>
;
28
template
<is_aod_hash T>
29
using
TracksPlusFrom
=
soa::Join<StoredTracksIUFrom<T>
, StoredTracksExtra_002From<T>>;
30
}
// namespace o2::aod
31
32
struct
TestEmbeddingSubscription
{
33
void
process
(
aod::BCs
const
& bcs,
aod::BCsFrom
<
aod::Hash<"EMB"_h>
>
const
& bcse,
34
aod::TracksIU
const
&
tracks
, aod::TracksIUFrom<
aod::Hash<"EMB"_h>
>
const
& trackse)
35
{
36
LOGP(info,
"BCs from run {} ({}) and {} ({})"
, bcs.begin().runNumber(), bcs.size(), bcse.begin().runNumber(), bcse.size());
37
LOGP(info,
"Joined tracks: {} and {}"
,
tracks
.size(), trackse.size());
38
}
39
};
40
41
WorkflowSpec
defineDataProcessing
(
ConfigContext
const
& cfgc)
42
{
43
return
{adaptAnalysisTask<TestEmbeddingSubscription>(cfgc)};
44
}
AnalysisTask.h
tracks
std::vector< o2::its::TrackITS > tracks
Definition
CATrackerSpec.cxx:76
o2::framework::ConfigContext
Definition
ConfigContext.h:24
o2::aod
Definition
AnalysisDataModel.h:35
o2::aod::BCsFrom
BCs_001From< O > BCsFrom
Definition
AnalysisDataModel.h:58
o2::aod::BCs
BCs_001 BCs
Definition
AnalysisDataModel.h:56
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:41
runDataProcessing.h
TestEmbeddingSubscription
Definition
o2TestMultisource.cxx:32
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:33
o2::aod::Hash
Definition
ASoA.h:279
o2::soa::Join
Definition
ASoA.h:3418
Framework
TestWorkflows
src
o2TestMultisource.cxx
Generated on Fri Oct 23 2026 23:21:09 for Project by
1.9.8