CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
ME0Segment Class Referencefinal

#include <ME0Segment.h>

Inheritance diagram for ME0Segment:
RecSegment TrackingRecHit

Public Member Functions

double chi2 () const
 Chi2 of the segment fit. More...
 
ME0Segmentclone () const
 
virtual int degreesOfFreedom () const
 Degrees of freedom of the segment fit. More...
 
virtual int dimension () const
 Dimension (in parameter space) More...
 
LocalVector localDirection () const
 Local direction. More...
 
LocalError localDirectionError () const
 Error on the local direction. More...
 
LocalPoint localPosition () const
 
LocalError localPositionError () const
 
ME0DetId me0DetId () const
 
 ME0Segment ()
 Default constructor. More...
 
 ME0Segment (const std::vector< const ME0RecHit * > &proto_segment, LocalPoint origin, LocalVector direction, AlgebraicSymMatrix errors, double chi2)
 Constructor. More...
 
 ME0Segment (const std::vector< const ME0RecHit * > &proto_segment, LocalPoint origin, LocalVector direction, AlgebraicSymMatrix errors, double chi2, double time, double timeErr)
 
int nRecHits () const
 
AlgebraicVector parameters () const
 Parameters of the segment, for the track fit in the order (dx/dz, dy/dz, x, y ) More...
 
AlgebraicSymMatrix parametersError () const
 Covariance matrix of parameters() More...
 
void print () const
 
virtual AlgebraicMatrix projectionMatrix () const
 The projection matrix relates the trajectory state parameters to the segment parameters(). More...
 
virtual std::vector< const
TrackingRecHit * > 
recHits () const
 Access to component RecHits (if any) More...
 
virtual std::vector
< TrackingRecHit * > 
recHits ()
 Non-const access to component RecHits (if any) More...
 
const std::vector< ME0RecHit > & specificRecHits () const
 
float time () const
 
float timeErr () const
 
virtual ~ME0Segment ()
 Destructor. More...
 
- Public Member Functions inherited from RecSegment
 RecSegment (DetId id)
 
 RecSegment (TrackingRecHit::id_type id=0)
 
virtual ~RecSegment ()
 Destructor. More...
 
- Public Member Functions inherited from TrackingRecHit
virtual bool canImproveWithTrack () const
 
RecHitPointer cloneForFit (const GeomDet &idet) const
 
virtual TrackingRecHitcloneHit () const
 
virtual RecHitPointer cloneSH () const
 
const GeomDetdet () const
 
virtual const GeomDetUnitdetUnit () const
 
virtual float errorGlobalR () const
 
virtual float errorGlobalRPhi () const
 
virtual float errorGlobalZ () const
 
DetId geographicalId () const
 
virtual void getKfComponents (KfComponentsHolder &holder) const
 
unsigned int getRTTI () const
 
Type getType () const
 
virtual GlobalPoint globalPosition () const
 
virtual GlobalError globalPositionError () const
 
virtual bool hasPositionAndError () const
 to be redefined by daughter class More...
 
virtual TrackingRecHit const * hit () const
 
bool isValid () const
 
id_type rawId () const
 
virtual void recHitsV (std::vector< const TrackingRecHit * > &) const
 
virtual void recHitsV (std::vector< TrackingRecHit * > &)
 
virtual void setDet (const GeomDet &idet)
 
virtual bool sharesInput (const TrackingRecHit *other, SharedInputType what) const
 
virtual const Surfacesurface () const
 
 TrackingRecHit (DetId id, Type type=valid)
 
 TrackingRecHit (id_type id=0, Type type=valid)
 
 TrackingRecHit (DetId id, unsigned int rt, Type type=valid)
 
 TrackingRecHit (const GeomDet &idet, Type type=valid)
 
 TrackingRecHit (const GeomDet &idet, unsigned int rt, Type type=valid)
 
 TrackingRecHit (const GeomDet &idet, TrackingRecHit const &rh)
 
virtual ConstRecHitContainer transientHits () const
 
Type type () const
 
virtual float weight () const
 
virtual ~TrackingRecHit ()
 

Private Attributes

double theChi2
 
AlgebraicSymMatrix theCovMatrix
 
LocalVector theLocalDirection
 
std::vector< ME0RecHittheME0RecHits
 
LocalPoint theOrigin
 
double theTimeUncrt
 
double theTimeValue
 

Additional Inherited Members

