CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
GEMEtaPartition Class Reference

#include <GEMEtaPartition.h>

Inheritance diagram for GEMEtaPartition:
GeomDet

Public Member Functions

LocalPoint centreOfPad (int pad) const
 
LocalPoint centreOfPad (float pad) const
 
LocalPoint centreOfStrip (int strip) const
 
LocalPoint centreOfStrip (float strip) const
 
int firstStripInPad (int pad) const
 returns first strip (INT number [0,nstrip-1]) for pad (an integer [0,npads-1]) More...
 
 GEMEtaPartition (GEMDetId id, const BoundPlane::BoundPlanePointer &bp, GEMEtaPartitionSpecs *rrs)
 
GEMDetId id () const
 
int lastStripInPad (int pad) const
 returns last strip (INT number [0,nstrip-1]) for pad (an integer [0,npads-1]) More...
 
LocalError localError (float strip, float cluster_size=1.) const
 
float localPadPitch (const LocalPoint &lp) const
 pad pitch at a particular point More...
 
float localPitch (const LocalPoint &lp) const
 
int npads () const
 number of GEM-CSC trigger readout pads in partition More...
 
int nstrips () const
 number of readout strips in partition More...
 
float pad (const LocalPoint &lp) const
 returns FRACTIONAL pad number [0.,npads) for a point More...
 
float padOfStrip (int strip) const
 returns FRACTIONAL pad number [0.,npads) for an integer strip [0,nstrip-1] More...
 
float padPitch () const
 pad pitch in a center More...
 
const TopologypadTopology () const
 
float pitch () const
 
const StripTopologyspecificPadTopology () const
 
const StripTopologyspecificTopology () const
 
const GEMEtaPartitionSpecsspecs () const
 
float strip (const LocalPoint &lp) const
 
const Topologytopology () const override
 
const GeomDetTypetype () const override
 
 ~GEMEtaPartition () override
 
- Public Member Functions inherited from GeomDet
AlignmentPositionError const * alignmentPositionError () const
 Return pointer to alignment errors. More...
 
virtual const GeomDetcomponent (DetId) const
 Returns a component GeomDet given its DetId, if existing. More...
 
virtual std::vector< const GeomDet * > components () const
 Returns direct components, if any. More...
 
int gdetIndex () const
 
DetId geographicalId () const
 The label of this GeomDet. More...
 
 GeomDet (Plane *plane)
 
 GeomDet (const ReferenceCountingPointer< Plane > &plane)
 
int index () const
 
virtual bool isLeaf () const
 is a Unit More...
 
const Surface::PositionTypeposition () const
 The position (origin of the R.F.) More...
 
const Surface::RotationTyperotation () const
 The rotation defining the local R.F. More...
 
void setGdetIndex (int i)
 
void setIndex (int i)
 
const PlanespecificSurface () const
 Same as surface(), kept for backward compatibility. More...
 
virtual SubDetector subDetector () const
 Which subdetector. More...
 
const Planesurface () const
 The nominal surface of the GeomDet. More...
 
virtual const SurfaceDeformationsurfaceDeformation () const
 
GlobalPoint toGlobal (const Local2DPoint &lp) const
 Conversion to the global R.F. from the R.F. of the GeomDet. More...
 
GlobalPoint toGlobal (const Local3DPoint &lp) const
 Conversion to the global R.F. from the R.F. of the GeomDet. More...
 
GlobalVector toGlobal (const LocalVector &lv) const
 Conversion to the global R.F. from the R.F. of the GeomDet. More...
 
LocalPoint toLocal (const GlobalPoint &gp) const
 Conversion to the R.F. of the GeomDet. More...
 
LocalVector toLocal (const GlobalVector &gv) const
 Conversion to the R.F. of the GeomDet. More...
 
virtual ~GeomDet ()
 

Private Attributes

GEMDetId id_
 
GEMEtaPartitionSpecsspecs_
 

Additional Inherited Members

- Public Types inherited from GeomDet
using SubDetector = GeomDetEnumerators::SubDetector
 
- Protected Member Functions inherited from GeomDet
void setDetId (DetId id)
 
- Protected Attributes inherited from GeomDet
AlignmentPositionErrortheAlignmentPositionError = 0
 

Detailed Description

Definition at line 12 of file GEMEtaPartition.h.

