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
9
#include "
gaussian_smearer.hpp
"
10
11
#include <SHiP/RecHit.hpp>
12
#include <SHiP/SimHit.hpp>
13
#include <SHiP/detectors/CaloHit.hpp>
14
15
namespace
SHiP::shannon
{
16
17
class
Calorimeter
{
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
SHiP::shannon::Calorimeter
Definition
calorimeter.hpp:17
SHiP::shannon::Calorimeter::digitise
::SHiP::CaloHit digitise(::SHiP::SimHit const &sim_hit, double time_offset, SHiP::random::PhiloxRng &rng) const
Definition
calorimeter.hpp:20
SHiP::shannon::GaussianSmearer
Definition
gaussian_smearer.hpp:19
gaussian_smearer.hpp
SHiP::shannon
Definition
calorimeter.hpp:15
src
detectors
calorimeter.hpp
Generated by
Doxygen
1.15.0