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
EmulatedME0Segment Class Reference

#include <EmulatedME0Segment.h>

Inheritance diagram for EmulatedME0Segment:
RecSegment TrackingRecHit

Public Member Functions

virtual double chi2 () const
 Chi2 of the segment fit. More...
 
EmulatedME0Segmentclone () const
 
virtual int degreesOfFreedom () const
 Degrees of freedom of the segment fit. More...
 
virtual int dimension () const
 Dimension (in parameter space) More...
 
 EmulatedME0Segment ()
 Default constructor. More...
 
 EmulatedME0Segment (const LocalPoint &origin, const LocalVector &direction, const AlgebraicSymMatrix &errors, const double chi2)
 Constructor. More...
 
LocalVector localDirection () const
 Local direction. More...
 
LocalError localDirectionError () const
 Error on the local direction. More...
 
virtual LocalPoint localPosition () const
 
LocalError localPositionError () const
 
int nRecHits () const
 
AlgebraicVector parameters () const
 Parameters of the segment, for the track fit in the order (dx/dz, dy/dz, x, y ) More...
 
virtual AlgebraicSymMatrix parametersError () const
 Covariance matrix of parameters() More...
 
void print () const
 
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...
 
virtual ~EmulatedME0Segment ()
 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
 
LocalPoint theOrigin
 

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

Describes a simulated track segment in a z-plane modeling an ME0 chamber. It is modeled after CSCSegment, so it is a 4-dimensional object ( origin (x,y) , direction (x,y) ) Formally it must be defined as a LocalPoint and LocalError but we actually use the global coordinate system.

Author
David Nash

Definition at line 17 of file EmulatedME0Segment.h.

Constructor & Destructor Documentation

EmulatedME0Segment::EmulatedME0Segment ( )
inline

Default constructor.

Definition at line 22 of file EmulatedME0Segment.h.

Referenced by clone().

22 : theOrigin(0,0,0), theLocalDirection(0,0,0), theCovMatrix(4,0),theChi2(0.) {}
LocalVector theLocalDirection
AlgebraicSymMatrix theCovMatrix
EmulatedME0Segment::EmulatedME0Segment ( const LocalPoint origin,
const LocalVector direction,
const AlgebraicSymMatrix errors,
const double  chi2 
)

Constructor.

Definition at line 10 of file EmulatedME0Segment.cc.

10  :
11  theOrigin(origin),
13 }
virtual double chi2() const
Chi2 of the segment fit.
LocalVector theLocalDirection
AlgebraicSymMatrix theCovMatrix
EmulatedME0Segment::~EmulatedME0Segment ( )
virtual

Destructor.

Definition at line 15 of file EmulatedME0Segment.cc.

15 {}

Member Function Documentation

virtual double EmulatedME0Segment::chi2 ( ) const
inlinevirtual

Chi2 of the segment fit.

Implements RecSegment.

Definition at line 52 of file EmulatedME0Segment.h.

References theChi2.

52 { return theChi2; }
EmulatedME0Segment* EmulatedME0Segment::clone ( void  ) const
inlinevirtual

Implements TrackingRecHit.

Definition at line 31 of file EmulatedME0Segment.h.

References EmulatedME0Segment().

31 { return new EmulatedME0Segment(*this); }
EmulatedME0Segment()
Default constructor.
virtual int EmulatedME0Segment::degreesOfFreedom ( ) const
inlinevirtual

Degrees of freedom of the segment fit.

Implements RecSegment.

Definition at line 56 of file EmulatedME0Segment.h.

56 { return -1;} //Maybe change later?
virtual int EmulatedME0Segment::dimension ( ) const
inlinevirtual

Dimension (in parameter space)

Implements RecSegment.

Definition at line 54 of file EmulatedME0Segment.h.

54 { return 4; }
LocalVector EmulatedME0Segment::localDirection ( ) const
inlinevirtual

Local direction.

Implements RecSegment.

Definition at line 36 of file EmulatedME0Segment.h.

References theLocalDirection.

