Project
Loading...
Searching...
No Matches
FastSimRegions.h
Go to the documentation of this file.
1// Copyright 2019-2026 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11
12#ifndef O2_FASTSIM_REGIONS_H_
13#define O2_FASTSIM_REGIONS_H_
14
24
25#include "TG4VUserPostDetConstruction.h"
26
27#include <set>
28#include <string>
29#include <vector>
30
31class TGeoVolume;
32
33namespace o2::fastsim
34{
35
38std::set<std::string> mediaInSubtree(TGeoVolume* volume);
39
42std::set<std::string> mediaInSubtree(const std::string& volumeName);
43
48{
49 public:
50 struct ModelRegions {
51 std::string model;
52 std::string envelope;
53 std::string regions;
54 };
55
56 explicit FastSimRegionConstruction(std::vector<ModelRegions> models);
57 void Construct() override;
58
59 private:
60 std::vector<ModelRegions> mModels;
61};
62
63} // namespace o2::fastsim
64
65#endif // O2_FASTSIM_REGIONS_H_
std::set< std::string > mediaInSubtree(TGeoVolume *volume)
std::string regions
explicit media, used instead of the walk if given
std::string envelope
volume whose subtree supplies the media