Belle II Software  release-05-01-25
Belle2::CDC Namespace Reference

Classes

class  ADCCountTranslatorBase
 Abstract Base class for the ADC count translator. More...
 
class  CDCCalibrationCollectorModule
 Collect hit information for cdc calibration with CAF. More...
 
class  CDCChannelData
 CDCChannelData. More...
 
class  CDCCosmicAnalysisModule
 Analysis module for CDC CR data. More...
 
class  CDCCRTestModule
 CDC Cosmic test calibration module. More...
 
class  CDCCrudeT0CollectorModule
 Collector for crude t0. More...
 
class  CDCGeoControlPar
 The Class for CDC Geometry Control Parameters. More...
 
class  CDCGeometryPar
 The Class for CDC Geometry Parameters. More...
 
class  CDCGeometryTranslatorBase
 Abstract Base class for the geometry translator. More...
 
class  CDCHitFilterModule
 CDCHitFilter: Filters CDC hits according to given configuration criteria. More...
 
class  CDCPackerModule
 CDCPackerModule: The CDC Raw Hits Decoder. More...
 
class  CDCRecoTrackFilterModule
 The module excluding hits of specified Slayers in the RecoTracks. More...
 
class  CDCSensitiveDetector
 The Class for CDC Sensitive Detector. More...
 
class  CDCSimControlPar
 The Class for CDC Simulation Control Parameters. More...
 
class  CDCT0CalibrationCollectorModule
 Collect hit information for cdc calibration with CAF. More...
 
class  CDCUnpackerModule
 CDCUnpackerModule: The CDC Raw Hits Decoder. More...
 
class  CrudeT0CalibrationAlgorithm
 Algorithm class for crude T0 calibration. More...
 
class  GeoCDCCreator
 The GeoCDCCreator class. More...
 
class  Helix
 Helix parameter class. More...
 
class  IdealCDCGeometryTranslator
 This class uses the ideal detector geometry for the translation of wire IDs into geometric positions. More...
 
class  LinearGlobalADCCountTranslator
 This class simply assumes a linear translation through (0,0) More...
 
class  RealisticCDCGeometryTranslator
 This class uses the realistic detector geometry (the one after alignment procedure) for the translation of wire IDs into geometric positions. More...
 
class  RealisticTDCCountTranslator
 Translator mirroring the realistic Digitization. More...
 
class  SimpleTDCCountTranslator
 Translator mirroring the simple Digitization. More...
 
class  SpaceResolutionCalibration
 Class for Space resolution calibration. More...
 
class  SpaceResolutionCalibrationAlgorithm
 Class for Space resolution calibration. More...
 
class  T0CalibrationAlgorithm
 Class for T0 Correction . More...
 
class  T0Correction
 Class for T0 Correction . More...
 
class  TDCCountTranslatorBase
 Base class for translation of Drift Time into Drift Length. More...
 
class  TimeWalkCalibration
 Class for Time walk calibration. More...
 
class  TimeWalkCalibrationAlgorithm
 Class for Time walk calibration. More...
 
class  WireEfficiencyAlgorithm
 Class for Wire Efficiency estimation. More...
 
class  XTCalibration
 Class to perform xt calibration for drift chamber. More...
 
class  XTCalibrationAlgorithm
 Class to perform xt calibration for drift chamber. More...
 
class  XTFunction
 Class to perform fitting for each xt function. More...
 

Enumerations

enum  {
  c_Left = 0,
  c_Right = 1
}
 Argument LR.
 
enum  {
  c_Polynomial = 0,
  c_Chebyshev = 1
}
 Argument of fitting function.
 
enum  FitStatus {
  c_lowStat = -1,
  c_fitFailure = 0,
  c_OK = 1,
  c_errorOuter = 2,
  c_errorInner = 3
}
 Fit Status. More...
 

Functions

Double_t pol5pol1 (Double_t *x, Double_t *par)
 helper function to initialize xt function with 5th order polynomial + linear.
 
Double_t cheby5pol1 (Double_t *x, Double_t *par)
 helper function to initialize xt function with 5th order Chebshev Polynomial + linear.
 
double ClosestApproach (const TVector3 &bwp, const TVector3 &fwp, const TVector3 &posIn, const TVector3 &posOut, TVector3 &hitPosition, TVector3 &wirePosition)
 Returns a closest distance between a track and a wire. More...
 
