ATLAS Offline Software
Loading...
Searching...
No Matches
CalibSDTool.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#ifndef LARG4CODE_CALIBSDTOOL_H
6#define LARG4CODE_CALIBSDTOOL_H
7
14
15// System includes
16#include <string>
17#include <vector>
18
19// G4Atlas includes
21
22// Local includes
23#include "LArG4CalibSD.h"
24
25// Forward declarations
27class LArEM_ID;
28class LArFCAL_ID;
29class LArHEC_ID;
30class CaloDM_ID;
31class LArG4CalibSD;
32
33namespace LArG4
34{
35
44 {
45
46 public:
47
49 CalibSDTool(const std::string& type, const std::string& name,
50 const IInterface* parent);
51
53 StatusCode initialize() override final;
54
56 StatusCode Gather() override final;
57
59
61 virtual StatusCode initializeCalculators() { return StatusCode::SUCCESS; }
62
65 makeOneSD(const std::string& name, ILArCalibCalculatorSvc* calc,
66 const std::vector<std::string>& volumes) const;
67
68 protected:
69
72
74 Gaudi::Property<G4bool> m_doPID{this, "ParticleID", false};
75
77
80 const LArEM_ID* m_larEmID{nullptr};
81 const LArFCAL_ID* m_larFcalID{nullptr};
82 const LArHEC_ID* m_larHecID{nullptr};
83 const CaloDM_ID* m_caloDmID{nullptr};
86
87 }; // class CalibSDTool
88
89} // namespace LArG4
90
91#endif
#define protected
This class provides an interface to generate or decode an identifier for the upper levels of the dete...
Helper class for Calo Dead Material offline identifiers.
Definition CaloDM_ID.h:102
Helper class for LArEM offline identifiers.
Definition LArEM_ID.h:111
Helper class for LArFCAL offline identifiers.
Definition LArFCAL_ID.h:49
A specialized SD class for saving LAr calibration hits.
virtual StatusCode initializeCalculators()
Initialize Calculator Services.
Definition CalibSDTool.h:61
CalibSDTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor.
LArG4CalibSD * makeOneSD(const std::string &name, ILArCalibCalculatorSvc *calc, const std::vector< std::string > &volumes) const
Helper method to create one SD.
const LArEM_ID * m_larEmID
Definition CalibSDTool.h:80
Gaudi::Property< G4bool > m_doPID
Are we set up to run with PID hits?
Definition CalibSDTool.h:74
StatusCode initialize() override final
Initialize the tool.
const LArHEC_ID * m_larHecID
Definition CalibSDTool.h:82
const LArFCAL_ID * m_larFcalID
Definition CalibSDTool.h:81
const AtlasDetectorID * m_id_helper
Definition CalibSDTool.h:84
StatusCode Gather() override final
Calls down to all the SDs to pack their hits into one collection.
const CaloDM_ID * m_caloDmID
Definition CalibSDTool.h:83
Helper class for LArHEC offline identifiers.
Definition LArHEC_ID.h:76
SensitiveDetectorBase(const std::string &type, const std::string &name, const IInterface *parent)
Standard constructor.