CMS 3D CMS Logo

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 override
 Chi2 of the segment fit. More...
 
ME0Segmentclone () const override
 
int degreesOfFreedom () const override
 Degrees of freedom of the segment fit. More...
 
float deltaPhi () const
 
int dimension () const override
 Dimension (in parameter space) More...
 
LocalVector localDirection () const override
 Local direction. More...
 
LocalError localDirectionError () const override
 Error on the local direction. More...
 
LocalPoint localPosition () const override
 
LocalError localPositionError () const override
 
ME0DetId me0DetId () const
 
 ME0Segment ()
 Default constructor. More...
 
 ME0Segment (const std::vector< const ME0RecHit * > &proto_segment, const LocalPoint &origin, const LocalVector &direction, const AlgebraicSymMatrix &errors, float chi2)
 Constructor. More...
 
 ME0Segment (const std::vector< const ME0RecHit * > &proto_segment, const LocalPoint &origin, const LocalVector &direction, const AlgebraicSymMatrix &errors, float chi2, float time, float timeErr, float deltaPhi)
 
int nRecHits () const
 
AlgebraicVector parameters () const override
 Parameters of the segment, for the track fit in the order (dx/dz, dy/dz, x, y ) More...
 
AlgebraicSymMatrix parametersError () const override
 Covariance matrix of parameters() More...
 
void print () const
 
AlgebraicMatrix projectionMatrix () const override
 The projection matrix relates the trajectory state parameters to the segment parameters(). More...
 
std::vector< const TrackingRecHit * > recHits () const override
 Access to component RecHits (if any) More...
 
std::vector< TrackingRecHit * > recHits () override
 Non-const access to component RecHits (if any) More...
 
const std::vector< ME0RecHit > & specificRecHits () const
 
float time () const
 
float timeErr () const
 
 ~ME0Segment () override
 Destructor. More...
 
- Public Member Functions inherited from RecSegment
 RecSegment (DetId id)
 
 RecSegment (TrackingRecHit::id_type id=0)
 
 ~RecSegment () override
 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

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

Additional Inherited Members

- Public Types inherited from TrackingRecHit
typedef std::vector< ConstRecHitPointerConstRecHitContainer
 
using ConstRecHitPointer = std::shared_ptr< TrackingRecHit const >
 
typedef unsigned int id_type
 
typedef std::vector< ConstRecHitPointerRecHitContainer
 
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, inactive_inner = 6, inactive_outer = 7
}
 
- 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.

References chi2(), deltaPhi(), time(), timeErr(), and ~ME0Segment().

Referenced by clone().

25 : theChi2(0.), theTimeValue(0.), theTimeUncrt(0.), theDeltaPhi(0.){}
float theChi2
Definition: ME0Segment.h:86
float theDeltaPhi
Definition: ME0Segment.h:89
float theTimeValue
Definition: ME0Segment.h:87
float theTimeUncrt
Definition: ME0Segment.h:88
ME0Segment::ME0Segment ( const std::vector< const ME0RecHit * > &  proto_segment,
const LocalPoint origin,
const LocalVector direction,
const AlgebraicSymMatrix errors,
float  chi2 
)

Constructor.

Definition at line 34 of file ME0Segment.cc.

References theME0RecHits.

35  :
36  RecSegment(buildDetId(proto_segment.front()->me0Id())), theOrigin(origin), theLocalDirection(direction), theCovMatrix(errors),
38  for(const auto* rh : proto_segment ) theME0RecHits.push_back(*rh);
39  }
LocalPoint theOrigin
Definition: ME0Segment.h:83
LocalVector theLocalDirection
Definition: ME0Segment.h:84
float theChi2
Definition: ME0Segment.h:86
float theDeltaPhi
Definition: ME0Segment.h:89
std::vector< ME0RecHit > theME0RecHits
Definition: ME0Segment.h:82
float theTimeValue
Definition: ME0Segment.h:87
float theTimeUncrt
Definition: ME0Segment.h:88
double chi2() const override
Chi2 of the segment fit.
Definition: ME0Segment.h:59
Definition: errors.py:1
RecSegment(DetId id)
Definition: RecSegment.h:30
AlgebraicSymMatrix theCovMatrix
Definition: ME0Segment.h:85
ME0Segment::ME0Segment ( const std::vector< const ME0RecHit * > &  proto_segment,
const LocalPoint origin,
const LocalVector direction,
const AlgebraicSymMatrix errors,
float  chi2,
float  time,
float  timeErr,
float  deltaPhi 
)

