Belle II Software  release-05-01-25
Collaboration diagram for klm:

Modules

 klm data objects
 
 klm modules
 

Classes

class  BKLMDatabaseImporter
 This module writes BKLM data to database. More...
 
class  KLMCalibrationChecker
 KLM calibration checker. More...
 
class  KLMChannelStatusAlgorithm
 KLM channel status calibration algorithm. More...
 
class  KLMDatabaseImporter
 KLM database importer. More...
 
class  KLMDisplacementGenerator
 Module for generation of KLM displacement or alignment data. More...
 
class  KLMElectronicsMapImporter
 KLM database importer. More...
 
class  KLMLikelihoodParametersImporter
 This class imports KLMLikelihoodParameters into the database. More...
 
class  KLMStripEfficiencyAlgorithm
 KLM channel status calibration algorithm. More...
 
class  BKLMADCThreshold
 The Class for BKLM scintillator ADC related parameters. More...
 
class  BKLMAlignment
 Class to store BKLM alignment data in the database. More...
 
class  BKLMGeometryPar
 The Class for BKLM geometry. More...
 
class  BKLMSimulationPar
 Provides BKLM simulation parameters. More...
 
class  EKLMAlignment
 Class to store EKLM alignment data in the database. More...
 
class  EKLMChannelData
 EKLM channel data. More...
 
class  EKLMChannels
 Class to store EKLM alignment data in the database. More...
 
class  EKLMGeometry
 Class to store EKLM geometry data in the database. More...
 
class  EKLMReconstructionParameters
 Class to store EKLM simulation in the database. More...
 
class  EKLMSegmentAlignment
 Class to store EKLM alignment data in the database. More...
 
class  EKLMSimulationParameters
 Class to store EKLM simulation in the database. More...
 
class  EKLMTimeCalibration
 Class to store EKLM time calibration data in the database. More...
 
class  EKLMTimeCalibrationData
 EKLM time calibration data (for one strip). More...
 
class  KLMAlignmentData
 KLM Alignment data. More...
 
class  KLMChannelStatus
 KLM channel status. More...
 
class  KLMElectronicsChannel
 BKLM electronics channel. More...
 
class  KLMElectronicsMap
 BKLM electronics map. More...
 
class  KLMLikelihoodParameters
 Database object used to store the parameters for KLM likelihood computation. More...
 
class  KLMScintillatorDigitizationParameters
 Class to store KLM scintillator simulation parameters in the database. More...
 
class  KLMStripEfficiency
 DBObject used to store the efficiencies of KLM strips. More...
 
class  KLMTimeConversion
 KLM time conversion. More...
 
class  KLMTimeWindow
 DBObject containing KLM time window parameters used in KLMReconstructor module. More...
 
class  EKLMAlignmentAlongStripsAlgorithm
 EKLM time calibration algorithm. More...
 
class  EKLMChannelDataImporter
 EKLM time calibration algorithm. More...
 
class  EKLMDatabaseImporter
 EKLM time calibration algorithm. More...
 
class  EKLMTimeCalibrationAlgorithm
 EKLM time calibration algorithm. More...
 
class  G4TriangularPrism
 Triangular prism. More...
 
class  MuidBuilder
 Build the Muid likelihoods starting from the hit pattern and the transverse scattering in the KLM. More...
 
class  MuidElementNumbers
 Muid element numbers. More...
 
class  KLMMuidLikelihoodTest
 Test class for the KLMMuidLikelihood object. More...
 
class  MuidBuilderTest
 Test for the MuidBuilder class, using the payloads in the default Global Tag. More...
 

Functions

 TEST_F (KLMMuidLikelihoodTest, KLMMuidLikelihood)
 Test some setters and getters.
 
 TEST_F (MuidBuilderTest, MuidBuilder01)
 Test for a muon with 14 hits in the barrel.
 
 TEST_F (MuidBuilderTest, MuidBuilder02)
 Test for a muon with some discrepancies between hit and ext. More...
 
 TEST_F (MuidBuilderTest, MuidBuilder03)
 Test for a muon with large discrepancies between hit and ext. More...
 
 TEST_F (MuidBuilderTest, MuidBuilder04)
 Test for a muon with hits in both barrel and endcaps.
 
 TEST_F (MuidBuilderTest, MuidBuilder05)
 Test for a muon with hits in both barrel and endcaps.
 

Detailed Description

Function Documentation

◆ TEST_F() [1/2]

Belle2::TEST_F ( MuidBuilderTest  ,
MuidBuilder02   
)

Test for a muon with some discrepancies between hit and ext.

patterns.

Definition at line 127 of file MuidBuilderTest.cc.

128  {
129  StoreArray<KLMMuidLikelihood> muids;
130  int pdg = 13;
131  std::bitset<30> bitExtPattern(std::string("11111111111111"));
132  unsigned int extPattern = static_cast<unsigned int>(bitExtPattern.to_ulong());
133  std::bitset<30> bitHitPattern(std::string("11011111111101"));
134  unsigned int hitPattern = static_cast<unsigned int>(bitHitPattern.to_ulong());
135  bool isForward = true;
136  bool escaped = false;
137  int lastBarrelLayer = 13;
138  int lastEndcapLayer = -1;
139  unsigned int outcome = MuidElementNumbers::calculateExtrapolationOutcome(isForward, escaped, lastBarrelLayer, lastEndcapLayer);
140  double chiSquared = 23.5;
141  int degreesOfFreedom = 24;
142  m_muid = muids.appendNew();
143  m_muid->setPDGCode(pdg);
144  m_muid->setExtLayerPattern(extPattern);
145  m_muid->setHitLayerPattern(hitPattern);
146  m_muid->setIsForward(isForward);
147  m_muid->setBarrelExtLayer(lastBarrelLayer);
148  m_muid->setEndcapExtLayer(lastBarrelLayer);
149  m_muid->setOutcome(outcome);
150  m_muid->setChiSquared(chiSquared);
151  m_muid->setDegreesOfFreedom(degreesOfFreedom);
152  std::vector<float> logLVector = { -147.07, -6.37567, -40.9424, -43.8204, -63.8973, -84.6684};
153  for (size_t i = 0; i < m_pdgVectorMinus.size(); ++i) {
154  m_muidBuilder = new MuidBuilder(m_pdgVectorMinus.at(i));
155  float logL = std::log(m_muidBuilder->getPDF(m_muid));
156  EXPECT_LT(std::abs(logL - logLVector.at(i)), 10E-4);
157  delete m_muidBuilder;
158  }
159  }

◆ TEST_F() [2/2]

Belle2::TEST_F ( MuidBuilderTest  ,
MuidBuilder03   
)

Test for a muon with large discrepancies between hit and ext.

patterns.

Definition at line 162 of file MuidBuilderTest.cc.