SHiP Geometry
SHiP experiment geometry implementation using GeoModel.
Loading...
Searching...
No Matches
SHiPTimingDetInterface.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-3.0-or-later
2// Copyright (C) CERN for the benefit of the SHiP Collaboration
3
4#pragma once
5
6#include <GeoModelKernel/GeoVFullPhysVol.h>
7#include <GeoModelXml/GmxInterface.h>
8
9#include <map>
10#include <string>
11#include <vector>
12
13namespace SHiPGeometry {
14
21class SHiPTimingDetInterface : public GmxInterface {
22 public:
23 void addSensor(const std::string& /*name*/, std::map<std::string, int>& /*index*/, int /*id*/,
24 GeoVFullPhysVol* fpv) override {
25 m_bars.push_back(fpv);
26 }
27
28 int barCount() const { return static_cast<int>(m_bars.size()); }
29
30 private:
31 std::vector<GeoVFullPhysVol*> m_bars;
32};
33
34} // namespace SHiPGeometry
GmxInterface implementation for the SHiP Timing Detector.
Definition SHiPTimingDetInterface.h:21
void addSensor(const std::string &, std::map< std::string, int > &, int, GeoVFullPhysVol *fpv) override
Definition SHiPTimingDetInterface.h:23
int barCount() const
Definition SHiPTimingDetInterface.h:28
Definition SHiPGeometry.h:8