CMS 3D CMS Logo

CSCStripTopology.cc
Go to the documentation of this file.
3 
4 CSCStripTopology::CSCStripTopology(int ns, float aw, float dh, float r, float aoff, float ymid)
5  : OffsetRadialStripTopology(ns, aw, dh, r, aoff, ymid) {}
6 
8 
9 std::pair<float, float> CSCStripTopology::equationOfStrip(float strip) const {
10  const float fprec = 1.E-06;
11 
12  // slope of strip
13  float strangle = M_PI_2 - stripAngle(strip);
14  float ms = 0;
15  if (fabs(strangle) > fprec)
16  ms = tan(strangle);
17 
18  // intercept of strip
19  float cs = -originToIntersection();
20 
21  LogTrace("CSCStripTopology|CSC") << "CSCStripTopology: strip=" << strip << ", strip angle = " << strangle
22  << ", intercept on y axis=" << cs;
23 
24  return std::pair<float, float>(ms, cs);
25 }
26 
27 std::pair<float, float> CSCStripTopology::yLimitsOfStripPlane() const {
28  // use functions from base class
29  float ylow = yCentreOfStripPlane() - yExtentOfStripPlane() / 2.;
30  float yhigh = yCentreOfStripPlane() + yExtentOfStripPlane() / 2.;
31 
32  return std::pair<float, float>(ylow, yhigh);
33 }
34 
35 // op<< is not a member
36 
37 #include <iostream>
38 
39 std::ostream& operator<<(std::ostream& os, const CSCStripTopology& st) {
40  st.put(os) << " isa " << static_cast<const OffsetRadialStripTopology&>(st);
41  return os;
42 }
MessageLogger.h
operator<<
std::ostream & operator<<(std::ostream &os, const CSCStripTopology &st)
Definition: CSCStripTopology.cc:39
CSCRadialStripTopology::yExtentOfStripPlane
float yExtentOfStripPlane() const override
Definition: CSCRadialStripTopology.h:174
OffsetRadialStripTopology
Definition: OffsetRadialStripTopology.h:17
fwrapper::cs
unique_ptr< ClusterSequence > cs
Definition: fastjetfortran_madfks.cc:45
digitizers_cfi.strip
strip
Definition: digitizers_cfi.py:19
CSCStripTopology::equationOfStrip
std::pair< float, float > equationOfStrip(float strip) const
Definition: CSCStripTopology.cc:9
CSCStripTopology::yLimitsOfStripPlane
std::pair< float, float > yLimitsOfStripPlane() const
Definition: CSCStripTopology.cc:27
CSCRadialStripTopology::yCentreOfStripPlane
float yCentreOfStripPlane() const override
Definition: CSCRadialStripTopology.h:223
CSCStripTopology::CSCStripTopology
CSCStripTopology(int ns, float aw, float dh, float r, float aoff, float ymid)
Definition: CSCStripTopology.cc:4
funct::tan
Tan< T >::type tan(const T &t)
Definition: Tan.h:22
CSCStripTopology::put
virtual std::ostream & put(std::ostream &) const =0
OffsetRadialStripTopology::stripAngle
float stripAngle(float strip) const override
Definition: OffsetRadialStripTopology.cc:82
alignCSCRings.r
r
Definition: alignCSCRings.py:93
CSCStripTopology
Definition: CSCStripTopology.h:28
CSCStripTopology.h
OffsetRadialStripTopology::strip
float strip(const LocalPoint &) const override
Definition: OffsetRadialStripTopology.cc:73
M_PI_2
#define M_PI_2
Definition: CSCGattiFunction.cc:6
LogTrace
#define LogTrace(id)
Definition: MessageLogger.h:671
CSCRadialStripTopology::originToIntersection
float originToIntersection() const override
Definition: CSCRadialStripTopology.h:188
cuy.dh
dh
Definition: cuy.py:355
CSCStripTopology::~CSCStripTopology
~CSCStripTopology() override
Definition: CSCStripTopology.cc:7