- Public Types inherited from TrackingRecHit
typedef std::vector
< ConstRecHitPointer
ConstRecHitContainer
 
using ConstRecHitPointer = std::shared_ptr< TrackingRecHit const >
 
typedef unsigned int id_type
 
typedef std::vector
< ConstRecHitPointer
RecHitContainer
 
using RecHitPointer = std::shared_ptr< TrackingRecHit const >
 
enum  SharedInputType { all, some }
 definition of equality via shared input More...
 
enum  Type {
  valid = 0, missing = 1, inactive = 2, bad = 3,
  missing_inner = 4, missing_outer = 5
}
 
- Static Public Attributes inherited from TrackingRecHit
static const int rttiShift = 24
 
static const int typeMask = 0xf
 
- Protected Member Functions inherited from TrackingRecHit
void setId (id_type iid)
 
void setRTTI (unsigned int rt)
 
void setType (Type ttype)
 

Detailed Description

the CSC segment Describes a reconstructed track segment in the 6 layers of the ME0 system. This is 4-dimensional since it has an origin (x,y) and a direction (x,y) in the local coordinate system of the chamber.

Date:
2014/02/04 12:41:32
Author
Marcello Maggi

Definition at line 20 of file ME0Segment.h.

Constructor & Destructor Documentation

ME0Segment::ME0Segment ( )
inline

Default constructor.

Definition at line 25 of file ME0Segment.h.

Referenced by clone().

25 : theChi2(0.){}
double theChi2
Definition: ME0Segment.h:84
ME0Segment::ME0Segment ( const std::vector< const ME0RecHit * > &  proto_segment,
LocalPoint  origin,
LocalVector  direction,
AlgebraicSymMatrix  errors,
double  chi2 
)

Constructor.

Definition at line 35 of file ME0Segment.cc.

References i, theME0RecHits, theTimeUncrt, and theTimeValue.

36  :
37  RecSegment(buildDetId(proto_segment.front()->me0Id())),
38  theOrigin(origin),
40  theTimeValue = 0.0;
41  theTimeUncrt = 0.0;
42  for(unsigned int i=0; i<proto_segment.size(); ++i)
43  theME0RecHits.push_back(*proto_segment[i]);
44 }
double theTimeValue
Definition: ME0Segment.h:85
LocalPoint theOrigin
Definition: ME0Segment.h:81
int i
Definition: DBlmapReader.cc:9
LocalVector theLocalDirection
Definition: ME0Segment.h:82
double theTimeUncrt
Definition: ME0Segment.h:86
std::vector< ME0RecHit > theME0RecHits
Definition: ME0Segment.h:80
double chi2() const
Chi2 of the segment fit.
Definition: ME0Segment.h:59
double theChi2
Definition: ME0Segment.h:84
RecSegment(DetId id)
Definition: RecSegment.h:30
AlgebraicSymMatrix theCovMatrix
Definition: ME0Segment.h:83
ME0Segment::ME0Segment ( const std::vector< const ME0RecHit * > &  proto_segment,
LocalPoint  origin,
LocalVector  direction,
AlgebraicSymMatrix  errors,
double  chi2,
double  time,
double  timeErr 
)

Definition at line 46 of file ME0Segment.cc.

References i, theME0RecHits, theTimeUncrt, theTimeValue, time(), and timeErr().

47  :
48  RecSegment(buildDetId(proto_segment.front()->me0Id())),
49  theOrigin(origin),
53 
54  for(unsigned int i=0; i<proto_segment.size(); ++i)
55  theME0RecHits.push_back(*proto_segment[i]);
56 }
double theTimeValue
Definition: ME0Segment.h:85
LocalPoint theOrigin
Definition: ME0Segment.h:81
int i
Definition: DBlmapReader.cc:9
LocalVector theLocalDirection
Definition: ME0Segment.h:82
double theTimeUncrt
Definition: ME0Segment.h:86
std::vector< ME0RecHit > theME0RecHits
Definition: ME0Segment.h:80
double chi2() const
Chi2 of the segment fit.
Definition: ME0Segment.h:59
double theChi2
Definition: ME0Segment.h:84
float timeErr() const
Definition: ME0Segment.h:74
RecSegment(DetId id)
Definition: RecSegment.h:30
AlgebraicSymMatrix theCovMatrix
Definition: ME0Segment.h:83
float time() const
Definition: ME0Segment.h:73
ME0Segment::~ME0Segment ( )
virtual

