Project
Loading...
Searching...
No Matches
testEventFinder.cxx File Reference

Test the grouping of MCH digits based on MID information. More...

#include <initializer_list>
#include <utility>
#include <vector>
#include <boost/test/unit_test.hpp>
#include <boost/property_tree/ptree.hpp>
#include "CommonUtils/ConfigurableParam.h"
#include "SimulationDataFormat/MCCompLabel.h"
#include "SimulationDataFormat/MCTruthContainer.h"
#include "DataFormatsMCH/ROFRecord.h"
#include "DataFormatsMCH/Digit.h"
#include "DataFormatsMID/ROFRecord.h"
#include "MCHTriggering/EventFinder.h"

Go to the source code of this file.

Macros

#define BOOST_TEST_MODULE   Test MCHTriggering EventFinder
 
#define BOOST_TEST_DYN_LINK
 

Typedefs

using ObjLabel = std::pair< uint32_t, o2::MCCompLabel >
 

Functions

o2::dataformats::MCLabelContainer createLabels (std::initializer_list< ObjLabel > objLabels)
 
template<typename T >
void compare (const std::vector< T > &output, const std::vector< T > &expected)
 
void compare (const o2::dataformats::MCLabelContainer &output, const o2::dataformats::MCLabelContainer &expected)
 
 BOOST_AUTO_TEST_CASE (TriggerWidth1BC)
 
 BOOST_AUTO_TEST_CASE (TriggerWidth4BC)
 
 BOOST_AUTO_TEST_CASE (TriggerWidth9BC)
 
 BOOST_AUTO_TEST_CASE (TriggerWidth15BC)
 
 BOOST_AUTO_TEST_CASE (TriggerWidth4BCShift10BC)
 

Variables

std::vector< o2::mch::ROFRecordmchROFs
 
std::vector< o2::mch::DigitmchDigits
 
o2::dataformats::MCLabelContainer mchLabels
 
std::vector< o2::mid::ROFRecordmidROFs
 

Detailed Description

Test the grouping of MCH digits based on MID information.

Author
Philippe Pillot, Subatech

Definition in file testEventFinder.cxx.

Macro Definition Documentation

◆ BOOST_TEST_DYN_LINK

#define BOOST_TEST_DYN_LINK

Definition at line 23 of file testEventFinder.cxx.

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   Test MCHTriggering EventFinder

Definition at line 22 of file testEventFinder.cxx.

Typedef Documentation

◆ ObjLabel

using ObjLabel = std::pair<uint32_t, o2::MCCompLabel>

Definition at line 42 of file testEventFinder.cxx.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/5]

BOOST_AUTO_TEST_CASE ( TriggerWidth15BC  )

Definition at line 229 of file testEventFinder.cxx.

◆ BOOST_AUTO_TEST_CASE() [2/5]

BOOST_AUTO_TEST_CASE ( TriggerWidth1BC  )

Definition at line 103 of file testEventFinder.cxx.

◆ BOOST_AUTO_TEST_CASE() [3/5]

BOOST_AUTO_TEST_CASE ( TriggerWidth4BC  )

Definition at line 139 of file testEventFinder.cxx.

◆ BOOST_AUTO_TEST_CASE() [4/5]

BOOST_AUTO_TEST_CASE ( TriggerWidth4BCShift10BC  )

Definition at line 269 of file testEventFinder.cxx.

◆ BOOST_AUTO_TEST_CASE() [5/5]

BOOST_AUTO_TEST_CASE ( TriggerWidth9BC  )

Definition at line 186 of file testEventFinder.cxx.

◆ compare() [1/2]

void compare ( const o2::dataformats::MCLabelContainer output,
const o2::dataformats::MCLabelContainer expected 
)

Definition at line 91 of file testEventFinder.cxx.

◆ compare() [2/2]

template<typename T >
void compare ( const std::vector< T > &  output,
const std::vector< T > &  expected 
)

Definition at line 85 of file testEventFinder.cxx.

◆ createLabels()

o2::dataformats::MCLabelContainer createLabels ( std::initializer_list< ObjLabel objLabels)

Definition at line 44 of file testEventFinder.cxx.

Variable Documentation

◆ mchDigits

std::vector<o2::mch::Digit> mchDigits
Initial value:
= {
{100, 0, 10, 0, 1, false},
{100, 1, 10, 0, 1, false},
{100, 2, 10, 4, 1, false},
{100, 2, 10, 8, 1, true},
{100, 3, 10, 8, 1, false},
{100, 0, 10, 8, 1, false},
{100, 2, 10, 20, 1, false}}

Definition at line 59 of file testEventFinder.cxx.

◆ mchLabels

Initial value:
{{0, {0, 0, 0}},
{1, {1, 0, 0}},
{1, {2, 0, 0}},
{2, {0, 1, 0}},
{3, {0, 2, 0}},
{3, {true}},
{4, {1, 2, 0}},
{5, {2, 2, 0}},
{6, {0, 3, 0}}})
o2::dataformats::MCLabelContainer createLabels(std::initializer_list< ObjLabel > objLabels)

Definition at line 68 of file testEventFinder.cxx.

◆ mchROFs

std::vector<o2::mch::ROFRecord> mchROFs
Initial value:
= {
{{0, 0}, 0, 2, 4},
{{4, 0}, 2, 1, 4},
{{8, 0}, 3, 3, 4},
{{20, 0}, 6, 1, 4}}

Definition at line 53 of file testEventFinder.cxx.

◆ midROFs

std::vector<o2::mid::ROFRecord> midROFs
Initial value:

Definition at line 79 of file testEventFinder.cxx.