Definition at line 41 of file ME0Segment.cc.

References theME0RecHits.

42  :
43  RecSegment(buildDetId(proto_segment.front()->me0Id())), theOrigin(origin), theLocalDirection(direction), theCovMatrix(errors),
45  for(const auto* rh : proto_segment ) theME0RecHits.push_back(*rh);
46 }
LocalPoint theOrigin
Definition: ME0Segment.h:83
LocalVector theLocalDirection
Definition: ME0Segment.h:84
float theChi2
Definition: ME0Segment.h:86
float theDeltaPhi
Definition: ME0Segment.h:89
std::vector< ME0RecHit > theME0RecHits
Definition: ME0Segment.h:82
float theTimeValue
Definition: ME0Segment.h:87
float deltaPhi() const
Definition: ME0Segment.h:76
float theTimeUncrt
Definition: ME0Segment.h:88
double chi2() const override
Chi2 of the segment fit.
Definition: ME0Segment.h:59
Definition: errors.py:1
float timeErr() const
Definition: ME0Segment.h:74
RecSegment(DetId id)
Definition: RecSegment.h:30
AlgebraicSymMatrix theCovMatrix
Definition: ME0Segment.h:85
float time() const
Definition: ME0Segment.h:73
ME0Segment::~ME0Segment ( )
override

Destructor.

Definition at line 48 of file ME0Segment.cc.

Referenced by ME0Segment().

48 {}

Member Function Documentation

double ME0Segment::chi2 ( ) const
inlineoverridevirtual

Chi2 of the segment fit.

Implements RecSegment.

Definition at line 59 of file ME0Segment.h.

References theChi2.

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

59 { return theChi2; };
float theChi2
Definition: ME0Segment.h:86
ME0Segment* ME0Segment::clone ( void  ) const
inlineoverridevirtual

Implements TrackingRecHit.

Definition at line 38 of file ME0Segment.h.

References ME0Segment().

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

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
float ME0Segment::deltaPhi ( ) const
inline

Definition at line 76 of file ME0Segment.h.

References print(), and theDeltaPhi.

Referenced by ME0Segment().

76 { return theDeltaPhi; }
float theDeltaPhi
Definition: ME0Segment.h:89
int ME0Segment::dimension ( ) const
inlineoverridevirtual

Dimension (in parameter space)

Implements RecSegment.

Definition at line 61 of file ME0Segment.h.

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

Local direction.

Implements RecSegment.

Definition at line 43 of file ME0Segment.h.

References localDirectionError(), parameters(), and theLocalDirection.

Referenced by FWME0SegmentProxyBuilder::build(), muon::isGoodMuon(), and operator<<().

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

Error on the local direction.

Implements RecSegment.

Definition at line 67 of file ME0Segment.cc.

References theCovMatrix.

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

67  {
68  return LocalError(theCovMatrix[0][0], theCovMatrix[0][1], theCovMatrix[1][1]);
69 }
AlgebraicSymMatrix theCovMatrix
Definition: ME0Segment.h:85
LocalPoint ME0Segment::localPosition ( ) const
inlineoverridevirtual

Implements TrackingRecHit.

Definition at line 40 of file ME0Segment.h.

References localPositionError(), and theOrigin.

Referenced by FWME0SegmentProxyBuilder::build(), muon::isGoodMuon(), and operator<<().

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

Implements TrackingRecHit.

Definition at line 63 of file ME0Segment.cc.

References theCovMatrix.

Referenced by muon::isGoodMuon(), localPosition(), and operator<<().

63  {
64  return LocalError(theCovMatrix[2][2], theCovMatrix[2][3], theCovMatrix[3][3]);
65 }
AlgebraicSymMatrix theCovMatrix
Definition: ME0Segment.h:85
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:82
AlgebraicVector ME0Segment::parameters ( void  ) const
overridevirtual

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

Implements TrackingRecHit.

