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, const LocalPoint &origin, const LocalVector &direction, const AlgebraicSymMatrix &errors, double chi2)
 Constructor. More...
 
 ME0Segment (const std::vector< const ME0RecHit * > &proto_segment, const LocalPoint &origin, const LocalVector &direction, const 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,
const LocalPoint origin,
const LocalVector direction,
const AlgebraicSymMatrix errors,
double  chi2 
)

Constructor.

Definition at line 34 of file ME0Segment.cc.

References i, theME0RecHits, theTimeUncrt, and theTimeValue.

35  :
36  RecSegment(buildDetId(proto_segment.front()->me0Id())),
37  theOrigin(origin),
39  theTimeValue = 0.0;
40  theTimeUncrt = 0.0;
41  for(unsigned int i=0; i<proto_segment.size(); ++i)
42  theME0RecHits.push_back(*proto_segment[i]);
43 }
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,
const LocalPoint origin,
const LocalVector direction,
const AlgebraicSymMatrix errors,
double  chi2,
double  time,
double  timeErr 
)

Definition at line 45 of file ME0Segment.cc.

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

46  :
47  RecSegment(buildDetId(proto_segment.front()->me0Id())),
48  theOrigin(origin),
52 
53  for(unsigned int i=0; i<proto_segment.size(); ++i)
54  theME0RecHits.push_back(*proto_segment[i]);
55 }
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 57 of file ME0Segment.cc.

57 {}

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 FWME0SegmentProxyBuilder::build(), and 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 80 of file ME0Segment.cc.

References theCovMatrix.

Referenced by operator<<().

80  {
81  return LocalError(theCovMatrix[0][0], theCovMatrix[0][1], theCovMatrix[1][1]);
82 }
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 FWME0SegmentProxyBuilder::build(), and operator<<().

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

Implements TrackingRecHit.

Definition at line 76 of file ME0Segment.cc.

References theCovMatrix.

Referenced by operator<<().

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

Definition at line 71 of file ME0Segment.h.

References TrackingRecHit::geographicalId().

Referenced by FWME0SegmentProxyBuilder::build().

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 85 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().

Referenced by Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::inputTags(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::properties(), and Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::recursePSetProperties().

85  {
86  // For consistency with DT and CSC and what we require for the TrackingRecHit interface,
87  // the order of the parameters in the returned vector should be (dx/dz, dy/dz, x, z)
88 
90 
91  if(theLocalDirection.z() != 0)
92  {
95  }
96  result[2] = theOrigin.x();
97  result[3] = theOrigin.y();
98 
99  return result;
100 }
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 108 of file ME0Segment.cc.

References LogDebug.

108  {
109  LogDebug("ME0Segment") << *this;
110 
111 }
#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 102 of file ME0Segment.cc.

References ProjectionMatrixDiag::getMatrix(), and theProjectionMatrix.

102  {
104  return (theProjectionMatrix.getMatrix());
105 }
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 59 of file ME0Segment.cc.

References theME0RecHits.

59  {
60  std::vector<const TrackingRecHit*> pointersOfRecHits;
61  for (std::vector<ME0RecHit>::const_iterator irh = theME0RecHits.begin(); irh!=theME0RecHits.end(); ++irh) {
62  pointersOfRecHits.push_back(&(*irh));
63  }
64  return pointersOfRecHits;
65 }
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 67 of file ME0Segment.cc.

References theME0RecHits.

67  {
68 
69  std::vector<TrackingRecHit*> pointersOfRecHits;
70  for (std::vector<ME0RecHit>::iterator irh = theME0RecHits.begin(); irh!=theME0RecHits.end(); ++irh) {
71  pointersOfRecHits.push_back(&(*irh));
72  }
73  return pointersOfRecHits;
74 }
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 FWME0SegmentProxyBuilder::build(), and 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().