void openFileA (std::ifstream &ifs, const std::string &fileName0)
 Open a file. More...
 
void openFileB (boost::iostreams::filtering_istream &ifs, const std::string &fileName0)
 Open a file using boost (to be able to read a gzipped file) More...
 

Variables

geometry::CreatorFactory< GeoCDCCreatorGeoCDCFactory ("CDCCreator")
 Register the GeoCreator.
 

Detailed Description

Enumeration Type Documentation

◆ FitStatus

enum FitStatus

Fit Status.

=-1: low statitic =1: good =0: Fit failure =2: Error Outer =3: Error Inner part;

Definition at line 54 of file XTCalibrationAlgorithm.h.

54  :
56  XTCalibrationAlgorithm();

Function Documentation

◆ ClosestApproach()

double ClosestApproach ( const TVector3 &  bwp,
const TVector3 &  fwp,
const TVector3 &  posIn,
const TVector3 &  posOut,
TVector3 &  hitPosition,
TVector3 &  wirePosition 
)

Returns a closest distance between a track and a wire.

Parameters
bwp[in]wire position at backward
fwp[in]wire position at forward
posIn[in]entrance position
posOut[in]exit position
hitPosition[out]track position corresp. to the closetst distance
wirePosition[out]wire position corresp. to the closetst distance

Definition at line 27 of file ClosestApproach.cc.

54  {
55  distance = wireLine.Cross(wire2hit).Mag() / wireLine.Mag();
56  hitPosition = posIn;
57  t2 = (posIn - fwp).Dot(wireLine) / wireLine.Mag2();
58  } else {
59  double t1 = hitXwire.Dot(wire2hit.Cross(wireLine)) / hitXwire.Mag2();
60  hitPosition = posOut + t1 * hitLine;
61  t2 = hitXwire.Dot(wire2hit.Cross(hitLine)) / hitXwire.Mag2();
62 
63  //should not constrain hitPosition inside the cell
64  // double dInOut = (posOut - posIn).Mag();
65  // double dHitIn = (hitPosition - posIn).Mag();
66  // double dHitOut = (hitPosition - posOut).Mag();
67  // if (dHitIn <= dInOut && dHitOut <= dInOut) { //Between point in & out
68  distance = fabs(wire2hit.Dot(hitXwire) / hitXwire.Mag());
69  /*
70  } else if (dHitOut > dHitIn) { // out posIn
71  distance = wireLine.Cross(posIn - fwp).Mag() / wireLine.Mag();
72  hitPosition = posIn;
73  t2 = (posIn - fwp).Dot(wireLine) / wireLine.Mag2();
74  } else { // out posOut
75  distance = wireLine.Cross(posOut - fwp).Mag() / wireLine.Mag();
76  hitPosition = posOut;
77  t2 = (posOut - fwp).Dot(wireLine) / wireLine.Mag2();
78  }
79  */
80  }
81 
82  wirePosition = fwp + t2 * wireLine;
83  return distance;
84  }
85 
86  }
88 }

◆ openFileA()

void openFileA ( std::ifstream &  ifs,
const std::string &  fileName0 
)

Open a file.

Parameters
[in]ifsinput file-stream
[in]fileName0file-name on cdc/data directory

Definition at line 28 of file OpenFile.cc.

29  {
30  std::string fileName1 = "/data/cdc/" + fileName0;
31  std::string fileName = FileSystem::findFile(fileName1, true);
32 
33  if (fileName == "") {
34  fileName = FileSystem::findFile(fileName0, true);
35  }
36 
37  if (fileName == "") {
38  B2FATAL("CDC::openFile: " << fileName0 << " not exist!");
39  } else {
40  B2INFO("CDC::openFile: open " << fileName);
41  ifs.open(fileName.c_str());
42  if (!ifs) B2FATAL("CDC::openFile: cannot open " << fileName << " !");
43  }
44  }

◆ openFileB()

void openFileB ( boost::iostreams::filtering_istream &  ifs,
const std::string &  fileName0 
)

Open a file using boost (to be able to read a gzipped file)

Parameters
[in]ifsinput file-stream
[in]fileName0file-name on cdc/data directory

Definition at line 47 of file OpenFile.cc.