ATLAS Offline Software
Loading...
Searching...
No Matches
LArCalorimeter
LArG4
LArG4EC
src
LArG4EC/src/CryostatCalibrationCalculator.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::EndcapCryostat::CalibrationCalculator
6
// Prepared 24-Feb-2004 Bill Seligman
7
8
// This class calculates the values needed for calibration hits in the
9
// simulation.
10
11
// A "calculator" is used in much the same way as a hand-held
12
// calculator might be. The user supplies a value and hits 'Enter'
13
// (i.e., invokes the Process() method). Then they read off whatever
14
// values are of interest.
15
16
// This particular class is meant to be a "generic" calculator for
17
// dead materials. It's assumed that for most dead volumes, the
18
// detector_system/subdet/type/sampling/region of the identifier will
19
// remain constant (except that subdet will be +/- depending on z).
20
// The only portions that will change are the eta and phi identifiers.
21
22
#ifndef LArG4_EndcapCryostat_CalibrationCalculator_H
23
#define LArG4_EndcapCryostat_CalibrationCalculator_H
24
25
#include "
LArG4Code/LArCalibCalculatorSvcImp.h
"
26
#include "
LArG4Code/LArG4Identifier.h
"
27
#include "
CaloG4Sim/SimulationEnergies.h
"
28
29
#include "globals.hh"
30
31
#include <vector>
32
33
// Forward declaractions:
34
class
G4Step;
35
36
// Note the use of nested namespaces (mainly to prevent long names
37
// like LArG4HECCalibrationCalculator). This class is contained in
38
// the namespace LArG4::EndcapCryostat.
39
40
namespace
LArG4
{
41
42
namespace
EndcapCryostat
{
43
44
class
CalibrationCalculator
:
public
LArCalibCalculatorSvcImp
{
45
public
:
46
47
CalibrationCalculator
(
const
std::string& name, ISvcLocator *pSvcLocator);
48
StatusCode
initialize
() override final;
49
virtual ~
CalibrationCalculator
() = default;
50
51
// The Process method returns a boolean value. If it's true, the
52
// hit can be used by Geant4; if it's false, there's something wrong
53
// with the energy deposit and it should be ignored.
54
55
// For calibration work, most of the time we want the calculator
56
// to determine both the energy and the identifier. However,
57
// sometimes we want it calculate only the identifier (for
58
// escaped energy), or only the energy (no known application
59
// yet, but you can never tell). Use the enum (defined in
60
// VCalibrationCalculator.h) to control any special processing.
61
62
virtual G4bool
Process
(
const
G4Step* step,
LArG4Identifier
& identifier,
63
std
::
vector
<G4double> & energies,
64
const
eCalculatorProcessing
p =
kEnergyAndID
)
const
override final;
65
66
private
:
67
68
// Energy calculator
69
CaloG4
::SimulationEnergies
m_energyCalculator
{};
70
71
// Define a "backup" calculator, in this case this calculator
72
// misses a volume.
73
ServiceHandle<ILArCalibCalculatorSvc>
m_backupCalculator
{
this
,
"BackupCalculator"
,
"EndcapCryostatCalibrationLArCalculator"
};
74
};
75
76
}
// namespace EndcapCryostat
77
78
}
// namespace LArG4
79
80
#endif
// LArG4_EndcapCryostat_CalibrationCalculator_H
LArCalibCalculatorSvcImp.h
LArG4Identifier.h
SimulationEnergies.h
LArCalibCalculatorSvcImp::LArCalibCalculatorSvcImp
LArCalibCalculatorSvcImp(const std::string &name, ISvcLocator *pSvcLocator)
Definition
LArCalibCalculatorSvcImp.cxx:7
LArG4Identifier
Definition
LArG4Identifier.h:121
LArG4::EndcapCryostat::CalibrationCalculator::m_energyCalculator
CaloG4::SimulationEnergies m_energyCalculator
Definition
LArG4EC/src/CryostatCalibrationCalculator.h:69
LArG4::EndcapCryostat::CalibrationCalculator::initialize
StatusCode initialize() override final
LArG4::EndcapCryostat::CalibrationCalculator::m_backupCalculator
ServiceHandle< ILArCalibCalculatorSvc > m_backupCalculator
Definition
LArG4EC/src/CryostatCalibrationCalculator.h:73
LArG4::EndcapCryostat::CalibrationCalculator::CalibrationCalculator
CalibrationCalculator(const std::string &name, ISvcLocator *pSvcLocator)
LArG4::EndcapCryostat::CalibrationCalculator::Process
virtual G4bool Process(const G4Step *step, LArG4Identifier &identifier, std::vector< G4double > &energies, const eCalculatorProcessing p=kEnergyAndID) const override final
ServiceHandle
Definition
ClusterMakerTool.h:36
vector
Definition
MultiHisto.h:13
const
CaloG4
Definition
EscapedEnergyRegistry.h:21
LArG4::EndcapCryostat
Definition
LArG4EC/src/CryostatCalibrationCalculator.h:42
LArG4
Definition
LArWheelCalculatorEnums.h:8
LArG4::eCalculatorProcessing
eCalculatorProcessing
Definition
LArG4EnumDefs.h:10
LArG4::kEnergyAndID
@ kEnergyAndID
Definition
LArG4EnumDefs.h:10
std
STL namespace.
private
#define private
Definition
xAODTruthCnvAlg.h:20
Generated on
for ATLAS Offline Software by
1.14.0