17 constexpr auto CLight = 29.9792458;
63 std::array<std::array<Double_t, Neuland::BarsPerPlane>,
nPlanes> tsync;
66 for (
auto plane = 0; plane <
nPlanes; ++plane)
70 tsync[plane][bar] = rnd.Uniform(-100., 100.);
74 for (
auto event = 0;
event <
nEvents; ++event)
76 const auto offset = rnd.Uniform(-100., 100.);
77 for (
auto plane = 0; plane <
nPlanes; ++plane)
88 const auto offset = result[0].Value - tsync[0][0];
89 for (
auto plane = 0; plane <
nPlanes; ++plane)
96 std::cout <<
"FAILED" << std::endl;
102 std::cout <<
"SUCCESS" << std::endl;
void AddBarData(const Int_t barID, const Double_t time)
std::vector< ValueErrorPair > GetTSync(UInt_t nPlanes=Neuland::MaxNumberOfPlanes)
Simulation of NeuLAND Bar/Paddle.
constexpr auto BarsPerPlane
constexpr auto AvgTimeResolution
constexpr auto BarUncertainty_Z
constexpr auto MaxNumberOfBars
constexpr auto MIPStoppingPower
constexpr auto AvgEffectiveCLight
constexpr auto BarSize_XY
constexpr auto FirstHorizontalPlane
constexpr auto TotalBarLength
constexpr auto AvgAttenuationLength
constexpr auto AvgThreshold
constexpr auto BarUncertainty_XY
constexpr bool IsPlaneVertical(const int plane)
constexpr auto LightGuideLength
constexpr auto MaxNumberOfPlanes
constexpr int GetPlaneNumber(const int barID)
constexpr auto MIPStoppingPowerPerDensity
constexpr auto MaxCalTime
constexpr bool IsPlaneHorizontal(const int plane)
constexpr auto ScintillatorDensity
void testNeulandTSyncer()