CbmRoot
Loading...
Searching...
No Matches
_GTestTrdClusterizer.cxx File Reference
#include "CbmTrdDigi.h"
#include "gtest/gtest-spi.h"
#include "gtest/gtest.h"
#include "trd/Clusterizer.h"
#include "trd/HitFinderPars.h"
Include dependency graph for _GTestTrdClusterizer.cxx:

Go to the source code of this file.

Functions

cbm::algo::trd::ClusterizerCreateTestModule ()
 
std::vector< CbmTrdDigi * > PermutateDigis (std::vector< CbmTrdDigi * > digis, double timeSeparation=3000)
 
const std::vector< std::pair< CbmTrdDigi, int32_t > > CreateClusterizerInputVector (std::vector< CbmTrdDigi * > digis)
 
std::vector< uint16_t > GetClusterSizes (std::vector< cbm::algo::trd::Cluster > clusters)
 
 TEST (_GTestTrdClusterizer, Check3PadCluster)
 
 TEST (_GTestTrdClusterizer, Check1PadSTCluster)
 
 TEST (_GTestTrdClusterizer, Check1PadNTCluster)
 
 TEST (_GTestTrdClusterizer, Check2PadLeftNTCluster)
 
 TEST (_GTestTrdClusterizer, Check2PadRightNTCluster)
 
 TEST (_GTestTrdClusterizer, Check2PadWithSTOnNextRowCluster)
 
 TEST (_GTestTrdClusterizer, Check2PadWithNTOnNextRowCluster)
 
 TEST (_GTestTrdClusterizer, Check2PadWithSTOnPrevRowCluster)
 
 TEST (_GTestTrdClusterizer, Check2PadWithNTOnPrevRowCluster)
 
 TEST (_GTestTrdClusterizer, CheckAdjacent3PadClusters)
 
 TEST (_GTestTrdClusterizer, Check3PadWithSingleNTCluster)
 
 TEST (_GTestTrdClusterizer, CheckLeftAndRightBordersFullyTriggered)
 
 TEST (_GTestTrdClusterizer, CheckTimeDistanceSmallEnough)
 
 TEST (_GTestTrdClusterizer, CheckTimeDistanceTooHigh)
 

Variables

double CHARGE_ST = 1000
 
double CHARGE_NT = 500
 
int MADDR = 21
 

Function Documentation

◆ CreateClusterizerInputVector()

const std::vector< std::pair< CbmTrdDigi, int32_t > > CreateClusterizerInputVector ( std::vector< CbmTrdDigi * > digis)

Definition at line 72 of file _GTestTrdClusterizer.cxx.

Referenced by TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), and TEST().

◆ CreateTestModule()

◆ GetClusterSizes()

std::vector< uint16_t > GetClusterSizes ( std::vector< cbm::algo::trd::Cluster > clusters)

Definition at line 83 of file _GTestTrdClusterizer.cxx.

Referenced by TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), and TEST().

◆ PermutateDigis()

std::vector< CbmTrdDigi * > PermutateDigis ( std::vector< CbmTrdDigi * > digis,
double timeSeparation = 3000 )

Definition at line 47 of file _GTestTrdClusterizer.cxx.

References v.

Referenced by TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), and TEST().

◆ TEST() [1/14]

TEST ( _GTestTrdClusterizer ,
Check1PadNTCluster  )

◆ TEST() [2/14]

TEST ( _GTestTrdClusterizer ,
Check1PadSTCluster  )

◆ TEST() [3/14]

TEST ( _GTestTrdClusterizer ,
Check2PadLeftNTCluster  )

◆ TEST() [4/14]

TEST ( _GTestTrdClusterizer ,
Check2PadRightNTCluster  )

◆ TEST() [5/14]

TEST ( _GTestTrdClusterizer ,
Check2PadWithNTOnNextRowCluster  )

◆ TEST() [6/14]

TEST ( _GTestTrdClusterizer ,
Check2PadWithNTOnPrevRowCluster  )

◆ TEST() [7/14]

TEST ( _GTestTrdClusterizer ,
Check2PadWithSTOnNextRowCluster  )

◆ TEST() [8/14]

TEST ( _GTestTrdClusterizer ,
Check2PadWithSTOnPrevRowCluster  )

◆ TEST() [9/14]

TEST ( _GTestTrdClusterizer ,
Check3PadCluster  )

◆ TEST() [10/14]

TEST ( _GTestTrdClusterizer ,
Check3PadWithSingleNTCluster  )

◆ TEST() [11/14]

TEST ( _GTestTrdClusterizer ,
CheckAdjacent3PadClusters  )

◆ TEST() [12/14]

TEST ( _GTestTrdClusterizer ,
CheckLeftAndRightBordersFullyTriggered  )

◆ TEST() [13/14]

TEST ( _GTestTrdClusterizer ,
CheckTimeDistanceSmallEnough  )

◆ TEST() [14/14]

TEST ( _GTestTrdClusterizer ,
CheckTimeDistanceTooHigh  )

Variable Documentation

◆ CHARGE_NT

double CHARGE_NT = 500

Definition at line 13 of file _GTestTrdClusterizer.cxx.

Referenced by TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), and TEST().

◆ CHARGE_ST

double CHARGE_ST = 1000

Definition at line 12 of file _GTestTrdClusterizer.cxx.

Referenced by TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), and TEST().

◆ MADDR

int MADDR = 21