Definition at line 72 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(), localDirection(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::properties(), and Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::recursePSetProperties().

72  {
73  // For consistency with DT and CSC and what we require for the TrackingRecHit interface,
74  // the order of the parameters in the returned vector should be (dx/dz, dy/dz, x, z)
75 
77 
78  if(theLocalDirection.z() != 0)
79  {
82  }
83  result[2] = theOrigin.x();
84  result[3] = theOrigin.y();
85 
86  return result;
87 }
LocalPoint theOrigin
Definition: ME0Segment.h:83
LocalVector theLocalDirection
Definition: ME0Segment.h:84
T y() const
Definition: PV3DBase.h:63
T z() const
Definition: PV3DBase.h:64
CLHEP::HepVector AlgebraicVector
T x() const
Definition: PV3DBase.h:62
AlgebraicSymMatrix ME0Segment::parametersError ( ) const
inlineoverridevirtual

Covariance matrix of parameters()

Implements TrackingRecHit.

Definition at line 50 of file ME0Segment.h.

References projectionMatrix(), recHits(), and theCovMatrix.

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

Definition at line 95 of file ME0Segment.cc.

References LogDebug.

Referenced by deltaPhi().

95  {
96  LogDebug("ME0Segment") << *this;
97 
98 }
#define LogDebug(id)
AlgebraicMatrix ME0Segment::projectionMatrix ( ) const
overridevirtual

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

Implements TrackingRecHit.

Definition at line 89 of file ME0Segment.cc.

References ProjectionMatrixDiag::getMatrix(), and theProjectionMatrix.

Referenced by parametersError().

89  {
91  return (theProjectionMatrix.getMatrix());
92 }
static const AlgebraicMatrix theProjectionMatrix
Definition: CSCSegment.cc:80
const AlgebraicMatrix & getMatrix() const
std::vector< const TrackingRecHit * > ME0Segment::recHits ( ) const
overridevirtual

Access to component RecHits (if any)

Implements TrackingRecHit.

Definition at line 50 of file ME0Segment.cc.

References theME0RecHits.

Referenced by parametersError().

50  {
51  std::vector<const TrackingRecHit*> pointersOfRecHits;
52  for(const auto& rh : theME0RecHits ) pointersOfRecHits.push_back(&rh);
53  return pointersOfRecHits;
54 }
std::vector< ME0RecHit > theME0RecHits
Definition: ME0Segment.h:82
std::vector< TrackingRecHit * > ME0Segment::recHits ( )
overridevirtual

Non-const access to component RecHits (if any)

Implements TrackingRecHit.

Definition at line 56 of file ME0Segment.cc.

References theME0RecHits.

56  {
57 
58  std::vector<TrackingRecHit*> pointersOfRecHits;
59  for(auto& rh : theME0RecHits ) pointersOfRecHits.push_back(&rh);
60  return pointersOfRecHits;
61 }
std::vector< ME0RecHit > theME0RecHits
Definition: ME0Segment.h:82
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:82
float ME0Segment::time ( ) const
inline

Definition at line 73 of file ME0Segment.h.

References theTimeValue.

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

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

Definition at line 74 of file ME0Segment.h.

References theTimeUncrt.

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

74 { return theTimeUncrt; }
float theTimeUncrt
Definition: ME0Segment.h:88

Member Data Documentation

float ME0Segment::theChi2
private

Definition at line 86 of file ME0Segment.h.

Referenced by chi2().

AlgebraicSymMatrix ME0Segment::theCovMatrix
private

Definition at line 85 of file ME0Segment.h.

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

float ME0Segment::theDeltaPhi
private

Definition at line 89 of file ME0Segment.h.

Referenced by deltaPhi().

LocalVector ME0Segment::theLocalDirection
private

Definition at line 84 of file ME0Segment.h.

Referenced by localDirection(), and parameters().

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

Definition at line 82 of file ME0Segment.h.

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

LocalPoint ME0Segment::theOrigin
private

Definition at line 83 of file ME0Segment.h.

Referenced by localPosition(), and parameters().

float ME0Segment::theTimeUncrt
private

Definition at line 88 of file ME0Segment.h.

Referenced by timeErr().

float ME0Segment::theTimeValue
private

Definition at line 87 of file ME0Segment.h.

Referenced by time().