Project
Loading...
Searching...
No Matches
testDigitTreeReader.cxx File Reference
#include <boost/test/unit_test.hpp>
#include "DigitTreeReader.h"
#include <TFile.h>
#include <TTree.h>
#include "CommonDataFormat/InteractionRecord.h"
#include <vector>
#include <memory>

Go to the source code of this file.

Macros

#define BOOST_TEST_MODULE   MCH DigitTreeReader
 
#define BOOST_TEST_DYN_LINK
 

Functions

std::unique_ptr< TTree > createTestTree ()
 
 BOOST_AUTO_TEST_CASE (NofEntriesIsNumberOfTFIs3)
 
 BOOST_AUTO_TEST_CASE (NofDigitsOfFirstRofIs2)
 
 BOOST_AUTO_TEST_CASE (DigitTreeReaderMustThrowIfDigitAndRofBranchesDoNotExist)
 
 BOOST_AUTO_TEST_CASE (DigitTreeReaderMustThrowIfInputTreeIsNullptr)
 
 BOOST_AUTO_TEST_CASE (DigitTreeReaderMustThrowIfRofBranchIsMissing)
 
 BOOST_AUTO_TEST_CASE (DigitTreeReaderMustThrowIfDigitBranchIsMissing)
 
 BOOST_AUTO_TEST_CASE (DigitTreeReaderMustThrowIfDigitBranchIsOfTheWrongType)
 
 BOOST_AUTO_TEST_CASE (DigitTreeReaderMustThrowIfRofBranchIsOfTheWrongType)
 
 BOOST_AUTO_TEST_CASE (DigitTreeReaderMustThrowIfNoEntry)
 
 BOOST_AUTO_TEST_CASE (DigitTreeReaderMustNotThrowIfInputTreeHasAllBranchesAndAtLeastOneEntry)
 

Macro Definition Documentation

◆ BOOST_TEST_DYN_LINK

#define BOOST_TEST_DYN_LINK

Definition at line 13 of file testDigitTreeReader.cxx.

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   MCH DigitTreeReader

Definition at line 12 of file testDigitTreeReader.cxx.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/10]

BOOST_AUTO_TEST_CASE ( DigitTreeReaderMustNotThrowIfInputTreeHasAllBranchesAndAtLeastOneEntry  )

Definition at line 132 of file testDigitTreeReader.cxx.

◆ BOOST_AUTO_TEST_CASE() [2/10]

BOOST_AUTO_TEST_CASE ( DigitTreeReaderMustThrowIfDigitAndRofBranchesDoNotExist  )

Definition at line 75 of file testDigitTreeReader.cxx.

◆ BOOST_AUTO_TEST_CASE() [3/10]

BOOST_AUTO_TEST_CASE ( DigitTreeReaderMustThrowIfDigitBranchIsMissing  )

Definition at line 94 of file testDigitTreeReader.cxx.

◆ BOOST_AUTO_TEST_CASE() [4/10]

BOOST_AUTO_TEST_CASE ( DigitTreeReaderMustThrowIfDigitBranchIsOfTheWrongType  )

Definition at line 102 of file testDigitTreeReader.cxx.

◆ BOOST_AUTO_TEST_CASE() [5/10]

BOOST_AUTO_TEST_CASE ( DigitTreeReaderMustThrowIfInputTreeIsNullptr  )

Definition at line 81 of file testDigitTreeReader.cxx.

◆ BOOST_AUTO_TEST_CASE() [6/10]

BOOST_AUTO_TEST_CASE ( DigitTreeReaderMustThrowIfNoEntry  )

Definition at line 122 of file testDigitTreeReader.cxx.

◆ BOOST_AUTO_TEST_CASE() [7/10]

BOOST_AUTO_TEST_CASE ( DigitTreeReaderMustThrowIfRofBranchIsMissing  )

Definition at line 86 of file testDigitTreeReader.cxx.

◆ BOOST_AUTO_TEST_CASE() [8/10]

BOOST_AUTO_TEST_CASE ( DigitTreeReaderMustThrowIfRofBranchIsOfTheWrongType  )

Definition at line 112 of file testDigitTreeReader.cxx.

◆ BOOST_AUTO_TEST_CASE() [9/10]

BOOST_AUTO_TEST_CASE ( NofDigitsOfFirstRofIs2  )

Definition at line 65 of file testDigitTreeReader.cxx.

◆ BOOST_AUTO_TEST_CASE() [10/10]

BOOST_AUTO_TEST_CASE ( NofEntriesIsNumberOfTFIs3  )

Definition at line 57 of file testDigitTreeReader.cxx.

◆ createTestTree()

std::unique_ptr< TTree > createTestTree ( )

Definition at line 26 of file testDigitTreeReader.cxx.