Constructor & Destructor Documentation

GEMEtaPartition::GEMEtaPartition ( GEMDetId  id,
const BoundPlane::BoundPlanePointer bp,
GEMEtaPartitionSpecs rrs 
)

Definition at line 6 of file GEMEtaPartition.cc.

References GeomDet::setDetId().

6  :
7  GeomDet(bp), id_(id),specs_(rrs)
8 {
9  setDetId(id);
10 }
void setDetId(DetId id)
Definition: GeomDet.h:120
GEMEtaPartitionSpecs * specs_
GeomDet(Plane *plane)
Definition: GeomDet.h:34
GEMEtaPartition::~GEMEtaPartition ( )
override

Definition at line 12 of file GEMEtaPartition.cc.

References specs_.

13 {
14  delete specs_; //Assume the roll owns it specs (specs are not shared)
15 }
GEMEtaPartitionSpecs * specs_

Member Function Documentation

LocalPoint GEMEtaPartition::centreOfPad ( int  pad) const

returns center of pad position for INTEGER pad number that has a value range of [0, npads-1]

Definition at line 98 of file GEMEtaPartition.cc.

References f, StripTopology::localPosition(), AlCaHLTBitMon_ParallelJobs::p, pad(), and specificPadTopology().

Referenced by GEMCoPadDigiValidation::analyze(), GEMPadDigiValidation::analyze(), CSCUpgradeMotherboardLUTGenerator::gemPadToCscHsLUT(), L1TMuon::GeometryTranslator::getGEMSpecificPoint(), and id().

99 {
100  float p = static_cast<float>(pad) + 0.5f;
102 }
virtual LocalPoint localPosition(float strip) const =0
float pad(const LocalPoint &lp) const
returns FRACTIONAL pad number [0.,npads) for a point
double f[11][100]
const StripTopology & specificPadTopology() const
LocalPoint GEMEtaPartition::centreOfPad ( float  pad) const

returns center of pad position for FRACTIONAL pad number that has a value range of [0., npads)

Definition at line 105 of file GEMEtaPartition.cc.

References StripTopology::localPosition(), and specificPadTopology().

106 {
108 }
virtual LocalPoint localPosition(float strip) const =0
float pad(const LocalPoint &lp) const
returns FRACTIONAL pad number [0.,npads) for a point
const StripTopology & specificPadTopology() const
LocalPoint GEMEtaPartition::centreOfStrip ( int  strip) const

returns center of strip position for INTEGER strip number that has a value range of [0, nstrip-1]

Definition at line 54 of file GEMEtaPartition.cc.

References f, StripTopology::localPosition(), alignCSCRings::s, specificTopology(), and strip().

Referenced by GEMStripDigiValidation::analyze(), GEMRecHitStandardAlgo::compute(), id(), padOfStrip(), and GEMRecHitMatcher::recHitPosition().

55 {
56  float s = static_cast<float>(strip) + 0.5f;
57  return this->specificTopology().localPosition(s);
58 }
virtual LocalPoint localPosition(float strip) const =0
const StripTopology & specificTopology() const
double f[11][100]
float strip(const LocalPoint &lp) const
LocalPoint GEMEtaPartition::centreOfStrip ( float  strip) const

returns center of strip position for FRACTIONAL strip number that has a value range of [0.0, nstrip)

Definition at line 61 of file GEMEtaPartition.cc.

References StripTopology::localPosition(), and specificTopology().

62 {
63  return this->specificTopology().localPosition(strip);
64 }
virtual LocalPoint localPosition(float strip) const =0
const StripTopology & specificTopology() const
float strip(const LocalPoint &lp) const
int GEMEtaPartition::firstStripInPad ( int  pad) const

returns first strip (INT number [0,nstrip-1]) for pad (an integer [0,npads-1])

Definition at line 137 of file GEMEtaPartition.cc.

References f, StripTopology::localPosition(), AlCaHLTBitMon_ParallelJobs::p, pad(), specificPadTopology(), and strip().

Referenced by id().

