DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
NoSegmentation.cpp
Go to the documentation of this file.
1 //==========================================================================
2 // AIDA Detector description implementation
3 //--------------------------------------------------------------------------
4 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
5 // All rights reserved.
6 //
7 // For the licensing terms see $DD4hepINSTALL/LICENSE.
8 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
9 //
10 //==========================================================================
11 /*
12  * NoSegmentation.cpp
13  *
14  * Created on: Jun 28, 2013
15  * Author: Christian Grefe, CERN
16  */
17 
19 
20 namespace dd4hep {
21  namespace DDSegmentation {
22 
23  NoSegmentation::NoSegmentation(const std::string& cellEncoding) :
24  Segmentation(cellEncoding)
25  {
26  _type = "NoSegmentation";
27  _description = "None Segmentation";
28  }
29 
31  {
32  _type = "NoSegmentation";
33  _description = "None Segmentation";
34  }
35 
37  { }
38 
40  {
41  Vector3D cellPosition{0,0,0};
42  return cellPosition;
43  }
44 
45  CellID NoSegmentation::cellID(const Vector3D& /*localPosition*/, const Vector3D& /* globalPosition */, const VolumeID& vID) const {
46  return vID;
47  }
48 
49 
50  } /* namespace DDSegmentation */
51 } /* namespace dd4hep */
52 
dd4hep::DDSegmentation::VolumeID
uint64_t VolumeID
Definition: BitFieldCoder.h:27
dd4hep::DDSegmentation::Vector3D
Simple container for a physics vector.
Definition: Segmentation.h:48
dd4hep::DDSegmentation::BitFieldCoder
Helper class for decoding and encoding a bit field of 64bits for convenient declaration.
Definition: BitFieldCoder.h:114
dd4hep::DDSegmentation::NoSegmentation::NoSegmentation
NoSegmentation(const std::string &cellEncoding="")
Definition: NoSegmentation.cpp:23
NoSegmentation.h
dd4hep::DDSegmentation::NoSegmentation::cellID
virtual CellID cellID(const Vector3D &localPosition, const Vector3D &globalPosition, const VolumeID &volumeID) const
Determine the cell ID based on the position.
Definition: NoSegmentation.cpp:45
dd4hep::DDSegmentation::CellID
uint64_t CellID
Definition: BitFieldCoder.h:26
dd4hep::DDSegmentation::Segmentation::_description
std::string _description
The description of the segmentation.
Definition: Segmentation.h:162
dd4hep::DDSegmentation::NoSegmentation::~NoSegmentation
virtual ~NoSegmentation()
Definition: NoSegmentation.cpp:36
dd4hep
Namespace for the AIDA detector description toolkit.
Definition: AlignmentsCalib.h:28
dd4hep::DDSegmentation::Segmentation::_type
std::string _type
The segmentation type.
Definition: Segmentation.h:160
dd4hep::DDSegmentation::Segmentation
Base class for all segmentations.
Definition: Segmentation.h:75
dd4hep::DDSegmentation::NoSegmentation::position
virtual Vector3D position(const CellID &cellID) const
Determine the local position based on the cell ID.
Definition: NoSegmentation.cpp:39