CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes

DTSLRecCluster Class Reference

#include <DTSLRecCluster.h>

Inheritance diagram for DTSLRecCluster:
RecHit1D TrackingRecHit

List of all members.

Public Member Functions

virtual DTSLRecClusterclone () 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< DTRecHit1DPairspecificRecHits () 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< DTRecHit1DPairthePairs
LocalPoint thePos
LocalError thePosError
DTSuperLayerId theSlid

Static Private Attributes

static bool isInitialized
static AlgebraicMatrix theProjectionMatrix

Detailed Description

Description:

detailed description

Author:
: Stefano Lacaprara - INFN LNL <stefano.lacaprara@pd.infn.it> $date : 17/04/2008 15:17:03 CEST $

Modification:

Definition at line 31 of file DTSLRecCluster.h.


Constructor & Destructor Documentation

DTSLRecCluster::DTSLRecCluster ( ) [inline]

Definition at line 36 of file DTSLRecCluster.h.

Referenced by clone().

{}
DTSLRecCluster::DTSLRecCluster ( const DTSuperLayerId  id,
const std::vector< DTRecHit1DPair > &  pair 
)

c'tor from hits

Definition at line 31 of file DTSLRecCluster.cc.

                                                                                              :
theSlid(id), thePairs(pairs){
}
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.

{}

Member Function Documentation

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().

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.

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.

                                                {
  std::vector<TrackingRecHit*> pointersOfRecHits; 
  
  for(std::vector<DTRecHit1DPair>::iterator rechit = thePairs.begin();
      rechit != thePairs.end(); rechit++)
    pointersOfRecHits.push_back( &(*rechit) );
  
  return pointersOfRecHits;
}
vector< const TrackingRecHit * > DTSLRecCluster::recHits ( ) const [virtual]

return the hits

Implements TrackingRecHit.

Definition at line 45 of file DTSLRecCluster.cc.

References thePairs.

                                                            {
  std::vector<const TrackingRecHit*> pointersOfRecHits; 
  
  for(std::vector<DTRecHit1DPair>::const_iterator rechit = thePairs.begin();
      rechit != thePairs.end(); rechit++)
    pointersOfRecHits.push_back( &(*rechit) );
  
  return pointersOfRecHits;
}
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; }

Member Data Documentation

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().

Definition at line 93 of file DTSLRecCluster.h.

Referenced by localPosition().

Definition at line 94 of file DTSLRecCluster.h.

Referenced by localPositionError().

Reimplemented from RecHit1D.

Definition at line 100 of file DTSLRecCluster.h.

Referenced by initialize(), and projectionMatrix().

Definition at line 91 of file DTSLRecCluster.h.

Referenced by superLayerId().