ATLAS Offline Software
Loading...
Searching...
No Matches
TileDetectorTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TileDetectorTool_H
6#define TileDetectorTool_H
7
10#include "Gaudi/Property.h"
11
12#include <string>
13#include <vector>
14
15class StoreGateSvc;
17
18class TileDetectorTool final : public GeoModelTool
19{
20 public:
21
22 TileDetectorTool(const std::string& type,
23 const std::string& name,
24 const IInterface* parent);
25
26 virtual ~TileDetectorTool() override final;
27
28 virtual StatusCode create() override final;
29 virtual StatusCode clear() override final;
30
31 bool isTestBeam() const { return m_switches.testBeam; }
32 bool isAddPlates() const { return m_switches.addPlatesToCell; }
33 int uShape() const { return m_switches.uShape; }
34
35 private:
36
37 StatusCode initIds();
38 StatusCode createElements();
39 void setSwitch(int & param, int value, const char * name);
40 // Copy property values into m_switches
41 void fillSwitches();
42
44
45 // Properties copied into m_switches by fillSwitches()
46 Gaudi::Property<bool> m_testBeam{this, "TestBeam", false};
47 // AddPlatesToCell is not a property, to make user aware that the value is taken from DB rather from JO
48 Gaudi::Property<int> m_uShape{this, "Ushape", -1};
49 Gaudi::Property<int> m_glue{this, "Glue", -1};
50 Gaudi::Property<int> m_pvt{this, "PVT", -1};
51 Gaudi::Property<int> m_steel{this, "Steel", -1};
52 Gaudi::Property<int> m_csTube{this, "CsTube", -1};
53 Gaudi::Property<int> m_crackOption{this, "CrackOption", 0};
54
55 Gaudi::Property<std::vector<std::string>> m_volumes{this, "TopVolumes", {}, "List of top-level volumes where crack scintillators will be placed"};
56
57 bool m_not_locked{true};
58 Gaudi::Property<bool> m_useNewFactory{this, "UseNewFactory", true};
59 Gaudi::Property<std::string> m_geometryConfig{this, "GeometryConfig", "FULL"}; // FULL, SIMU, RECO --- A note: It's set to FULL by default in the constructor, and it seems that SIMU is never used in Athena code; also, the code that calls the TileAtlasFactory only checks if it's FULL or not: m_geometryConfig=='FULL' (RMB)
61};
62
63#endif
The Athena Transient Store API.
Gaudi::Property< int > m_glue
bool isTestBeam() const
virtual StatusCode create() override final
void setSwitch(int &param, int value, const char *name)
Gaudi::Property< std::string > m_geometryConfig
Gaudi::Property< std::vector< std::string > > m_volumes
Gaudi::Property< int > m_uShape
virtual ~TileDetectorTool() override final
Gaudi::Property< int > m_steel
Gaudi::Property< int > m_pvt
TileDetectorTool(const std::string &type, const std::string &name, const IInterface *parent)
Gaudi::Property< int > m_crackOption
Gaudi::Property< bool > m_testBeam
TileDetDescrManager * m_manager
StatusCode createElements()
bool isAddPlates() const
Gaudi::Property< bool > m_useNewFactory
TileSwitches m_switches
Gaudi::Property< int > m_csTube
virtual StatusCode clear() override final