Destructor.

Definition at line 58 of file ME0Segment.cc.

58 {}

Member Function Documentation

double ME0Segment::chi2 ( ) const
inlinevirtual

Chi2 of the segment fit.

Implements RecSegment.

Definition at line 59 of file ME0Segment.h.

References theChi2.

Referenced by operator<<().

59 { return theChi2; };
double theChi2
Definition: ME0Segment.h:84
ME0Segment* ME0Segment::clone ( void  ) const
inlinevirtual

Implements TrackingRecHit.

Definition at line 38 of file ME0Segment.h.

References ME0Segment().

38 { return new ME0Segment(*this); }
ME0Segment()
Default constructor.
Definition: ME0Segment.h:25
virtual int ME0Segment::degreesOfFreedom ( ) const
inlinevirtual

Degrees of freedom of the segment fit.

Implements RecSegment.

Definition at line 63 of file ME0Segment.h.

References nRecHits().

Referenced by operator<<().

63 { return 2*nRecHits() - 4;}
int nRecHits() const
Definition: ME0Segment.h:69
virtual int ME0Segment::dimension ( ) const
inlinevirtual

Dimension (in parameter space)

Implements RecSegment.

Definition at line 61 of file ME0Segment.h.

61 { return 4; }
LocalVector ME0Segment::localDirection ( ) const
inlinevirtual

Local direction.

Implements RecSegment.

Definition at line 43 of file ME0Segment.h.

References theLocalDirection.

Referenced by operator<<().

43 { return theLocalDirection; }
LocalVector theLocalDirection
Definition: ME0Segment.h:82
LocalError ME0Segment::localDirectionError ( ) const
virtual

Error on the local direction.

Implements RecSegment.

Definition at line 81 of file ME0Segment.cc.

References theCovMatrix.

Referenced by operator<<().

81  {
82  return LocalError(theCovMatrix[0][0], theCovMatrix[0][1], theCovMatrix[1][1]);
83 }
AlgebraicSymMatrix theCovMatrix
Definition: ME0Segment.h:83
LocalPoint ME0Segment::localPosition ( ) const
inlinevirtual

Implements TrackingRecHit.

Definition at line 40 of file ME0Segment.h.

References theOrigin.

Referenced by operator<<().

40 { return theOrigin; }
LocalPoint theOrigin
Definition: ME0Segment.h:81
LocalError ME0Segment::localPositionError ( ) const
virtual

Implements TrackingRecHit.

Definition at line 77 of file ME0Segment.cc.

References theCovMatrix.

Referenced by operator<<().

77  {
78  return LocalError(theCovMatrix[2][2], theCovMatrix[2][3], theCovMatrix[3][3]);
79 }
AlgebraicSymMatrix theCovMatrix
Definition: ME0Segment.h:83
ME0DetId ME0Segment::me0DetId ( ) const
inline

Definition at line 71 of file ME0Segment.h.

References TrackingRecHit::geographicalId().

71 { return geographicalId(); }
DetId geographicalId() const
int ME0Segment::nRecHits ( ) const
inline

Definition at line 69 of file ME0Segment.h.

References theME0RecHits.

Referenced by degreesOfFreedom().

69 { return theME0RecHits.size(); }
std::vector< ME0RecHit > theME0RecHits
Definition: ME0Segment.h:80
AlgebraicVector ME0Segment::parameters ( void  ) const
virtual

Parameters of the segment, for the track fit in the order (dx/dz, dy/dz, x, y )

Implements TrackingRecHit.

Definition at line 86 of file ME0Segment.cc.

References mps_fire::result, theLocalDirection, theOrigin, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().

86  {
87  // For consistency with DT and CSC and what we require for the TrackingRecHit interface,
88  // the order of the parameters in the returned vector should be (dx/dz, dy/dz, x, z)
89 
91 
92  if(theLocalDirection.z() != 0)
93  {
96  }
97  result[2] = theOrigin.x();
98  result[3] = theOrigin.y();
99 
100  return result;
101 }
LocalPoint theOrigin
Definition: ME0Segment.h:81
LocalVector theLocalDirection
Definition: ME0Segment.h:82
T y() const
Definition: PV3DBase.h:63
tuple result
Definition: mps_fire.py:84
T z() const
Definition: PV3DBase.h:64
CLHEP::HepVector AlgebraicVector
T x() const
Definition: PV3DBase.h:62
AlgebraicSymMatrix ME0Segment::parametersError ( ) const
inlinevirtual

