ATLAS Offline Software
Loading...
Searching...
No Matches
IFCalDigitModifierTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef LARDIGITIZATION_IFCALDIGITMODIFIERTOOL_H
6#define LARDIGITIZATION_IFCALDIGITMODIFIERTOOL_H
7
8#include "GaudiKernel/IAlgTool.h"
9#include "GaudiKernel/EventContext.h"
10#include "GaudiKernel/StatusCode.h"
11#include "Identifier/Identifier.h"
13
14#include <span>
15
21class IFCalDigitModifierTool : virtual public IAlgTool {
22public:
24 virtual ~IFCalDigitModifierTool() = default;
25
27 struct EventData {
29 double mu{0.};
30 };
31
32 virtual StatusCode prepareEvent(const EventContext& ctx, EventData& data) const = 0;
33
35 virtual void modifySamples(const EventData& data,
36 const Identifier& cellId,
37 std::span<double> samples) const = 0;
38};
39
40#endif // LARDIGITIZATION_IFCALDIGITMODIFIERTOOL_H
Interface for a tool modelling the FCal signal degradation in digitization.
virtual void modifySamples(const EventData &data, const Identifier &cellId, std::span< double > samples) const =0
Energy samples of one FCal cell, before noise and pedestal are added.
DeclareInterfaceID(IFCalDigitModifierTool, 2, 0)
virtual StatusCode prepareEvent(const EventContext &ctx, EventData &data) const =0
virtual ~IFCalDigitModifierTool()=default
Per-event input of the tool, filled once per event by prepareEvent().