#include <DTSLRecCluster.h>
Public Member Functions | |
virtual DTSLRecCluster * | clone () const |
The clone method needed by the clone policy. | |
virtual int | dimension () const |
return 2. The dimension of the matrix | |
DTSLRecCluster () | |
DTSLRecCluster (const DTSuperLayerId id, const std::vector< DTRecHit1DPair > &pair) | |
c'tor from hits | |
DTSLRecCluster (const DTSuperLayerId id, const LocalPoint &, const LocalError &, const std::vector< DTRecHit1DPair > &pair) | |
complete constructor | |
virtual LocalPoint | localPosition () const |
Local position. | |
virtual LocalError | localPositionError () const |
Error on the local position. | |
int | nHits () const |
virtual AlgebraicVector | parameters () const |
the vector of parameters (dx/dz,x) | |
virtual AlgebraicSymMatrix | parametersError () const |
Return just "(sigma_x)^2". | |
virtual AlgebraicMatrix | projectionMatrix () const |
virtual std::vector < TrackingRecHit * > | recHits () |
Non-const access to component RecHits (if any) | |
virtual std::vector< const TrackingRecHit * > | recHits () const |
return the hits | |
std::vector< DTRecHit1DPair > | specificRecHits () const |
Access to specific components. | |
DTSuperLayerId | superLayerId () const |
The id of the superlayer on which reside the segment. | |
virtual | ~DTSLRecCluster () |
Private Member Functions | |
AlgebraicVector | param (const LocalPoint &lp) const |
AlgebraicSymMatrix | parError (const LocalError &le) const |
Private Attributes | |
std::vector< DTRecHit1DPair > | thePairs |
LocalPoint | thePos |
LocalError | thePosError |
DTSuperLayerId | theSlid |
Static Private Attributes | |
static const AlgebraicMatrix | theProjectionMatrix = initMatrix() |
DTSLRecCluster::DTSLRecCluster | ( | ) | [inline] |
DTSLRecCluster::DTSLRecCluster | ( | const DTSuperLayerId | id, |
const std::vector< DTRecHit1DPair > & | pair | ||
) |
DTSLRecCluster::DTSLRecCluster | ( | const DTSuperLayerId | id, |
const LocalPoint & | pos, | ||
const LocalError & | err, | ||
const std::vector< DTRecHit1DPair > & | pair | ||
) |
complete constructor
Definition at line 39 of file DTSLRecCluster.cc.
: theSlid(id), thePos(pos), thePosError(err), thePairs(pairs){ }
virtual DTSLRecCluster::~DTSLRecCluster | ( | ) | [inline, virtual] |
Definition at line 48 of file DTSLRecCluster.h.
{}
virtual DTSLRecCluster* DTSLRecCluster::clone | ( | void | ) | const [inline, virtual] |
The clone method needed by the clone policy.
Implements TrackingRecHit.
Definition at line 52 of file DTSLRecCluster.h.
References DTSLRecCluster().
{ return new DTSLRecCluster(*this); }
virtual int DTSLRecCluster::dimension | ( | ) | const [inline, virtual] |
return 2. The dimension of the matrix
Reimplemented from RecHit1D.
Definition at line 75 of file DTSLRecCluster.h.
{ return 2;}
virtual LocalPoint DTSLRecCluster::localPosition | ( | ) | const [inline, virtual] |
Local position.
Implements RecHit1D.
Definition at line 76 of file DTSLRecCluster.h.
References thePos.
Referenced by operator<<(), and parameters().
{ return thePos; }
virtual LocalError DTSLRecCluster::localPositionError | ( | ) | const [inline, virtual] |
Error on the local position.
Implements RecHit1D.
Definition at line 77 of file DTSLRecCluster.h.
References thePosError.
Referenced by operator<<(), and parametersError().
{ return thePosError; }
int DTSLRecCluster::nHits | ( | ) | const [inline] |
Definition at line 87 of file DTSLRecCluster.h.
References thePairs.
Referenced by operator<<().
{ return thePairs.size() ; }
AlgebraicVector DTSLRecCluster::param | ( | const LocalPoint & | lp | ) | const [inline, private] |
Definition at line 100 of file DTSLRecCluster.h.
References query::result, and PV3DBase< T, PVType, FrameType >::x().
Referenced by parameters().
{ AlgebraicVector result(1); result[1]=lp.x(); return result; }
virtual AlgebraicVector DTSLRecCluster::parameters | ( | void | ) | const [inline, virtual] |
the vector of parameters (dx/dz,x)
Reimplemented from RecHit1D.
Definition at line 58 of file DTSLRecCluster.h.
References localPosition(), and param().
{ return param( localPosition()); }
virtual AlgebraicSymMatrix DTSLRecCluster::parametersError | ( | ) | const [inline, virtual] |
Return just "(sigma_x)^2".
Reimplemented from RecHit1D.
Definition at line 63 of file DTSLRecCluster.h.
References localPositionError(), and parError().
{ return parError( localPositionError()); }
AlgebraicSymMatrix DTSLRecCluster::parError | ( | const LocalError & | le | ) | const [inline, private] |
Definition at line 106 of file DTSLRecCluster.h.
References m, and LocalError::xx().
Referenced by parametersError().
{ AlgebraicSymMatrix m(1); m[0][0]=le.xx(); return m; }
virtual AlgebraicMatrix DTSLRecCluster::projectionMatrix | ( | ) | const [inline, virtual] |
return the projection matrix, which must project a parameter vector, whose components are (q/p, dx/dz, dy/dz, x, y), into the vector returned by parameters()
Reimplemented from RecHit1D.
Definition at line 70 of file DTSLRecCluster.h.
References theProjectionMatrix.
{ return theProjectionMatrix; }
vector< const TrackingRecHit * > DTSLRecCluster::recHits | ( | ) | const [virtual] |
return the hits
Implements TrackingRecHit.
Definition at line 49 of file DTSLRecCluster.cc.
References thePairs.
vector< TrackingRecHit * > DTSLRecCluster::recHits | ( | ) | [virtual] |
Non-const access to component RecHits (if any)
Implements TrackingRecHit.
Definition at line 59 of file DTSLRecCluster.cc.
References thePairs.
std::vector<DTRecHit1DPair> DTSLRecCluster::specificRecHits | ( | ) | const [inline] |
Access to specific components.
Definition at line 85 of file DTSLRecCluster.h.
References thePairs.
{ return thePairs; }
DTSuperLayerId DTSLRecCluster::superLayerId | ( | ) | const [inline] |
The id of the superlayer on which reside the segment.
Definition at line 55 of file DTSLRecCluster.h.
References theSlid.
{ return theSlid; }
std::vector<DTRecHit1DPair> DTSLRecCluster::thePairs [private] |
Definition at line 95 of file DTSLRecCluster.h.
Referenced by nHits(), recHits(), and specificRecHits().
LocalPoint DTSLRecCluster::thePos [private] |
Definition at line 92 of file DTSLRecCluster.h.
Referenced by localPosition().
LocalError DTSLRecCluster::thePosError [private] |
Definition at line 93 of file DTSLRecCluster.h.
Referenced by localPositionError().
const AlgebraicMatrix DTSLRecCluster::theProjectionMatrix = initMatrix() [static, private] |
Reimplemented from RecHit1D.
Definition at line 98 of file DTSLRecCluster.h.
Referenced by projectionMatrix().
DTSuperLayerId DTSLRecCluster::theSlid [private] |
Definition at line 90 of file DTSLRecCluster.h.
Referenced by superLayerId().