Shannon
Phlex-based digitisation framework for the SHiP experiment.
Loading...
Searching...
No Matches
calorimeter.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// calorimeter.hpp — Calorimeter digitiser
6
7#pragma once
8
10
11#include <SHiP/RecHit.hpp>
12#include <SHiP/SimHit.hpp>
13#include <SHiP/detectors/CaloHit.hpp>
14
15namespace SHiP::shannon {
16
18 public:
19 // Placeholder: Gaussian smearing until the calorimeter digitisation model exists
20 ::SHiP::CaloHit 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 return {.rec_hit = returnHit};
25 }
26
27 private:
28 GaussianSmearer smearer_;
29};
30
31} // namespace SHiP::shannon
Definition calorimeter.hpp:17
::SHiP::CaloHit digitise(::SHiP::SimHit const &sim_hit, double time_offset, SHiP::random::PhiloxRng &rng) const
Definition calorimeter.hpp:20
Definition gaussian_smearer.hpp:19
Definition calorimeter.hpp:15