25std::unique_ptr<o2::iotof::Segmentation> Segmentation::sInstance;
30 sInstance = std::unique_ptr<Segmentation>(
new Segmentation());
32 return sInstance.get();
35Segmentation::Segmentation()
38 printf(
"Invalid use of public constructor: o2::iotof::Segmentation instance exists\n");
42 const ChipSpecifics mITofChipPars(itofPars.NCols, itofPars.NRows, itofPars.PitchCol, itofPars.PitchRow, itofPars.PassiveEdgeReadOut, itofPars.PassiveEdgeTop, itofPars.PassiveEdgeSide, itofPars.SensorLayerThicknessEff, itofPars.SensorLayerThickness);
43 const ChipSpecifics mOTofChipPars(otofPars.NCols, otofPars.NRows, otofPars.PitchCol, otofPars.PitchRow, otofPars.PassiveEdgeReadOut, otofPars.PassiveEdgeTop, otofPars.PassiveEdgeSide, otofPars.SensorLayerThicknessEff, otofPars.SensorLayerThickness);
50void Segmentation::configChip(
const int nCols,
const int nRows,
const float pitchCol,
const float pitchRow,
const float passiveEdgeReadOut,
51 const float passiveEdgeTop,
const float passiveEdgeSide,
const float sensorLayerThicknessEff,
const float sensorLayerThickness,
const int subDetectorID)
53 if (subDetectorID == 0) {
54 mITofSpecsConfig =
ChipSpecifics(nCols, nRows, pitchCol, pitchRow, passiveEdgeReadOut, passiveEdgeTop, passiveEdgeSide, sensorLayerThicknessEff, sensorLayerThickness);
55 }
else if (subDetectorID == 1) {
56 mOTofSpecsConfig =
ChipSpecifics(nCols, nRows, pitchCol, pitchRow, passiveEdgeReadOut, passiveEdgeTop, passiveEdgeSide, sensorLayerThicknessEff, sensorLayerThickness);
58 printf(
"Invalid subDetectorID %d. Must be 0 (iTOF) or 1 (oTOF). No configuration applied.\n", subDetectorID);
62void Segmentation::configChip(
const ChipSpecifics& specsConfig,
const int subDetectorID)
64 if (subDetectorID == 0) {
66 }
else if (subDetectorID == 1) {
69 printf(
"Invalid subDetectorID %d. Must be 0 (iTOF) or 1 (oTOF). No configuration applied.\n", subDetectorID);
76 printf(
"iTOF specs:\n");
82 printf(
"oTOF specs:\n");
Definition of the Segmentation class.
ClassImp(o2::iotof::Segmentation)
ChipSpecifics mOTofSpecsConfig
void configChip(const int nCols, const int nRows, const float pitchCol, const float pitchRow, const float passiveEdgeReadOut, const float passiveEdgeTop, const float passiveEdgeSide, const float sensorLayerThicknessEff, const float sensorLayerThickness, const int subDetectorID)
ChipSpecifics mITofSpecsConfig
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
float SensorSizeCols() const
float SensorSizeRows() const
float ActiveMatrixSizeRows() const
float ActiveMatrixSizeCols() const