ATLAS Offline Software
LArBarrelCalibrationCalculator.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // LArG4::Barrel::CalibrationCalculator
6 
7 // This class calculates the values needed for calibration hits in the
8 // simulation.
9 
10 #ifndef LArG4_Barrel_CalibrationCalculator_H
11 #define LArG4_Barrel_CalibrationCalculator_H
12 
15 #include "ILArBarrelGeometry.h"
16 
18 
19 #include "globals.hh"
20 
21 #include <vector>
22 
23 // Forward declaractions:
24 class 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 
31 
32 
33 namespace LArG4 {
34 
35  namespace Barrel {
36 
38  public:
39 
40  CalibrationCalculator(const std::string& name, ISvcLocator *pSvcLocator);
41  StatusCode initialize() override final;
42  virtual ~CalibrationCalculator();
43 
44  // The Process method returns a boolean value. If it's true, the
45  // hit can be used by Geant4; if it's false, there's something wrong
46  // with the energy deposit and it should be ignored.
47 
48  // For calibration work, most of the time we want the calculator
49  // to determine both the energy and the identifier. However,
50  // sometimes we want it calculate only the identifier (for
51  // escaped energy), or only the energy (no known application
52  // yet, but you can never tell). Use the enum (defined in
53  // VCalibrationCalculator.h) to control any special processing.
54 
55  virtual G4bool Process (const G4Step* step, LArG4Identifier & identifier,
56  std::vector<G4double> & energies,
57  const eCalculatorProcessing process = kEnergyAndID) const override final;
58 
59  private:
60 
61  // Geometry calculator
63 
64  // Energy calculator
66  };
67 
68  } // namespace Barrel
69 
70 } // namespace LArG4
71 
72 #endif // LArG4_Barrel_CalibrationCalculator_H
LArG4::Barrel::CalibrationCalculator::initialize
StatusCode initialize() override final
Definition: LArBarrelCalibrationCalculator.cxx:73
LArG4Identifier
Definition: LArG4Identifier.h:121
LArCalibCalculatorSvcImp
Definition: LArCalibCalculatorSvcImp.h:12
LArG4::Barrel::CalibrationCalculator::m_energyCalculator
CaloG4::SimulationEnergies m_energyCalculator
Definition: LArBarrelCalibrationCalculator.h:65
CaloG4::SimulationEnergies
Definition: SimulationEnergies.h:47
LArG4::Barrel::CalibrationCalculator::m_geometryCalculator
ServiceHandle< ILArBarrelGeometry > m_geometryCalculator
Definition: LArBarrelCalibrationCalculator.h:62
LArG4::Barrel::CalibrationCalculator
Definition: LArBarrelCalibrationCalculator.h:37
xAOD::identifier
identifier
Definition: UncalibratedMeasurement_v1.cxx:15
LArG4
Definition: LArWheelCalculatorEnums.h:8
SUSY_SimplifiedModel_PostInclude.process
string process
Definition: SUSY_SimplifiedModel_PostInclude.py:42
DetType::Barrel
@ Barrel
Definition: DetType.h:14
LArCalibCalculatorSvcImp.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
LArG4::Barrel::CalibrationCalculator::Process
virtual G4bool Process(const G4Step *step, LArG4Identifier &identifier, std::vector< G4double > &energies, const eCalculatorProcessing process=kEnergyAndID) const override final
Definition: LArBarrelCalibrationCalculator.cxx:84
LArG4::Barrel::CalibrationCalculator::~CalibrationCalculator
virtual ~CalibrationCalculator()
Definition: LArBarrelCalibrationCalculator.cxx:79
LArG4Identifier.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
LArG4::Barrel::CalibrationCalculator::CalibrationCalculator
CalibrationCalculator(const std::string &name, ISvcLocator *pSvcLocator)
Definition: LArBarrelCalibrationCalculator.cxx:66
LArCellBinning.step
step
Definition: LArCellBinning.py:158
LArG4::kEnergyAndID
@ kEnergyAndID
Definition: LArG4EnumDefs.h:10
SimulationEnergies.h
ILArBarrelGeometry.h
LArG4::eCalculatorProcessing
eCalculatorProcessing
Definition: LArG4EnumDefs.h:10
ServiceHandle< ILArBarrelGeometry >