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
56
57
|
#ifndef PreshowerStrip_h
#define PreshowerStrip_h
#include "Geometry/CaloGeometry/interface/CaloCellGeometry.h"
#include <CLHEP/Geometry/Point3D.h>
#include <CLHEP/Geometry/Plane3D.h>
#include <CLHEP/Geometry/Vector3D.h>
#include <CLHEP/Geometry/Transform3D.h>
#include <vector>
/**
\class PreshowerStrip
\brief A base class to handle the shape of preshower strips.
\author F. Cossutti
*/
class PreshowerStrip : public CaloCellGeometry {
public:
typedef CaloCellGeometry::CCGFloat CCGFloat;
typedef CaloCellGeometry::Pt3D Pt3D;
typedef CaloCellGeometry::Pt3DVec Pt3DVec;
typedef CaloCellGeometry::Tr3D Tr3D;
PreshowerStrip();
PreshowerStrip(const PreshowerStrip& tr);
PreshowerStrip& operator=(const PreshowerStrip& tr);
PreshowerStrip(const GlobalPoint& po, CornersMgr* mgr, const CCGFloat* parm) : CaloCellGeometry(po, mgr, parm) {
initSpan();
}
~PreshowerStrip() override;
CCGFloat dx() const { return param()[0]; }
CCGFloat dy() const { return param()[1]; }
CCGFloat dz() const { return param()[2]; }
CCGFloat tilt() const { return param()[3]; }
void vocalCorners(Pt3DVec& vec, const CCGFloat* pv, Pt3D& ref) const override { localCorners(vec, pv, ref); }
static void localCorners(Pt3DVec& vec, const CCGFloat* pv, Pt3D& ref);
void getTransform(Tr3D& tr, Pt3DVec* /*lptr*/) const override {}
private:
void initCorners(CaloCellGeometry::CornersVec&) override;
};
std::ostream& operator<<(std::ostream& s, const PreshowerStrip& cell);
#endif
|