Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:13:37

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 /*
0013  * NoSegmentation.h
0014  *
0015  *  Created on: Feb. 13 2017
0016  *      Author: Whitney Armstrong, ANL
0017  */
0018 
0019 #ifndef DDSEGMENTATION_NOSEGMENTATION_H
0020 #define DDSEGMENTATION_NOSEGMENTATION_H
0021 
0022 #include <DDSegmentation/Segmentation.h>
0023 
0024 namespace dd4hep {
0025   namespace DDSegmentation {
0026 
0027     /// This class exists to provide a segmenation when it is need but doesn't exist.
0028     class NoSegmentation: public Segmentation {
0029       public:
0030         
0031         virtual ~NoSegmentation();
0032 
0033         NoSegmentation(const std::string& cellEncoding = "");
0034         NoSegmentation(const BitFieldCoder* decoder);
0035     
0036         virtual Vector3D position(const CellID& cellID) const;
0037         virtual CellID cellID(const Vector3D& localPosition, const Vector3D& globalPosition, const VolumeID& volumeID) const;
0038 
0039     };
0040 
0041 
0042   } /* namespace DDSegmentation */
0043 } /* namespace dd4hep */
0044 #endif // DDSEGMENTATION_NOSEGMENTATION_H