Covariance matrix of parameters()

Implements TrackingRecHit.

Definition at line 50 of file ME0Segment.h.

References theCovMatrix.

50 { return theCovMatrix; }
AlgebraicSymMatrix theCovMatrix
Definition: ME0Segment.h:83
void ME0Segment::print ( void  ) const

Definition at line 109 of file ME0Segment.cc.

References LogDebug.

109  {
110  LogDebug("ME0Segment") << *this;
111 
112 }
#define LogDebug(id)
AlgebraicMatrix ME0Segment::projectionMatrix ( ) const
virtual

The projection matrix relates the trajectory state parameters to the segment parameters().

Implements TrackingRecHit.

Definition at line 103 of file ME0Segment.cc.

References ProjectionMatrixDiag::getMatrix(), and theProjectionMatrix.

103  {
105  return (theProjectionMatrix.getMatrix());
106 }
static const AlgebraicMatrix theProjectionMatrix
Definition: CSCSegment.cc:80
const AlgebraicMatrix & getMatrix() const
std::vector< const TrackingRecHit * > ME0Segment::recHits ( ) const
virtual

Access to component RecHits (if any)

Implements TrackingRecHit.

Definition at line 60 of file ME0Segment.cc.

References theME0RecHits.

60  {
61  std::vector<const TrackingRecHit*> pointersOfRecHits;
62  for (std::vector<ME0RecHit>::const_iterator irh = theME0RecHits.begin(); irh!=theME0RecHits.end(); ++irh) {
63  pointersOfRecHits.push_back(&(*irh));
64  }
65  return pointersOfRecHits;
66 }
std::vector< ME0RecHit > theME0RecHits
Definition: ME0Segment.h:80
std::vector< TrackingRecHit * > ME0Segment::recHits ( )
virtual

Non-const access to component RecHits (if any)

Implements TrackingRecHit.

Definition at line 68 of file ME0Segment.cc.

References theME0RecHits.

68  {
69 
70  std::vector<TrackingRecHit*> pointersOfRecHits;
71  for (std::vector<ME0RecHit>::iterator irh = theME0RecHits.begin(); irh!=theME0RecHits.end(); ++irh) {
72  pointersOfRecHits.push_back(&(*irh));
73  }
74  return pointersOfRecHits;
75 }
std::vector< ME0RecHit > theME0RecHits
Definition: ME0Segment.h:80
const std::vector<ME0RecHit>& ME0Segment::specificRecHits ( ) const
inline

Definition at line 67 of file ME0Segment.h.

References theME0RecHits.

Referenced by operator<<().

67 { return theME0RecHits; }
std::vector< ME0RecHit > theME0RecHits
Definition: ME0Segment.h:80
float ME0Segment::time ( ) const
inline

Definition at line 73 of file ME0Segment.h.

References theTimeValue.

Referenced by ME0Segment(), and operator<<().

73 { return theTimeValue; }
double theTimeValue
Definition: ME0Segment.h:85
float ME0Segment::timeErr ( ) const
inline

Definition at line 74 of file ME0Segment.h.

References theTimeUncrt.

Referenced by ME0Segment(), and operator<<().

74 { return theTimeUncrt; }
double theTimeUncrt
Definition: ME0Segment.h:86

Member Data Documentation

double ME0Segment::theChi2
private

Definition at line 84 of file ME0Segment.h.

Referenced by chi2().

AlgebraicSymMatrix ME0Segment::theCovMatrix
private

Definition at line 83 of file ME0Segment.h.

Referenced by localDirectionError(), localPositionError(), and parametersError().

LocalVector ME0Segment::theLocalDirection
private

Definition at line 82 of file ME0Segment.h.

Referenced by localDirection(), and parameters().

std::vector<ME0RecHit> ME0Segment::theME0RecHits
private

Definition at line 80 of file ME0Segment.h.

Referenced by ME0Segment(), nRecHits(), recHits(), and specificRecHits().

LocalPoint ME0Segment::theOrigin
private

Definition at line 81 of file ME0Segment.h.

Referenced by localPosition(), and parameters().

double ME0Segment::theTimeUncrt
private

Definition at line 86 of file ME0Segment.h.

Referenced by ME0Segment(), and timeErr().

double ME0Segment::theTimeValue
private

Definition at line 85 of file ME0Segment.h.

Referenced by ME0Segment(), and time().