CbmRoot
|
#include "CbmTrdDigi.h"
#include "gtest/gtest-spi.h"
#include "gtest/gtest.h"
#include "trd/Clusterizer.h"
#include "trd/HitFinderPars.h"
Go to the source code of this file.
Functions | |
cbm::algo::trd::Clusterizer * | CreateTestModule () |
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 |
const std::vector< std::pair< CbmTrdDigi, int32_t > > CreateClusterizerInputVector | ( | std::vector< CbmTrdDigi * > | digis | ) |
cbm::algo::trd::Clusterizer * CreateTestModule | ( | ) |
Definition at line 18 of file _GTestTrdClusterizer.cxx.
References cbm::algo::trd::HitFinderModPar::address, MADDR, cbm::algo::trd::HitFinderModPar::orientation, cbm::algo::trd::HitFinderRowPar::padPar, cbm::algo::trd::HitFinderModPar::padSizeErrX, cbm::algo::trd::HitFinderModPar::padSizeErrY, cbm::algo::trd::HitFinderModPar::padSizeX, cbm::algo::trd::HitFinderModPar::padSizeY, and cbm::algo::trd::HitFinderModPar::rowPar.
Referenced by TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), and TEST().
std::vector< uint16_t > GetClusterSizes | ( | std::vector< cbm::algo::trd::Cluster > | clusters | ) |
std::vector< CbmTrdDigi * > PermutateDigis | ( | std::vector< CbmTrdDigi * > | digis, |
double | timeSeparation = 3000 ) |
TEST | ( | _GTestTrdClusterizer | , |
Check1PadNTCluster | ) |
Definition at line 130 of file _GTestTrdClusterizer.cxx.
References CHARGE_NT, CreateClusterizerInputVector(), CreateTestModule(), CbmTrdDigi::kNeighbor, and MADDR.
TEST | ( | _GTestTrdClusterizer | , |
Check1PadSTCluster | ) |
Definition at line 115 of file _GTestTrdClusterizer.cxx.
References CHARGE_ST, CreateClusterizerInputVector(), CreateTestModule(), GetClusterSizes(), CbmTrdDigi::kSelf, and MADDR.
TEST | ( | _GTestTrdClusterizer | , |
Check2PadLeftNTCluster | ) |
Definition at line 143 of file _GTestTrdClusterizer.cxx.
References CHARGE_NT, CHARGE_ST, CreateClusterizerInputVector(), CreateTestModule(), GetClusterSizes(), CbmTrdDigi::kNeighbor, CbmTrdDigi::kSelf, MADDR, and PermutateDigis().
TEST | ( | _GTestTrdClusterizer | , |
Check2PadRightNTCluster | ) |
Definition at line 162 of file _GTestTrdClusterizer.cxx.
References CHARGE_NT, CHARGE_ST, CreateClusterizerInputVector(), CreateTestModule(), GetClusterSizes(), CbmTrdDigi::kNeighbor, CbmTrdDigi::kSelf, MADDR, and PermutateDigis().
TEST | ( | _GTestTrdClusterizer | , |
Check2PadWithNTOnNextRowCluster | ) |
Definition at line 205 of file _GTestTrdClusterizer.cxx.
References CHARGE_NT, CHARGE_ST, CreateClusterizerInputVector(), CreateTestModule(), GetClusterSizes(), CbmTrdDigi::kNeighbor, CbmTrdDigi::kSelf, MADDR, and PermutateDigis().
TEST | ( | _GTestTrdClusterizer | , |
Check2PadWithNTOnPrevRowCluster | ) |
Definition at line 250 of file _GTestTrdClusterizer.cxx.
References CHARGE_NT, CHARGE_ST, CreateClusterizerInputVector(), CreateTestModule(), GetClusterSizes(), CbmTrdDigi::kNeighbor, CbmTrdDigi::kSelf, MADDR, and PermutateDigis().
TEST | ( | _GTestTrdClusterizer | , |
Check2PadWithSTOnNextRowCluster | ) |
Definition at line 182 of file _GTestTrdClusterizer.cxx.
References CHARGE_NT, CHARGE_ST, CreateClusterizerInputVector(), CreateTestModule(), GetClusterSizes(), CbmTrdDigi::kNeighbor, CbmTrdDigi::kSelf, MADDR, and PermutateDigis().
TEST | ( | _GTestTrdClusterizer | , |
Check2PadWithSTOnPrevRowCluster | ) |
Definition at line 227 of file _GTestTrdClusterizer.cxx.
References CHARGE_NT, CHARGE_ST, CreateClusterizerInputVector(), CreateTestModule(), GetClusterSizes(), CbmTrdDigi::kNeighbor, CbmTrdDigi::kSelf, MADDR, and PermutateDigis().
TEST | ( | _GTestTrdClusterizer | , |
Check3PadCluster | ) |
Definition at line 94 of file _GTestTrdClusterizer.cxx.
References CHARGE_NT, CHARGE_ST, CreateClusterizerInputVector(), CreateTestModule(), GetClusterSizes(), CbmTrdDigi::kNeighbor, CbmTrdDigi::kSelf, MADDR, and PermutateDigis().
TEST | ( | _GTestTrdClusterizer | , |
Check3PadWithSingleNTCluster | ) |
Definition at line 296 of file _GTestTrdClusterizer.cxx.
References CHARGE_NT, CHARGE_ST, CreateClusterizerInputVector(), CreateTestModule(), GetClusterSizes(), CbmTrdDigi::kNeighbor, CbmTrdDigi::kSelf, MADDR, and PermutateDigis().
TEST | ( | _GTestTrdClusterizer | , |
CheckAdjacent3PadClusters | ) |
Definition at line 272 of file _GTestTrdClusterizer.cxx.
References CHARGE_NT, CHARGE_ST, CreateClusterizerInputVector(), CreateTestModule(), GetClusterSizes(), CbmTrdDigi::kNeighbor, CbmTrdDigi::kSelf, MADDR, and PermutateDigis().
TEST | ( | _GTestTrdClusterizer | , |
CheckLeftAndRightBordersFullyTriggered | ) |
Definition at line 318 of file _GTestTrdClusterizer.cxx.
References CHARGE_ST, CreateClusterizerInputVector(), CreateTestModule(), GetClusterSizes(), CbmTrdDigi::kSelf, and MADDR.
TEST | ( | _GTestTrdClusterizer | , |
CheckTimeDistanceSmallEnough | ) |
Definition at line 394 of file _GTestTrdClusterizer.cxx.
References CHARGE_NT, CHARGE_ST, CreateClusterizerInputVector(), CreateTestModule(), GetClusterSizes(), CbmTrdDigi::kNeighbor, CbmTrdDigi::kSelf, MADDR, and PermutateDigis().
TEST | ( | _GTestTrdClusterizer | , |
CheckTimeDistanceTooHigh | ) |
Definition at line 417 of file _GTestTrdClusterizer.cxx.
References CHARGE_NT, CHARGE_ST, CreateClusterizerInputVector(), CreateTestModule(), GetClusterSizes(), CbmTrdDigi::kNeighbor, CbmTrdDigi::kSelf, MADDR, and PermutateDigis().
double CHARGE_NT = 500 |
double CHARGE_ST = 1000 |