ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArG4
LArG4FCAL
src
LArFCALCalibCalculatorBase.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::FCAL::LArFCALCalibCalculator
6
// Prepared Oct./2004 Mohsen Khakzad
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
// Forward declaractions:
14
// (i.e., invokes the Process() method). Then they read off whatever
15
// values are of interest.
16
17
#ifndef LArFCALCalibCalculatorBase_H
18
#define LArFCALCalibCalculatorBase_H
19
20
#include "
LArG4Code/LArCalibCalculatorSvcImp.h
"
21
#include "
LArG4Code/LArG4Identifier.h
"
22
23
//#include "LArG4FCAL/LArFCALCalculatorBase.h"
24
25
#include "
CaloG4Sim/SimulationEnergies.h
"
26
27
#include "globals.hh"
28
#include <vector>
29
// Forward declaration for namespace CaloG4.
30
class
G4Step;
31
class
FCAL_ChannelMap
;
32
33
namespace
LArG4
{
34
35
namespace
FCAL
{
36
37
class
LArFCALCalibCalculatorBase
:
public
LArCalibCalculatorSvcImp
{
38
public
:
39
LArFCALCalibCalculatorBase
(
const
std::string& name, ISvcLocator *pSvcLocator);
40
virtual
StatusCode
initialize
()
override
;
41
virtual
~LArFCALCalibCalculatorBase
() =
default
;
42
43
// The Process method returns a boolean value. If it's true, the
44
// hit can be used by Geant4; if it's false, there's something wrong
45
// with the energy deposit and it should be ignored.
46
47
// For calibration work, most of the time we want the calculator
48
// to determine both the energy and the identifier. However,
49
// sometimes we want it calculate only the identifier (for
50
// escaped energy), or only the energy (no known application
51
// yet, but you can never tell). Use the enum (defined in
52
// VCalibrationCalculator.h) to control any special processing.
53
54
virtual
G4bool
Process
(
const
G4Step* step,
LArG4Identifier
& identifier,
55
LArG4Identifier
& identifier_sr,
56
std::vector<G4double> & energies,
57
const
eCalculatorProcessing
process
=
kEnergyAndID
)
const
override
final
;
58
60
virtual
G4double
GetdeltaX
(){
return
m_deltaX
;}
//FIXME public but not part of interface class
61
virtual
G4double
GetdeltaY
(){
return
m_deltaY
;}
//FIXME public but not part of interface class
62
63
protected
:
64
Gaudi::Property<G4double>
m_deltaX
{
this
,
"FCALdeltaX"
, 0.};
65
Gaudi::Property<G4double>
m_deltaY
{
this
,
"FCALdeltaY"
, 0.};
66
67
Gaudi::Property<G4int>
m_FCalSampling
{
this
,
"FCALSampling"
, 0};
68
69
private
:
70
// Energy calculator
71
CaloG4::SimulationEnergies
m_energyCalculator
{};
72
73
G4float
m_zShift
{0.f};
74
75
FCAL_ChannelMap
*
m_ChannelMap
{
nullptr
};
76
};
77
}
// namespace FCAL
78
79
}
// namespace LArG4
80
81
#endif
// LArG4_HEC_CalibrationCalculator_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
FCAL_ChannelMap
This class contains the tube and tile maps for the FCAL A tile is of a set of FCAL tubes.
Definition
LArCalorimeter/LArGeoModel/LArReadoutGeometry/LArReadoutGeometry/FCAL_ChannelMap.h:34
LArCalibCalculatorSvcImp::LArCalibCalculatorSvcImp
LArCalibCalculatorSvcImp(const std::string &name, ISvcLocator *pSvcLocator)
Definition
LArCalibCalculatorSvcImp.cxx:7
LArG4Identifier
Definition
LArG4Identifier.h:121
LArG4::FCAL::LArFCALCalibCalculatorBase::m_FCalSampling
Gaudi::Property< G4int > m_FCalSampling
Definition
LArFCALCalibCalculatorBase.h:67
LArG4::FCAL::LArFCALCalibCalculatorBase::m_deltaY
Gaudi::Property< G4double > m_deltaY
Definition
LArFCALCalibCalculatorBase.h:65
LArG4::FCAL::LArFCALCalibCalculatorBase::m_zShift
G4float m_zShift
Definition
LArFCALCalibCalculatorBase.h:73
LArG4::FCAL::LArFCALCalibCalculatorBase::~LArFCALCalibCalculatorBase
virtual ~LArFCALCalibCalculatorBase()=default
LArG4::FCAL::LArFCALCalibCalculatorBase::m_deltaX
Gaudi::Property< G4double > m_deltaX
Definition
LArFCALCalibCalculatorBase.h:64
LArG4::FCAL::LArFCALCalibCalculatorBase::m_energyCalculator
CaloG4::SimulationEnergies m_energyCalculator
Definition
LArFCALCalibCalculatorBase.h:71
LArG4::FCAL::LArFCALCalibCalculatorBase::GetdeltaX
virtual G4double GetdeltaX()
Definition
LArFCALCalibCalculatorBase.h:60
LArG4::FCAL::LArFCALCalibCalculatorBase::initialize
virtual StatusCode initialize() override
LArG4::FCAL::LArFCALCalibCalculatorBase::m_ChannelMap
FCAL_ChannelMap * m_ChannelMap
Definition
LArFCALCalibCalculatorBase.h:75
LArG4::FCAL::LArFCALCalibCalculatorBase::GetdeltaY
virtual G4double GetdeltaY()
Definition
LArFCALCalibCalculatorBase.h:61
LArG4::FCAL::LArFCALCalibCalculatorBase::Process
virtual G4bool Process(const G4Step *step, LArG4Identifier &identifier, LArG4Identifier &identifier_sr, std::vector< G4double > &energies, const eCalculatorProcessing process=kEnergyAndID) const override final
LArG4::FCAL::LArFCALCalibCalculatorBase::LArFCALCalibCalculatorBase
LArFCALCalibCalculatorBase(const std::string &name, ISvcLocator *pSvcLocator)
process
const std::string process
Definition
fbtTestBasics.cxx:76
LArG4::FCAL
Definition
LArFCALCalibCalculatorBase.h:35
LArG4
Definition
LArWheelCalculatorEnums.h:8
LArG4::eCalculatorProcessing
eCalculatorProcessing
Definition
LArG4EnumDefs.h:10
LArG4::kEnergyAndID
@ kEnergyAndID
Definition
LArG4EnumDefs.h:10
Generated on
for ATLAS Offline Software by
1.17.0