CMS 3D CMS Logo

EmulatedME0Segment.cc
Go to the documentation of this file.
1 
8 #include <iostream>
9 
11  const LocalVector& direction,
13  const double chi2)
14  : theOrigin(origin), theLocalDirection(direction), theCovMatrix(errors), theChi2(chi2) {}
15 
17 
19  return LocalError(theCovMatrix[2][2], theCovMatrix[2][3], theCovMatrix[3][3]);
20 }
21 
23  return LocalError(theCovMatrix[0][0], theCovMatrix[0][1], theCovMatrix[1][1]);
24 }
25 
27  // For consistency with DT and what we require for the TrackingRecHit interface,
28  // the order of the parameters in the returned vector should be (dx/dz, dy/dz, x, z)
29 
31 
34  result[2] = theOrigin.x();
35  result[3] = theOrigin.y();
36 
37  return result;
38 }
39 
40 namespace {
42  AlgebraicMatrix m(4, 5, 0);
43  m[0][1] = 1;
44  m[1][2] = 1;
45  m[2][3] = 1;
46  m[3][4] = 1;
47  return m;
48  }
49 }; // namespace
50 
51 namespace {
53 };
54 
56 
57 //
58 void EmulatedME0Segment::print() const { std::cout << *this << std::endl; }
59 
60 std::ostream& operator<<(std::ostream& os, const EmulatedME0Segment& seg) {
61  os << "EmulatedME0Segment: local pos = " << seg.localPosition() << " posErr = ("
62  << sqrt(seg.localPositionError().xx()) << "," << sqrt(seg.localPositionError().yy()) << "0,)\n"
63  << " dir = " << seg.localDirection() << " dirErr = (" << sqrt(seg.localDirectionError().xx()) << ","
64  << sqrt(seg.localDirectionError().yy()) << "0,)\n";
65  return os;
66 }
Vector3DBase< float, LocalTag >
EmulatedME0Segment::~EmulatedME0Segment
~EmulatedME0Segment() override
Destructor.
Definition: EmulatedME0Segment.cc:16
EmulatedME0Segment::theLocalDirection
LocalVector theLocalDirection
Definition: EmulatedME0Segment.h:69
EmulatedME0Segment::theCovMatrix
AlgebraicSymMatrix theCovMatrix
Definition: EmulatedME0Segment.h:70
PV3DBase::x
T x() const
Definition: PV3DBase.h:59
gather_cfg.cout
cout
Definition: gather_cfg.py:144
EmulatedME0Segment::print
void print() const
Definition: EmulatedME0Segment.cc:58
hltPixelTracks_cff.chi2
chi2
Definition: hltPixelTracks_cff.py:25
PV3DBase::z
T z() const
Definition: PV3DBase.h:61
EmulatedME0Segment::EmulatedME0Segment
EmulatedME0Segment()
Default constructor.
Definition: EmulatedME0Segment.h:20
errors
Definition: errors.py:1
AlgebraicVector
CLHEP::HepVector AlgebraicVector
Definition: AlgebraicObjects.h:13
LocalError::xx
float xx() const
Definition: LocalError.h:22
visualization-live-secondInstance_cfg.m
m
Definition: visualization-live-secondInstance_cfg.py:72
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
EmulatedME0Segment::localPositionError
LocalError localPositionError() const override
Definition: EmulatedME0Segment.cc:18
Point3DBase< float, LocalTag >
EmulatedME0Segment::projectionMatrix
AlgebraicMatrix projectionMatrix() const override
The projection matrix relates the trajectory state parameters to the segment parameters().
Definition: EmulatedME0Segment.cc:55
EmulatedME0Segment.h
LocalError
Definition: LocalError.h:12
EmulatedME0Segment::parameters
AlgebraicVector parameters() const override
Parameters of the segment, for the track fit in the order (dx/dz, dy/dz, x, y )
Definition: EmulatedME0Segment.cc:26
PV3DBase::y
T y() const
Definition: PV3DBase.h:60
EmulatedME0Segment
Definition: EmulatedME0Segment.h:17
EmulatedME0Segment::localPosition
LocalPoint localPosition() const override
Definition: EmulatedME0Segment.h:34
EmulatedME0Segment::theOrigin
LocalPoint theOrigin
Definition: EmulatedME0Segment.h:68
AlgebraicSymMatrix
CLHEP::HepSymMatrix AlgebraicSymMatrix
Definition: AlgebraicObjects.h:15
AlgebraicMatrix
CLHEP::HepMatrix AlgebraicMatrix
Definition: AlgebraicObjects.h:14
theProjectionMatrix
static const AlgebraicMatrix theProjectionMatrix
Definition: CSCSegment.cc:79
EmulatedME0Segment::localDirectionError
LocalError localDirectionError() const override
Error on the local direction.
Definition: EmulatedME0Segment.cc:22
mps_fire.result
result
Definition: mps_fire.py:303
createStaticMatrix
AlgebraicMatrix createStaticMatrix()
Definition: CSCSegment.cc:70
EmulatedME0Segment::localDirection
LocalVector localDirection() const override
Local direction.
Definition: EmulatedME0Segment.h:37
operator<<
std::ostream & operator<<(std::ostream &os, const EmulatedME0Segment &seg)
Definition: EmulatedME0Segment.cc:60
LocalError::yy
float yy() const
Definition: LocalError.h:24