Referenced by operator<<().

36 { return theLocalDirection; }
LocalVector theLocalDirection
LocalError EmulatedME0Segment::localDirectionError ( ) const
virtual

Error on the local direction.

Implements RecSegment.

Definition at line 21 of file EmulatedME0Segment.cc.

References theCovMatrix.

Referenced by operator<<().

21  {
22  return LocalError(theCovMatrix[0][0], theCovMatrix[0][1], theCovMatrix[1][1]);
23 }
AlgebraicSymMatrix theCovMatrix
virtual LocalPoint EmulatedME0Segment::localPosition ( ) const
inlinevirtual

Implements TrackingRecHit.

Definition at line 33 of file EmulatedME0Segment.h.

References theOrigin.

Referenced by operator<<().

33 { return theOrigin; }
LocalError EmulatedME0Segment::localPositionError ( ) const
virtual

Implements TrackingRecHit.

Definition at line 17 of file EmulatedME0Segment.cc.

References theCovMatrix.

Referenced by operator<<().

17  {
18  return LocalError(theCovMatrix[2][2], theCovMatrix[2][3], theCovMatrix[3][3]);
19 }
AlgebraicSymMatrix theCovMatrix
int EmulatedME0Segment::nRecHits ( ) const
inline

Definition at line 60 of file EmulatedME0Segment.h.

60 { return 0;} //theME0RecHits.size(); }
AlgebraicVector EmulatedME0Segment::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 26 of file EmulatedME0Segment.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().

26  {
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 }
T y() const
Definition: PV3DBase.h:63
tuple result
Definition: mps_fire.py:84
T z() const
Definition: PV3DBase.h:64
CLHEP::HepVector AlgebraicVector
LocalVector theLocalDirection
T x() const
Definition: PV3DBase.h:62
virtual AlgebraicSymMatrix EmulatedME0Segment::parametersError ( ) const
inlinevirtual

Covariance matrix of parameters()

Implements TrackingRecHit.

Definition at line 43 of file EmulatedME0Segment.h.

References theCovMatrix.

43 { return theCovMatrix; }
AlgebraicSymMatrix theCovMatrix
void EmulatedME0Segment::print ( void  ) const

Definition at line 62 of file EmulatedME0Segment.cc.

References gather_cfg::cout.

62  {
63  std::cout << *this << std::endl;
64 }
tuple cout
Definition: gather_cfg.py:145
AlgebraicMatrix EmulatedME0Segment::projectionMatrix ( ) const
virtual

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

Implements TrackingRecHit.

Definition at line 55 of file EmulatedME0Segment.cc.

References theProjectionMatrix.

55  {
56  return theProjectionMatrix;
57 }
static const AlgebraicMatrix theProjectionMatrix
Definition: CSCSegment.cc:80
virtual std::vector<const TrackingRecHit*> EmulatedME0Segment::recHits ( ) const
inlinevirtual

Access to component RecHits (if any)

Implements TrackingRecHit.

Definition at line 48 of file EmulatedME0Segment.h.

48 {return std::vector<const TrackingRecHit*> (); }
virtual std::vector<TrackingRecHit*> EmulatedME0Segment::recHits ( )
inlinevirtual

Non-const access to component RecHits (if any)

Implements TrackingRecHit.

Definition at line 50 of file EmulatedME0Segment.h.

50 {return std::vector<TrackingRecHit*>();}

Member Data Documentation

double EmulatedME0Segment::theChi2
private

Definition at line 71 of file EmulatedME0Segment.h.

Referenced by chi2().

AlgebraicSymMatrix EmulatedME0Segment::theCovMatrix
private

Definition at line 70 of file EmulatedME0Segment.h.

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

LocalVector EmulatedME0Segment::theLocalDirection
private

Definition at line 69 of file EmulatedME0Segment.h.

Referenced by localDirection(), and parameters().

LocalPoint EmulatedME0Segment::theOrigin
private

Definition at line 68 of file EmulatedME0Segment.h.

Referenced by localPosition(), and parameters().