#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 | |
void | initialize () const |
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 bool | isInitialized |
static AlgebraicMatrix | theProjectionMatrix |
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 35 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 76 of file DTSLRecCluster.h.
{ return 2;}
void DTSLRecCluster::initialize | ( | ) | const [inline, private] |
Reimplemented from RecHit1D.
Definition at line 102 of file DTSLRecCluster.h.
References isInitialized, and theProjectionMatrix.
Referenced by projectionMatrix().
{ isInitialized=true; theProjectionMatrix = AlgebraicMatrix( 2, 5, 0); theProjectionMatrix[0][1]=1; }
virtual LocalPoint DTSLRecCluster::localPosition | ( | ) | const [inline, virtual] |
Local position.
Implements RecHit1D.
Definition at line 77 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 78 of file DTSLRecCluster.h.
References thePosError.
Referenced by operator<<(), and parametersError().
{ return thePosError; }
int DTSLRecCluster::nHits | ( | ) | const [inline] |
Definition at line 88 of file DTSLRecCluster.h.
References thePairs.
Referenced by operator<<().
{ return thePairs.size() ; }
AlgebraicVector DTSLRecCluster::param | ( | const LocalPoint & | lp | ) | const [inline, private] |
Definition at line 108 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 114 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 initialize(), isInitialized, and theProjectionMatrix.
{ if ( !isInitialized) initialize(); return theProjectionMatrix; }
vector< TrackingRecHit * > DTSLRecCluster::recHits | ( | ) | [virtual] |
Non-const access to component RecHits (if any)
Implements TrackingRecHit.
Definition at line 55 of file DTSLRecCluster.cc.
References thePairs.
vector< const TrackingRecHit * > DTSLRecCluster::recHits | ( | ) | const [virtual] |
return the hits
Implements TrackingRecHit.
Definition at line 45 of file DTSLRecCluster.cc.
References thePairs.
std::vector<DTRecHit1DPair> DTSLRecCluster::specificRecHits | ( | ) | const [inline] |
Access to specific components.
Definition at line 86 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; }
bool DTSLRecCluster::isInitialized [static, private] |
Reimplemented from RecHit1D.
Definition at line 99 of file DTSLRecCluster.h.
Referenced by initialize(), and projectionMatrix().
std::vector<DTRecHit1DPair> DTSLRecCluster::thePairs [private] |
Definition at line 96 of file DTSLRecCluster.h.
Referenced by nHits(), recHits(), and specificRecHits().
LocalPoint DTSLRecCluster::thePos [private] |
Definition at line 93 of file DTSLRecCluster.h.
Referenced by localPosition().
LocalError DTSLRecCluster::thePosError [private] |
Definition at line 94 of file DTSLRecCluster.h.
Referenced by localPositionError().
AlgebraicMatrix DTSLRecCluster::theProjectionMatrix [static, private] |
Reimplemented from RecHit1D.
Definition at line 100 of file DTSLRecCluster.h.
Referenced by initialize(), and projectionMatrix().
DTSuperLayerId DTSLRecCluster::theSlid [private] |
Definition at line 91 of file DTSLRecCluster.h.
Referenced by superLayerId().