Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:31:25

0001 #ifndef MagESector_H
0002 #define MagESector_H
0003 
0004 /** \class MagESector
0005  *  A sector of volumes in the endcap.
0006  *  One sector is composed of several layers (MagELayer)
0007  *
0008  *  \author N. Amapane - INFN Torino
0009  */
0010 
0011 #include "DataFormats/GeometryVector/interface/GlobalPoint.h"
0012 
0013 #include <vector>
0014 
0015 class MagVolume;
0016 class MagELayer;
0017 
0018 class MagESector {
0019 public:
0020   /// Constructor
0021   MagESector(std::vector<MagELayer*>& layers, Geom::Phi<float> phiMin);
0022 
0023   /// Destructor
0024   virtual ~MagESector();
0025 
0026   /// Find the volume containing a point, with a given tolerance
0027   const MagVolume* findVolume(const GlobalPoint& gp, double tolerance) const;
0028 
0029   /// Phi of sector start
0030   Geom::Phi<float> minPhi() const { return thePhiMin; }
0031 
0032 private:
0033   std::vector<MagELayer*> theLayers;
0034   Geom::Phi<float> thePhiMin;
0035 };
0036 #endif