/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Reconstruction/MdcPatRec/MdcGeom/MdcGeom-00-01-17/MdcGeom/MdcCellAddr.h

Go to the documentation of this file.
00001 #ifndef MDCCELLADDR_H
00002 #define MDCCELLADDR_H
00003 
00004 //--------------------------------------------------------------------------
00005 //
00006 // Environment:
00007 //      This software was developed for the BaBar collaboration.  If you
00008 //      use all or part of it, please give an appropriate acknowledgement.
00009 //
00010 // Copyright Information:
00011 //      Copyright (C) 1999      <INFN>
00012 // 
00013 // History:
00014 //      Migration for BESIII MDC
00015 //
00016 //------------------------------------------------------------------------
00017 
00018 //              ---------------------
00019 //              -- Class Interface --
00020 //              ---------------------
00021 
00022 
00045 class MdcCellAddr {
00046 
00047 //--------------------
00048 // Instance Members --
00049 //--------------------
00050 
00051 public:
00052 
00053   // Constructors
00054   MdcCellAddr( void );
00055 
00056   // Destructor
00057   virtual ~MdcCellAddr( ) {;}
00058 
00059   // Operators
00060     
00061 //------------------
00062 // Static Members --
00063 //------------------
00064 
00065 public:
00066 
00067   // Selectors (const)
00068   static int wireIs(const int &cell)  { return cell%1000; }
00069   static int layerIs(const int &cell) { return cell/1000; }
00070   static int cellIs(const int &wire, const int &layer) { return 
00071                                                            layer*1000+wire; }
00072 
00073 };
00074 
00075 #endif // MDCCELLADDR_H

Generated on Tue Nov 29 23:13:30 2016 for BOSS_7.0.2 by  doxygen 1.4.7