-
Notifications
You must be signed in to change notification settings - Fork 4.4k
/
Copy pathGEMEtaPartition.h
92 lines (63 loc) · 2.74 KB
/
GEMEtaPartition.h
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#ifndef Geometry_GEMGeometry_GEMEtaPartition_H
#define Geometry_GEMGeometry_GEMEtaPartition_H
#include "Geometry/CommonDetUnit/interface/GeomDet.h"
#include "Geometry/CommonDetUnit/interface/GeomDetType.h"
#include "DataFormats/MuonDetId/interface/GEMDetId.h"
#include "DataFormats/GeometryVector/interface/GlobalPoint.h"
class StripTopology;
class GEMEtaPartitionSpecs;
class GEMEtaPartition : public GeomDet
{
public:
GEMEtaPartition(GEMDetId id, const BoundPlane::BoundPlanePointer& bp, GEMEtaPartitionSpecs* rrs);
~GEMEtaPartition() override;
const GEMEtaPartitionSpecs* specs() const { return specs_; }
GEMDetId id() const { return id_; }
const Topology& topology() const override;
const StripTopology& specificTopology() const;
const Topology& padTopology() const;
const StripTopology& specificPadTopology() const;
const GeomDetType& type() const override;
// strip-related methods:
/// number of readout strips in partition
int nstrips() const;
/// returns center of strip position for INTEGER strip number
/// that has a value range of [1, nstrip]
LocalPoint centreOfStrip(int strip) const;
/// returns center of strip position for FRACTIONAL strip number
/// that has a value range of [0., nstrip]
LocalPoint centreOfStrip(float strip) const;
LocalError localError(float strip, float cluster_size= 1.) const;
/// returns fractional strip number [0..nstrips] for a LocalPoint
/// E.g., if local point hit strip #2, the fractional strip number would be
/// somewhere in the (1., 2] interval
float strip(const LocalPoint& lp) const;
float pitch() const;
float localPitch(const LocalPoint& lp) const;
// GEM-CSC pad-related methods:
/// number of GEM-CSC trigger readout pads in partition
int npads() const;
/// returns center of pad position for INTEGER pad number
/// that has a value range of [1, npads]
LocalPoint centreOfPad(int pad) const;
/// returns center of pad position for FRACTIONAL pad number
/// that has a value range of [0., npads]
LocalPoint centreOfPad(float pad) const;
/// returns FRACTIONAL pad number [0.,npads] for a point
float pad(const LocalPoint& lp) const;
/// pad pitch in a center
float padPitch() const;
/// pad pitch at a particular point
float localPadPitch(const LocalPoint& lp) const;
// relations between strips and pads:
/// returns FRACTIONAL pad number [0.,npads] for an integer strip [1,nstrip]
float padOfStrip(int strip) const;
/// returns first strip (INT number [1,nstrip]) for pad (an integer [1,npads])
int firstStripInPad(int pad) const;
/// returns last strip (INT number [1,nstrip]) for pad (an integer [1,npads])
int lastStripInPad(int pad) const;
private:
GEMDetId id_;
GEMEtaPartitionSpecs* specs_;
};
#endif