File indexing completed on 2025-02-21 09:58:02
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015 #ifndef DD4HEP_NOSEGMENTATION_H
0016 #define DD4HEP_NOSEGMENTATION_H 1
0017
0018
0019 #include <DD4hep/Segmentations.h>
0020
0021
0022 namespace dd4hep {
0023
0024
0025 namespace DDSegmentation { class NoSegmentation; }
0026
0027
0028 typedef Handle<SegmentationWrapper<DDSegmentation::NoSegmentation> > NoSegmentationHandle;
0029
0030
0031
0032
0033
0034
0035
0036
0037 class NoSegmentation : public NoSegmentationHandle {
0038 public:
0039 NoSegmentation() = default;
0040 NoSegmentation(const NoSegmentation& e) = default;
0041 NoSegmentation(const Segmentation& e) : Handle<Object>(e) { }
0042 NoSegmentation(const Handle<Object>& e) : Handle<Object>(e) { }
0043 template <typename Q>
0044 NoSegmentation(const Handle<Q>& e) : Handle<Object>(e) { }
0045 NoSegmentation& operator=(const NoSegmentation& seg) = default;
0046 bool operator==(const NoSegmentation& seg) const {
0047 return m_element == seg.m_element;
0048 }
0049
0050 Position position(const CellID& cellID) const;
0051 CellID cellID(const Position& local, const Position& global, const VolumeID& volID) const;
0052 };
0053 }
0054 #endif