ATLAS Offline Software
Loading...
Searching...
No Matches
LArG4Barrel/src/PresamplerCalibrationCalculator.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5// LArG4::BarrelPreampler::CalibrationCalculator
6
7// This class calculates the values needed for calibration hits in the
8// simulation.
9
10#ifndef LArG4_BarrelPresampler_CalibrationCalculator_H
11#define LArG4_BarrelPresampler_CalibrationCalculator_H
12
16
18
19#include "globals.hh"
20
21#include <vector>
22
23// Forward declaractions:
24class G4Step;
25
26// Note the use of nested namespaces (mainly to prevent long names
27// like LArG4BarrelCalibrationCalculator). This class is contained in
28// the namespace LArG4::Barrel.
29
30// Forward declaration for namespace CaloG4.
31
32namespace LArG4 {
33
34 namespace BarrelPresampler {
35
36 // Forward declaration
37 class Geometry;
38
40 public:
41
42 CalibrationCalculator(const std::string& name, ISvcLocator *pSvcLocator);
43 StatusCode initialize() override final;
44 virtual ~CalibrationCalculator() = default;
45
46 // The Process method returns a boolean value. If it's true, the
47 // hit can be used by Geant4; if it's false, there's something wrong
48 // with the energy deposit and it should be ignored.
49
50 // For calibration work, most of the time we want the calculator
51 // to determine both the energy and the identifier. However,
52 // sometimes we want it calculate only the identifier (for
53 // escaped energy), or only the energy (no known application
54 // yet, but you can never tell). Use the enum (defined in
55 // VCalibrationCalculator.h) to control any special processing.
56
57 virtual G4bool Process(const G4Step* step, LArG4Identifier& identifier,
58 LArG4Identifier& identifier_sr,
59 std::vector<double>& energies,
60 const LArG4::eCalculatorProcessing process) const override final;
61
62 private:
63 // Geometry calculator
64 ServiceHandle<ILArBarrelPresamplerGeometry> m_geometryCalculator{this, "GeometryCalculator", "LArBarrelPresamplerGeometry"};
65
66 // Energy calculator
68 };
69
70 } // namespace BarrelPresampler
71
72} // namespace LArG4
73
74#endif // LArG4_Barrel_CalibrationCalculator_H
This class implements the calculations requires to categorize the energies deposited during the simul...
LArCalibCalculatorSvcImp(const std::string &name, ISvcLocator *pSvcLocator)
CalibrationCalculator(const std::string &name, ISvcLocator *pSvcLocator)
virtual G4bool Process(const G4Step *step, LArG4Identifier &identifier, LArG4Identifier &identifier_sr, std::vector< double > &energies, const LArG4::eCalculatorProcessing process) const override final
const std::string process
eCalculatorProcessing