Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MockupSectorBuilder.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file MockupSectorBuilder.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2022-2023 CERN for the benefit of the Acts project
4 //
5 // This Source Code Form is subject to the terms of the Mozilla Public
6 // License, v. 2.0. If a copy of the MPL was not distributed with this
7 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 
9 #pragma once
10 
13 
14 #include <iostream>
15 #include <memory>
16 #include <string>
17 #include <vector>
18 
19 class G4VPhysicalVolume;
20 
21 namespace Acts {
22 namespace Experimental {
23 class DetectorVolume;
24 } // namespace Experimental
25 } // namespace Acts
26 
27 namespace ActsExamples {
28 
32 
34  public:
36  struct Config {
37  // The path of the gdml file that holds the mockup geometry
39 
40  // The number of sectors we want to create
41  int NumberOfSectors = 1;
42 
43  float toleranceOverlap = 10.;
44  };
45 
47  struct ChamberConfig {
48  // The name of the chamber
50 
51  // The names of the sensitive surfaces
52  std::vector<std::string> SensitiveNames;
53 
54  // The names of the passive surfaces
55  std::vector<std::string> PassiveNames;
56  };
57 
61 
63  ~MockupSectorBuilder() = default;
64 
68  std::shared_ptr<Acts::Experimental::DetectorVolume> buildChamber(
69  const ChamberConfig& chamberConfig);
70 
74  std::shared_ptr<Acts::Experimental::DetectorVolume> buildSector(
75  std::vector<std::shared_ptr<Acts::Experimental::DetectorVolume>>
76  detVolumes);
77 
80  void drawSector(const std::shared_ptr<Acts::Experimental::DetectorVolume>&
82  const std::string& nameObjFile);
83 
84  private:
86 
88 
90 };
91 
92 } // namespace ActsExamples