138 {
139  float p = static_cast<float>(pad) - 0.9999f;
141  return static_cast<int>(strip(lp));
142 }
virtual LocalPoint localPosition(float strip) const =0
float pad(const LocalPoint &lp) const
returns FRACTIONAL pad number [0.,npads) for a point
double f[11][100]
const StripTopology & specificPadTopology() const
float strip(const LocalPoint &lp) const
GEMDetId GEMEtaPartition::id ( void  ) const
inline
int GEMEtaPartition::lastStripInPad ( int  pad) const

returns last strip (INT number [0,nstrip-1]) for pad (an integer [0,npads-1])

Definition at line 145 of file GEMEtaPartition.cc.

References f, StripTopology::localPosition(), AlCaHLTBitMon_ParallelJobs::p, pad(), specificPadTopology(), and strip().

Referenced by id().

146 {
147  float p = static_cast<float>(pad) - 0.0001f;
149  return static_cast<int>(strip(lp));
150 }
virtual LocalPoint localPosition(float strip) const =0
float pad(const LocalPoint &lp) const
returns FRACTIONAL pad number [0.,npads) for a point
double f[11][100]
const StripTopology & specificPadTopology() const
float strip(const LocalPoint &lp) const
LocalError GEMEtaPartition::localError ( float  strip,
float  cluster_size = 1. 
) const

Definition at line 67 of file GEMEtaPartition.cc.

References StripTopology::localError(), and specificTopology().

Referenced by GEMRecHitStandardAlgo::compute(), and id().

68 {
69  return this->specificTopology().localError(strip, cluster_size*cluster_size/12.);
70 }
virtual LocalError localError(float strip, float stripErr2) const =0
const StripTopology & specificTopology() const
float strip(const LocalPoint &lp) const
float GEMEtaPartition::localPadPitch ( const LocalPoint lp) const

pad pitch at a particular point

Definition at line 117 of file GEMEtaPartition.cc.

References StripTopology::localPitch(), and specificPadTopology().

Referenced by id().

118 {
119  return specificPadTopology().localPitch(lp);
120 }
const StripTopology & specificPadTopology() const
virtual float localPitch(const LocalPoint &) const =0
float GEMEtaPartition::localPitch ( const LocalPoint lp) const

Definition at line 79 of file GEMEtaPartition.cc.

References StripTopology::localPitch(), and specificTopology().

Referenced by id().

80 {
81  return this->specificTopology().localPitch(lp);
82 }
const StripTopology & specificTopology() const
virtual float localPitch(const LocalPoint &) const =0
int GEMEtaPartition::npads ( ) const

number of GEM-CSC trigger readout pads in partition

Definition at line 92 of file GEMEtaPartition.cc.

References StripTopology::nstrips(), and specificPadTopology().

Referenced by GEMCoPadDigiValidation::analyze(), CSCUpgradeMotherboardLUTGenerator::gemPadToCscHsLUT(), and id().

93 {
94  return specificPadTopology().nstrips();
95 }
const StripTopology & specificPadTopology() const
virtual int nstrips() const =0
int GEMEtaPartition::nstrips ( ) const

number of readout strips in partition

Definition at line 48 of file GEMEtaPartition.cc.

References StripTopology::nstrips(), and specificTopology().

Referenced by SimHitMatcher::hitStripsInDetId(), id(), and GEMSimpleModel::simulateNoise().

49 {
50  return this->specificTopology().nstrips();
51 }
const StripTopology & specificTopology() const
virtual int nstrips() const =0
float GEMEtaPartition::pad ( const LocalPoint lp) const

returns FRACTIONAL pad number [0.,npads) for a point

Definition at line 111 of file GEMEtaPartition.cc.

References specificPadTopology(), and StripTopology::strip().

Referenced by GEMPadDigiValidation::analyze(), centreOfPad(), CSCUpgradeMotherboardLUTGenerator::cscHsToGemPadLUT(), firstStripInPad(), id(), lastStripInPad(), and padOfStrip().

112 {
113  return specificPadTopology().strip(lp);
114 }
virtual float strip(const LocalPoint &) const =0
const StripTopology & specificPadTopology() const
float GEMEtaPartition::padOfStrip ( int  strip) const

returns FRACTIONAL pad number [0.,npads) for an integer strip [0,nstrip-1]

Definition at line 130 of file GEMEtaPartition.cc.

References centreOfStrip(), and pad().

Referenced by id().

