Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-02-22 09:36:49

0001 //==========================================================================
0002 //  AIDA Detector description implementation 
0003 //--------------------------------------------------------------------------
0004 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
0005 // All rights reserved.
0006 //
0007 // For the licensing terms see $DD4hepINSTALL/LICENSE.
0008 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
0009 //
0010 //==========================================================================
0011 /*
0012  * NoSegmentation.cpp
0013  *
0014  *  Created on: Jun 28, 2013
0015  *      Author: Christian Grefe, CERN
0016  */
0017 
0018 #include <DDSegmentation/NoSegmentation.h>
0019 
0020 namespace dd4hep {
0021   namespace DDSegmentation {
0022 
0023     NoSegmentation::NoSegmentation(const std::string& cellEncoding) :
0024       Segmentation(cellEncoding)
0025     {
0026       _type = "NoSegmentation";
0027       _description = "None Segmentation";
0028     }
0029 
0030     NoSegmentation::NoSegmentation(const BitFieldCoder* decode) : Segmentation(decode)
0031     { 
0032       _type = "NoSegmentation";
0033       _description = "None Segmentation";
0034     }
0035 
0036     NoSegmentation::~NoSegmentation()
0037     { }
0038 
0039     Vector3D NoSegmentation::position(const CellID& /*cID*/) const
0040     {
0041       Vector3D cellPosition{0,0,0};
0042       return cellPosition;
0043     }
0044 
0045     CellID NoSegmentation::cellID(const Vector3D& /*localPosition*/, const Vector3D& /* globalPosition */, const VolumeID& vID) const {
0046       return vID;
0047     }
0048 
0049 
0050   } /* namespace DDSegmentation */
0051 } /* namespace dd4hep */
0052