Project
Loading...
Searching...
No Matches
testCATrackerPublicationDecision.cxx
Go to the documentation of this file.
1
// Copyright 2019-2020 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.
11
12
// The MFT workflow exposes the shared publication policy. The session suite
13
// exercises loading, recovery, completion and cleanup for both detector layouts;
14
// these checks retain the public MFT publish/skip decision contract.
15
16
#define BOOST_TEST_MODULE MFT CA tracker publication decision
17
#define BOOST_TEST_MAIN
18
#define BOOST_TEST_DYN_LINK
19
#include <boost/test/unit_test.hpp>
20
21
#include "
ITSMFTTracking/Tracker.h
"
22
#include "
MFTWorkflow/CATrackerSpec.h
"
23
24
using namespace
o2::mft
;
25
26
BOOST_AUTO_TEST_CASE
(InactiveTrackerAlwaysPublishesEmptyRegardlessOfResultValue)
27
{
28
BOOST_CHECK
(
decideCATrackerPublicationAction
(
false
,
true
) == CATrackerPublicationAction::PublishInactiveEmpty);
29
BOOST_CHECK
(
decideCATrackerPublicationAction
(
false
,
false
) == CATrackerPublicationAction::PublishInactiveEmpty);
30
}
31
32
BOOST_AUTO_TEST_CASE
(ActiveTrackerWithRecoverableDropSkipsPublication)
33
{
34
BOOST_CHECK
(
decideCATrackerPublicationAction
(
true
,
false
) == CATrackerPublicationAction::SkipDroppedTimeFrame);
35
}
36
37
BOOST_AUTO_TEST_CASE
(ActiveTrackerWithNonDroppedResultPublishes)
38
{
39
BOOST_CHECK
(
decideCATrackerPublicationAction
(
true
,
true
) == CATrackerPublicationAction::PublishActiveResult);
40
}
Tracker.h
Tracker orchestrator.
CATrackerSpec.h
o2::ccdb::BOOST_AUTO_TEST_CASE
BOOST_AUTO_TEST_CASE(asynch_schedule_test)
Definition
testCcdbApiDownloader.cxx:147
o2::itsmft::tracking::decideCATrackerPublicationAction
CATrackerPublicationAction decideCATrackerPublicationAction(bool active, bool success) noexcept
Definition
WorkflowSession.h:36
o2::mft
Definition
RecoContainer.h:70
BOOST_CHECK
BOOST_CHECK(tree)
Detectors
ITSMFT
MFT
workflow
test
testCATrackerPublicationDecision.cxx
Generated on Sat Oct 3 2026 10:54:56 for Project by
1.9.8