131 {
132  LocalPoint c_o_s = centreOfStrip(strip);
133  return pad(c_o_s);
134 }
LocalPoint centreOfStrip(int strip) const
float pad(const LocalPoint &lp) const
returns FRACTIONAL pad number [0.,npads) for a point
float strip(const LocalPoint &lp) const
float GEMEtaPartition::padPitch ( ) const

pad pitch in a center

Definition at line 123 of file GEMEtaPartition.cc.

References StripTopology::pitch(), and specificPadTopology().

Referenced by id().

124 {
125  return specificPadTopology().pitch();
126 }
const StripTopology & specificPadTopology() const
virtual float pitch() const =0
const Topology & GEMEtaPartition::padTopology ( ) const

Definition at line 30 of file GEMEtaPartition.cc.

References GEMEtaPartitionSpecs::padTopology(), and specs_.

Referenced by id().

31 {
32  return specs_->padTopology();
33 }
const Topology & padTopology() const
GEMEtaPartitionSpecs * specs_
float GEMEtaPartition::pitch ( ) const

Definition at line 85 of file GEMEtaPartition.cc.

References StripTopology::pitch(), and specificTopology().

Referenced by id(), and GEMSimpleModel::simulateNoise().

86 {
87  return this->specificTopology().pitch();
88 }
const StripTopology & specificTopology() const
virtual float pitch() const =0
const StripTopology & GEMEtaPartition::specificPadTopology ( ) const

Definition at line 36 of file GEMEtaPartition.cc.

References GEMEtaPartitionSpecs::specificPadTopology(), and specs_.

Referenced by centreOfPad(), firstStripInPad(), id(), lastStripInPad(), localPadPitch(), npads(), pad(), and padPitch().

37 {
38  return specs_->specificPadTopology();
39 }
const StripTopology & specificPadTopology() const
GEMEtaPartitionSpecs * specs_
const StripTopology & GEMEtaPartition::specificTopology ( ) const

Definition at line 24 of file GEMEtaPartition.cc.

References GEMEtaPartitionSpecs::specificTopology(), and specs_.

Referenced by centreOfStrip(), id(), localError(), localPitch(), nstrips(), pitch(), and strip().

25 {
26  return specs_->specificTopology();
27 }
const StripTopology & specificTopology() const
GEMEtaPartitionSpecs * specs_
const GEMEtaPartitionSpecs* GEMEtaPartition::specs ( ) const
inline

Definition at line 19 of file GEMEtaPartition.h.

References specs_.

Referenced by GEMTrackMatch::setGeometry(), and GEMTrivialModel::simulateSignal().

19 { return specs_; }
GEMEtaPartitionSpecs * specs_
float GEMEtaPartition::strip ( const LocalPoint lp) const

returns fractional strip number [0.0, nstrips) for a LocalPoint E.g., if local point hit strip #2, the fractional strip number would be somewhere in the [2.0, 3.0) interval

Definition at line 73 of file GEMEtaPartition.cc.

References specificTopology(), and StripTopology::strip().

Referenced by centreOfStrip(), firstStripInPad(), id(), lastStripInPad(), SimHitMatcher::simHitsMeanStrip(), and GEMSimpleModel::simulateClustering().

74 {
75  return this->specificTopology().strip(lp);
76 }
virtual float strip(const LocalPoint &) const =0
const StripTopology & specificTopology() const
const Topology & GEMEtaPartition::topology ( ) const
overridevirtual

Reimplemented from GeomDet.

Definition at line 18 of file GEMEtaPartition.cc.

References specs_, and GEMEtaPartitionSpecs::topology().

Referenced by SimHitMatcher::hitStripsInDetId(), id(), and GEMSimpleModel::simulateNoise().

19 {
20  return specs_->topology();
21 }
GEMEtaPartitionSpecs * specs_
const Topology & topology() const override
const GeomDetType & GEMEtaPartition::type ( ) const
overridevirtual

Reimplemented from GeomDet.

Definition at line 42 of file GEMEtaPartition.cc.

References specs_.

Referenced by GEMGeometry::add(), and id().

43 {
44  return (*specs_);
45 }
GEMEtaPartitionSpecs * specs_

Member Data Documentation

GEMDetId GEMEtaPartition::id_
private

Definition at line 87 of file GEMEtaPartition.h.

Referenced by id().

GEMEtaPartitionSpecs* GEMEtaPartition::specs_
private