Shannon
Phlex-based digitisation framework for the SHiP experiment.
Loading...
Searching...
No Matches
timing_detector.hpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2026 CERN for the benefit of the SHiP Collaboration
2//
3// SPDX-License-Identifier: LGPL-3.0-or-later
4
5// timing_detector.hpp — Timing Detector digitiser
6
7#pragma once
8
10
11#include <SHiP/RecHit.hpp>
12#include <SHiP/SimHit.hpp>
13#include <SHiP/detectors/TimeDetHit.hpp>
14
15namespace SHiP::shannon {
16
18 public:
19 // Placeholder: Gaussian smearing until the timing-detector digitisation model exists
20 ::SHiP::TimeDetHit digitise(::SHiP::SimHit const& sim_hit, double time_offset,
21 SHiP::random::PhiloxRng& rng) const {
22 ::SHiP::RecHit returnHit = smearer_.smear(sim_hit, rng);
23 returnHit.time += time_offset;
24
25 return {.rec_hit = returnHit};
26 }
27
28 private:
29 GaussianSmearer smearer_;
30};
31
32} // namespace SHiP::shannon
Definition gaussian_smearer.hpp:19
Definition timing_detector.hpp:17
::SHiP::TimeDetHit digitise(::SHiP::SimHit const &sim_hit, double time_offset, SHiP::random::PhiloxRng &rng) const
Definition timing_detector.hpp:20
Definition calorimeter.hpp:15