ATLAS Offline Software
EMECSupportCalibrationCalculator.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::EMECSupport::CalibrationCalculator
6 // Prepared 9-Sep-2004 Mikhail Leltchouk
7 
8 // This class calculates the values needed for calibration hits in the
9 // simulation.
10 
11 // This particular class is meant to be be used for particular volumes
12 // in the endcap. Some volumes have identifiers that change
13 // significantly (mixed samplings, types, subdets) within that single
14 // volume. This calculator handles those special cases.
15 
16 #ifndef LArG4_EMECSupport_CalibrationCalculator_H
17 #define LArG4_EMECSupport_CalibrationCalculator_H
18 
24 #include "globals.hh"
25 
26 #include <vector>
27 
28 // Forward declaractions:
29 class G4Step;
30 
31 // Note the use of nested namespaces (mainly to prevent long names).
32 // This class is contained in the namespace LArG4::EMECSupport.
33 
34 namespace LArG4 {
35 
36  // namespace EMECSupport {
37 
39  public:
40 
41  EMECSupportCalibrationCalculator(const std::string& name, ISvcLocator *pSvcLocator);
42  StatusCode initialize() override final;
44 
45  // The Process method returns a boolean value. If it's true, the
46  // hit can be used by Geant4; if it's false, there's something wrong
47  // with the energy deposit and it should be ignored.
48 
49  // For calibration work, most of the time we want the calculator
50  // to determine both the energy and the identifier. However,
51  // sometimes we want it calculate only the identifier (for
52  // escaped energy), or only the energy (no known application
53  // yet, but you can never tell). Use the enum (defined in
54  // VCalibrationCalculator.h) to control any special processing.
55 
56  virtual G4bool Process (const G4Step* step, LArG4Identifier & identifier,
57  std::vector<G4double> & energies,
59 
60  private:
61 
62  // Energy calculator
63  CaloG4::SimulationEnergies m_energyCalculator;
64 
65  class Parameters;
67 
68  // Access to parameters.
69  //LArGeo::VDetectorParameters* m_parameters;
70 
71  // Define a "backup" calculator.
73 
76  };
77 
78  // } // namespace EMECSupport
79 
80 } // namespace LArG4
81 
82 #endif // LArG4_EMECSupport_CalibrationCalculator_H
LArG4Identifier
Definition: LArG4Identifier.h:121
LArCalibCalculatorSvcImp
Definition: LArCalibCalculatorSvcImp.h:12
LArG4::EMECSupportCalibrationCalculator
Definition: EMECSupportCalibrationCalculator.h:38
MuonR4::SegmentFit::Parameters
AmgVector(toInt(ParamDefs::nPars)) Parameters
Definition: MuonHoughDefs.h:48
LArG4::EMECSupportCalibrationCalculator::m_par
const Parameters * m_par
Definition: EMECSupportCalibrationCalculator.h:65
CryostatCalibrationLArCalculator.h
xAOD::identifier
identifier
Definition: UncalibratedMeasurement_v1.cxx:15
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
LArG4
Definition: LArWheelCalculatorEnums.h:8
LArG4::EMECSupportCalibrationCalculator::Process
virtual G4bool Process(const G4Step *step, LArG4Identifier &identifier, std::vector< G4double > &energies, const eCalculatorProcessing p=kEnergyAndID) const override final
LArG4::EMECSupportCalibrationCalculator::initialize
StatusCode initialize() override final
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
LArCalibCalculatorSvcImp.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
vector
Definition: MultiHisto.h:13
LArG4Identifier.h
CaloG4
Definition: EscapedEnergyRegistry.h:21
LArG4::EMECSupportCalibrationCalculator::m_energyCalculator
CaloG4::SimulationEnergies m_energyCalculator
Definition: EMECSupportCalibrationCalculator.h:63
VDetectorParameters.h
private
#define private
Definition: DetDescrConditionsDict_dict_fixes.cxx:13
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
LArG4::EMECSupportCalibrationCalculator::m_backupCalculator
ServiceHandle< ILArCalibCalculatorSvc > m_backupCalculator
Definition: EMECSupportCalibrationCalculator.h:72
ILArCalibCalculatorSvc
Definition: ILArCalibCalculatorSvc.h:23
LArG4::EMECSupportCalibrationCalculator::EMECSupportCalibrationCalculator
EMECSupportCalibrationCalculator(const std::string &name, ISvcLocator *pSvcLocator)
LArCellBinning.step
step
Definition: LArCellBinning.py:158
LArG4::kEnergyAndID
@ kEnergyAndID
Definition: LArG4EnumDefs.h:10
SimulationEnergies.h
LArG4::eCalculatorProcessing
eCalculatorProcessing
Definition: LArG4EnumDefs.h:10
ServiceHandle
Definition: ClusterMakerTool.h:37