ATLAS Offline Software
Loading...
Searching...
No Matches
LArG4H62004FCALSDTool.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 LARG4H62004FCALSDTOOL_H
6#define LARG4H62004FCALSDTOOL_H
7
9#include <string>
10#include <vector>
11
15
16class LArG4SimpleSD;
17
22{
23 public:
24 // Constructor
25 LArG4H62004FCALSDTool(const std::string& type, const std::string& name, const IInterface *parent);
26
27 // Destructor
28 virtual ~LArG4H62004FCALSDTool() = default;
29
30 // Method in which all the SDs are created and assigned to the relevant volumes
31 StatusCode initializeSD() override final;
32
33 // Calls down to all the SDs to get them to pack their hits into a central collection
34 StatusCode Gather() override final;
35
36 private:
37 StatusCode initializeCalculators() override final;
38
39 // The actual hit container - here because the base class is for both calib and standard SD tools
41
42 ServiceHandle<ILArCalculatorSvc> m_fcal1calc {this, "FCAL1Calculator", "FCAL1Calculator"};
43 ServiceHandle<ILArCalculatorSvc> m_fcal2calc {this, "FCAL2Calculator", "FCAL2Calculator"};
44 ServiceHandle<ILArCalculatorSvc> m_fcalcoldcalc {this, "FCALColdCalculator", "FCALColdCalculator"};
45 // Sensitive detectors and their corresponding volumes
49 Gaudi::Property<std::vector<std::string>> m_fcal1Volumes {this, "FCAL1Volumes"};
50 Gaudi::Property<std::vector<std::string>> m_fcal2Volumes {this, "FCAL2Volumes"};
51 Gaudi::Property<std::vector<std::string>> m_fcalColdVolumes {this, "FCALColdVolumes"};
52};
53
54#endif
Handle class for recording to StoreGate.
StatusCode initializeSD() override final
ServiceHandle< ILArCalculatorSvc > m_fcal1calc
StatusCode initializeCalculators() override final
virtual ~LArG4H62004FCALSDTool()=default
SG::WriteHandle< LArHitContainer > m_HitColl
ServiceHandle< ILArCalculatorSvc > m_fcal2calc
Gaudi::Property< std::vector< std::string > > m_fcalColdVolumes
Gaudi::Property< std::vector< std::string > > m_fcal1Volumes
Gaudi::Property< std::vector< std::string > > m_fcal2Volumes
LArG4H62004FCALSDTool(const std::string &type, const std::string &name, const IInterface *parent)
StatusCode Gather() override final
End of an athena event.
ServiceHandle< ILArCalculatorSvc > m_fcalcoldcalc
LArG4SDTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor.
Common sensitive detector class for LAr systems.
Hit collection.
Forward declaration.
#define private