1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
#ifndef Geometry_CommonTopologies_PixelGeomDetUnit_H
#define Geometry_CommonTopologies_PixelGeomDetUnit_H
#include "Geometry/CommonTopologies/interface/TrackerGeomDet.h"
#include "DataFormats/DetId/interface/DetId.h"
#include "Geometry/CommonTopologies/interface/ProxyPixelTopology.h"
class PixelGeomDetType;
class PixelTopology;
class SurfaceDeformation;
/**
* The base PixelGeomDetUnit. Specialized in SiPixelGeomDetUnit.
*/
class PixelGeomDetUnit final : public TrackerGeomDet {
public:
PixelGeomDetUnit(BoundPlane* sp, PixelGeomDetType const* type, DetId id);
// DetUnit interface
/// NOTE (A.M.): The actual pointer to PixelGeomDetType is now a member of the
/// proxy topology. As PixelGeomDetType has the actual topology as a pointer,
/// it is possible to access this topology in two different ways. Once via
/// the proxy topology (through topology() and specificTopology()) which includes
/// corrections for the surface deformations, and once via the GeomDetType
/// (through type().topology() and the like).
const GeomDetType& type() const override;
/// Returns a reference to the pixel proxy topology
const Topology& topology() const override;
/// NOTE (A.M.): The actual pointer to PixelGeomDetType is now a member of the
/// proxy topology. As PixelGeomDetType has the actual topology as a pointer,
/// it is possible to access this topology in two different ways. Once via
/// the proxy topology (through topology() and specificTopology()) which includes
/// corrections for the surface deformations, and once via the GeomDetType
/// (through type().topology() and the like).
virtual const PixelGeomDetType& specificType() const;
/// Returns a reference to the pixel proxy topology
virtual const PixelTopology& specificTopology() const;
/// Return pointer to surface deformation.
const SurfaceDeformation* surfaceDeformation() const override { return theTopology->surfaceDeformation(); }
bool isLeaf() const override { return true; }
private:
/// set the SurfaceDeformation for this StripGeomDet to proxy topology.
void setSurfaceDeformation(const SurfaceDeformation* deformation) override;
std::unique_ptr<ProxyPixelTopology> theTopology;
};
#endif // Tracker_PixelGeomDetUnit_H
|