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

This task tests the ElectronTransport module of the TPC digitization. More...

#include <boost/test/unit_test.hpp>
#include "TPCSimulation/ElectronTransport.h"
#include "TPCBase/ParameterGas.h"
#include "TPCBase/ParameterDetector.h"
#include "TPCBase/CDBInterface.h"
#include "TH1D.h"
#include "TF1.h"

Go to the source code of this file.

Namespaces

namespace  o2
 a couple of static helper functions to create timestamp values for CCDB queries or override obsolete objects
 
namespace  o2::tpc
 Global TPC definitions and constants.
 

Macros

#define BOOST_TEST_MODULE   Test TPC ElectronTransport
 
#define BOOST_TEST_MAIN
 
#define BOOST_TEST_DYN_LINK
 

Functions

 o2::tpc::BOOST_AUTO_TEST_CASE (ElectronDiffusion_test1)
 Test 1 of the getElectronDrift function A defined position is given to the getElectronDrift function in which the position is randomly smeared according to a Gaussian We then compare the resulting mean and width to the expected one.
 
 o2::tpc::BOOST_AUTO_TEST_CASE (ElectronDiffusion_test2)
 Test 2 of the getElectronDrift function We drift the electrons by one cm, then the width of the smeared distributions should be exactly the same as the diffusion coefficients.
 
 o2::tpc::BOOST_AUTO_TEST_CASE (ElectronAttatchment_test_1)
 Test of the isElectronAttachment function We let the electrons drift for 100 us and compare the fraction of lost electrons to the expected value.
 

Detailed Description

This task tests the ElectronTransport module of the TPC digitization.

Author
Andi Mathis, TU München, andre.nosp@m.as.m.nosp@m.athis.nosp@m.@ph..nosp@m.tum.d.nosp@m.e

Definition in file testTPCElectronTransport.cxx.

Macro Definition Documentation

◆ BOOST_TEST_DYN_LINK

#define BOOST_TEST_DYN_LINK

Definition at line 18 of file testTPCElectronTransport.cxx.

◆ BOOST_TEST_MAIN

#define BOOST_TEST_MAIN

Definition at line 17 of file testTPCElectronTransport.cxx.

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   Test TPC ElectronTransport

Definition at line 16 of file testTPCElectronTransport.cxx.