ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArG4
LArG4Barrel
src
LArG4Barrel/src/CryostatCalibrationMixedCalculator.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::BarrelCryostat::CalibrationMixedCalculator
6
// Prepared 13-Aug-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 be used for particular volumes
17
// in the barrel cryostat. Some volumes have identifiers that change
18
// significantly (mixed samplings, types, subdets) within that single
19
// volume. This calculator handles those special cases.
20
21
#ifndef LArG4_BarrelCryostat_CalibrationMixedCalculator_H
22
#define LArG4_BarrelCryostat_CalibrationMixedCalculator_H
23
24
#include "
LArG4Code/LArCalibCalculatorSvcImp.h
"
25
#include "
LArG4Code/LArG4Identifier.h
"
26
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::BarrelCryostat.
39
40
namespace
LArG4
{
41
42
namespace
BarrelCryostat
{
43
44
class
CalibrationMixedCalculator
:
public
LArCalibCalculatorSvcImp
{
45
public
:
46
47
CalibrationMixedCalculator
(
const
std::string& name, ISvcLocator *pSvcLocator);
48
StatusCode
initialize
()
override
final
;
49
virtual
~CalibrationMixedCalculator
() =
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,
63
LArG4Identifier
& identifier,
64
LArG4Identifier
& identifier_sr,
65
std::vector<double>& energies,
66
const
LArG4::eCalculatorProcessing
process
)
const
override
final
;
67
68
private
:
69
// Energy calculator
70
CaloG4::SimulationEnergies
m_energyCalculator
{};
71
72
ServiceHandle<ILArCalibCalculatorSvc>
m_backupCalculator
{
this
,
"BackupCalculator"
,
"BarrelCryostatCalibrationLArCalculator"
};
73
};
74
75
}
// namespace BarrelCryostat
76
77
}
// namespace LArG4
78
79
#endif
// LArG4_BarrelCryostat_CalibrationMixedCalculator_H
LArCalibCalculatorSvcImp.h
LArG4Identifier.h
SimulationEnergies.h
CaloG4::SimulationEnergies
This class implements the calculations requires to categorize the energies deposited during the simul...
Definition
SimulationEnergies.h:47
LArCalibCalculatorSvcImp::LArCalibCalculatorSvcImp
LArCalibCalculatorSvcImp(const std::string &name, ISvcLocator *pSvcLocator)
Definition
LArCalibCalculatorSvcImp.cxx:7
LArG4Identifier
Definition
LArG4Identifier.h:121
LArG4::BarrelCryostat::CalibrationMixedCalculator::m_backupCalculator
ServiceHandle< ILArCalibCalculatorSvc > m_backupCalculator
Definition
LArG4Barrel/src/CryostatCalibrationMixedCalculator.h:72
LArG4::BarrelCryostat::CalibrationMixedCalculator::m_energyCalculator
CaloG4::SimulationEnergies m_energyCalculator
Definition
LArG4Barrel/src/CryostatCalibrationMixedCalculator.h:70
LArG4::BarrelCryostat::CalibrationMixedCalculator::CalibrationMixedCalculator
CalibrationMixedCalculator(const std::string &name, ISvcLocator *pSvcLocator)
Definition
CryostatCalibrationMixedCalculator.cxx:39
LArG4::BarrelCryostat::CalibrationMixedCalculator::~CalibrationMixedCalculator
virtual ~CalibrationMixedCalculator()=default
LArG4::BarrelCryostat::CalibrationMixedCalculator::initialize
StatusCode initialize() override final
Definition
CryostatCalibrationMixedCalculator.cxx:44
LArG4::BarrelCryostat::CalibrationMixedCalculator::Process
virtual G4bool Process(const G4Step *step, LArG4Identifier &identifier, LArG4Identifier &identifier_sr, std::vector< double > &energies, const LArG4::eCalculatorProcessing process) const override final
Definition
CryostatCalibrationMixedCalculator.cxx:68
ServiceHandle
Definition
ClusterMakerTool.h:36
process
const std::string process
Definition
fbtTestBasics.cxx:76
LArG4::BarrelCryostat
Definition
CryostatCalibrationCalculator.cxx:47
LArG4
Definition
LArWheelCalculatorEnums.h:8
LArG4::eCalculatorProcessing
eCalculatorProcessing
Definition
LArG4EnumDefs.h:10
Generated on
for ATLAS Offline Software by
1.17.0