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

#include <GSSiTrackerRecHit2DLocalPos.h>

Inheritance diagram for GSSiTrackerRecHit2DLocalPos:
RecHit2DLocalPos TrackingRecHit SiTrackerGSMatchedRecHit2D SiTrackerGSRecHit2D

Public Member Functions

virtual void getKfComponents (KfComponentsHolder &holder) const
 
 GSSiTrackerRecHit2DLocalPos ()
 
 GSSiTrackerRecHit2DLocalPos (const LocalPoint &p, const LocalError &e, DetId id)
 
virtual LocalPoint localPosition () const
 
virtual LocalError localPositionError () const
 
virtual bool sharesInput (const TrackingRecHit *other, SharedInputType what) const
 
 ~GSSiTrackerRecHit2DLocalPos ()
 
- Public Member Functions inherited from RecHit2DLocalPos
virtual RecHit2DLocalPosclone () const =0
 
virtual int dimension () const
 
virtual AlgebraicVector parameters () const
 
virtual AlgebraicSymMatrix parametersError () const
 
virtual AlgebraicMatrix projectionMatrix () const
 
 RecHit2DLocalPos (DetId id)
 
 RecHit2DLocalPos (TrackingRecHit::id_type id=0)
 
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 ~RecHit2DLocalPos ()
 
- Public Member Functions inherited from TrackingRecHit
DetId geographicalId () const
 
unsigned int getRTTI () const
 
Type getType () const
 
virtual bool hasPositionAndError () const
 to be redefined by daughter class More...
 
bool isValid () const
 
id_type rawId () const
 
virtual void recHitsV (std::vector< const TrackingRecHit * > &) const
 
virtual void recHitsV (std::vector< TrackingRecHit * > &)
 
 TrackingRecHit (DetId id, Type type=valid)
 
 TrackingRecHit (id_type id=0, Type type=valid)
 
 TrackingRecHit (DetId id, unsigned int rt, Type type=valid)
 
Type type () const
 
virtual float weight () const
 
virtual ~TrackingRecHit ()
 

Private Attributes

LocalError err_
 
LocalPoint pos_
 

Additional Inherited Members

- Public Types inherited from RecHit2DLocalPos
typedef GloballyPositioned
< float >::LocalPoint 
LocalPoint
 
- Public Types inherited from TrackingRecHit
typedef unsigned int id_type
 
enum  SharedInputType { all, some }
 definition of equality via shared input More...
 
enum  Type { valid = 0, missing = 1, inactive = 2, bad = 3 }
 
- 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

Definition at line 8 of file GSSiTrackerRecHit2DLocalPos.h.

Constructor & Destructor Documentation

GSSiTrackerRecHit2DLocalPos::GSSiTrackerRecHit2DLocalPos ( )
inline

Definition at line 11 of file GSSiTrackerRecHit2DLocalPos.h.

11 : RecHit2DLocalPos(0) {}
RecHit2DLocalPos(DetId id)
GSSiTrackerRecHit2DLocalPos::~GSSiTrackerRecHit2DLocalPos ( )
inline

Definition at line 13 of file GSSiTrackerRecHit2DLocalPos.h.

13 {}
GSSiTrackerRecHit2DLocalPos::GSSiTrackerRecHit2DLocalPos ( const LocalPoint p,
const LocalError e,
DetId  id 
)
inline

Member Function Documentation

void GSSiTrackerRecHit2DLocalPos::getKfComponents ( KfComponentsHolder holder) const
virtual

Reimplemented from TrackingRecHit.

Definition at line 4 of file GSSiTrackerRecHit2DLocalPos.cc.

References err_, KfComponentsHolder::errors(), KfComponentsHolder::measuredErrors(), KfComponentsHolder::measuredParams(), KfComponentsHolder::params(), pos_, trackerHitRTTI::proj, KfComponentsHolder::projection(), KfComponentsHolder::tsosLocalErrors(), KfComponentsHolder::tsosLocalParameters(), LocalError::xx(), LocalError::xy(), and LocalError::yy().

5 {
6  //std::cout << "Call to KfComponentsHolder::genericFill should be optimized here " << std::endl;
7  AlgebraicVector2 & pars = holder.params<2>();
8  pars[0] = pos_.x();
9  pars[1] = pos_.y();
10 
11  AlgebraicSymMatrix22 & errs = holder.errors<2>();
12  errs(0,0) = err_.xx();
13  errs(0,1) = err_.xy();
14  errs(1,1) = err_.yy();
15 
16 
17  AlgebraicMatrix25 & proj = holder.projection<2>();
18  proj(0,3) = 1;
19  proj(1,4) = 1;
20 
21  holder.measuredParams<2>() = AlgebraicVector2( & holder.tsosLocalParameters().At(3), 2 );
22  holder.measuredErrors<2>() = holder.tsosLocalErrors().Sub<AlgebraicSymMatrix22>( 3, 3 );
23 
24  //std::cout << "======== MYSELF ==========" << std::endl;
25  //holder.dump<2>();
26  //std::cout << "======== GENERIC ==========" << std::endl;
27  //holder.genericFill(*this);
28  //holder.dump<2>();
29 }
float xx() const
Definition: LocalError.h:24
AlgebraicROOTObject< D, D >::SymMatrix & measuredErrors()
ROOT::Math::SMatrix< double, 2, 2, ROOT::Math::MatRepSym< double, 2 > > AlgebraicSymMatrix22
float xy() const
Definition: LocalError.h:25
float yy() const
Definition: LocalError.h:26
AlgebraicROOTObject< D >::Vector & params()
const AlgebraicVector5 & tsosLocalParameters() const
AlgebraicROOTObject< D >::Vector & measuredParams()
ROOT::Math::SMatrix< double, 2, 5, ROOT::Math::MatRepStd< double, 2, 5 > > AlgebraicMatrix25
AlgebraicROOTObject< D, D >::SymMatrix & errors()
AlgebraicROOTObject< D, 5 >::Matrix & projection()
const AlgebraicSymMatrix55 & tsosLocalErrors() const
ROOT::Math::SVector< double, 2 > AlgebraicVector2
virtual LocalPoint GSSiTrackerRecHit2DLocalPos::localPosition ( ) const
inlinevirtual
virtual LocalError GSSiTrackerRecHit2DLocalPos::localPositionError ( ) const
inlinevirtual
virtual bool GSSiTrackerRecHit2DLocalPos::sharesInput ( const TrackingRecHit other,
SharedInputType  what 
) const
inlinevirtual

Returns true if the two TrackingRecHits are using the same input information (like Digis, Clusters, etc), false otherwise. The second argument specifies how much sharing is needed in order to return true: the value "all" means that all inputs of the two hits must be identical; the value "some" means that at least one of the inputs is in common.

Reimplemented from TrackingRecHit.

Reimplemented in SiTrackerGSMatchedRecHit2D, and SiTrackerGSRecHit2D.

Definition at line 26 of file GSSiTrackerRecHit2DLocalPos.h.

26 {return false;}

Member Data Documentation

LocalError GSSiTrackerRecHit2DLocalPos::err_
private

Definition at line 30 of file GSSiTrackerRecHit2DLocalPos.h.

Referenced by getKfComponents(), and localPositionError().

LocalPoint GSSiTrackerRecHit2DLocalPos::pos_
private

Definition at line 29 of file GSSiTrackerRecHit2DLocalPos.h.

Referenced by getKfComponents(), and localPosition().