Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:46:08

0001 #ifndef BeamSpotGeomDet_H
0002 #define BeamSpotGeomDet_H
0003 
0004 /** \class BeamSpotGeomDet
0005  *
0006  * A GeomDet used to create transient tracking rec hits for the
0007  * beam spot. The DetId originates from a static memebr function
0008  * in AlignableBeamSpot.
0009  *
0010  * Author     : Andreas Mussgiller
0011  * date       : 2010/08/30
0012  * last update: $Date: 2010/09/10 12:02:44 $
0013  * by         : $Author: mussgill $
0014  */
0015 
0016 #include <iostream>
0017 
0018 #include "Alignment/CommonAlignment/interface/AlignableBeamSpot.h"
0019 
0020 #include "Geometry/CommonDetUnit/interface/GeomDet.h"
0021 
0022 class BeamSpotGeomDet : public GeomDet {
0023 public:
0024   typedef GeomDetEnumerators::SubDetector SubDetector;
0025 
0026   explicit BeamSpotGeomDet(const ReferenceCountingPointer<BoundPlane>& plane) : GeomDet(plane) {
0027     setDetId(AlignableBeamSpot::detId());
0028   }
0029 
0030   ~BeamSpotGeomDet() override {}
0031 
0032   SubDetector subDetector() const override { return GeomDetEnumerators::invalidDet; }
0033 
0034   std::vector<const GeomDet*> components() const override { return std::vector<const GeomDet*>(); }
0035 };
0036 
0037 #endif