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 Member Functions | Private Attributes | Static Private Attributes
DTSLRecCluster Class Reference

#include <DTSLRecCluster.h>

Inheritance diagram for DTSLRecCluster:
RecHit1D TrackingRecHit

Public Member Functions

virtual DTSLRecClusterclone () const
 The clone method needed by the clone policy. More...
 
virtual int dimension () const
 return 2. The dimension of the matrix More...
 
 DTSLRecCluster ()
 
 DTSLRecCluster (const DTSuperLayerId id, const std::vector< DTRecHit1DPair > &pair)
 c'tor from hits More...
 
 DTSLRecCluster (const DTSuperLayerId id, const LocalPoint &, const LocalError &, const std::vector< DTRecHit1DPair > &pair)
 complete constructor More...
 
virtual LocalPoint localPosition () const
 Local position. More...
 
virtual LocalError localPositionError () const
 Error on the local position. More...
 
int nHits () const
 
virtual AlgebraicVector parameters () const
 the vector of parameters (dx/dz,x) More...
 
virtual AlgebraicSymMatrix parametersError () const
 Return just "(sigma_x)^2". More...
 
virtual AlgebraicMatrix projectionMatrix () const
 
virtual std::vector< const
TrackingRecHit * > 
recHits () const
 return the hits More...
 
virtual std::vector
< TrackingRecHit * > 
recHits ()
 Non-const access to component RecHits (if any) More...
 
std::vector< DTRecHit1DPairspecificRecHits () const
 Access to specific components. More...
 
DTSuperLayerId superLayerId () const
 The id of the superlayer on which reside the segment. More...
 
virtual ~DTSLRecCluster ()
 
- Public Member Functions inherited from RecHit1D
 RecHit1D (DetId id)
 
 RecHit1D (TrackingRecHit::id_type id=0)
 
virtual ~RecHit1D ()
 Destructor. More...
 
- Public Member Functions inherited from TrackingRecHit
DetId geographicalId () const
 
virtual void getKfComponents (KfComponentsHolder &holder) 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 * > &)
 
virtual bool sharesInput (const TrackingRecHit *other, SharedInputType what) const
 
 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 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
 

Additional Inherited Members

- 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

Description:

detailed description

Author
: Stefano Lacaprara - INFN LNL stefa.nosp@m.no.l.nosp@m.acapr.nosp@m.ara@.nosp@m.pd.in.nosp@m.fn.i.nosp@m.t $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().

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

c'tor from hits

Definition at line 31 of file DTSLRecCluster.cc.

31  :
32 theSlid(id), thePairs(pairs){
33 }
std::vector< DTRecHit1DPair > thePairs
DTSuperLayerId theSlid
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.

38  :
39 theSlid(id), thePos(pos), thePosError(err), thePairs(pairs){
40 }
std::vector< DTRecHit1DPair > thePairs
DTSuperLayerId theSlid
LocalPoint thePos
LocalError thePosError
virtual DTSLRecCluster::~DTSLRecCluster ( )
inlinevirtual

Definition at line 48 of file DTSLRecCluster.h.

48 {}

Member Function Documentation

virtual DTSLRecCluster* DTSLRecCluster::clone ( void  ) const
inlinevirtual

The clone method needed by the clone policy.

Implements TrackingRecHit.

Definition at line 52 of file DTSLRecCluster.h.

References DTSLRecCluster().

52 { return new DTSLRecCluster(*this); }
virtual int DTSLRecCluster::dimension ( ) const
inlinevirtual

return 2. The dimension of the matrix

Reimplemented from RecHit1D.

Definition at line 76 of file DTSLRecCluster.h.

76 { return 2;}
void DTSLRecCluster::initialize ( ) const
inlineprivate

Definition at line 102 of file DTSLRecCluster.h.

References isInitialized, and theProjectionMatrix.

Referenced by projectionMatrix().

102  {
103  isInitialized=true;
105  theProjectionMatrix[0][1]=1;
106  }
static AlgebraicMatrix theProjectionMatrix
CLHEP::HepMatrix AlgebraicMatrix
static bool isInitialized
virtual LocalPoint DTSLRecCluster::localPosition ( ) const
inlinevirtual

Local position.

Implements RecHit1D.

Definition at line 77 of file DTSLRecCluster.h.

References thePos.

Referenced by operator<<(), and parameters().

77 { return thePos; }
LocalPoint thePos
virtual LocalError DTSLRecCluster::localPositionError ( ) const
inlinevirtual

Error on the local position.

Implements RecHit1D.

Definition at line 78 of file DTSLRecCluster.h.

References thePosError.

Referenced by operator<<(), and parametersError().

78 { return thePosError; }
LocalError thePosError
int DTSLRecCluster::nHits ( ) const
inline

Definition at line 88 of file DTSLRecCluster.h.

References thePairs.

Referenced by operator<<().

88 { return thePairs.size() ; }
std::vector< DTRecHit1DPair > thePairs
AlgebraicVector DTSLRecCluster::param ( const LocalPoint lp) const
inlineprivate

Definition at line 108 of file DTSLRecCluster.h.

References query::result, and PV3DBase< T, PVType, FrameType >::x().

Referenced by parameters().

108  {
110  result[1]=lp.x();
111  return result;
112  }
tuple result
Definition: query.py:137
CLHEP::HepVector AlgebraicVector
T x() const
Definition: PV3DBase.h:61
virtual AlgebraicVector DTSLRecCluster::parameters ( void  ) const
inlinevirtual

the vector of parameters (dx/dz,x)

Reimplemented from RecHit1D.

Definition at line 58 of file DTSLRecCluster.h.

References localPosition(), and param().

Referenced by Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::inputTags(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::properties(), and Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::recursePSetProperties().

58  {
59  return param( localPosition());
60  }
virtual LocalPoint localPosition() const
Local position.
AlgebraicVector param(const LocalPoint &lp) const
virtual AlgebraicSymMatrix DTSLRecCluster::parametersError ( ) const
inlinevirtual

Return just "(sigma_x)^2".

Reimplemented from RecHit1D.

Definition at line 63 of file DTSLRecCluster.h.

References localPositionError(), and parError().

63  {
64  return parError( localPositionError());
65  }
AlgebraicSymMatrix parError(const LocalError &le) const
virtual LocalError localPositionError() const
Error on the local position.
AlgebraicSymMatrix DTSLRecCluster::parError ( const LocalError le) const
inlineprivate

Definition at line 114 of file DTSLRecCluster.h.

References m, and LocalError::xx().

Referenced by parametersError().

114  {
116  m[0][0]=le.xx();
117  return m;
118  }
float xx() const
Definition: LocalError.h:24
CLHEP::HepSymMatrix AlgebraicSymMatrix
virtual AlgebraicMatrix DTSLRecCluster::projectionMatrix ( ) const
inlinevirtual

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.

70  {
71  if ( !isInitialized) initialize();
72  return theProjectionMatrix;
73  }
static AlgebraicMatrix theProjectionMatrix
static bool isInitialized
void initialize() const
vector< const TrackingRecHit * > DTSLRecCluster::recHits ( ) const
virtual

return the hits

Implements TrackingRecHit.

Definition at line 45 of file DTSLRecCluster.cc.

References thePairs.

45  {
46  std::vector<const TrackingRecHit*> pointersOfRecHits;
47 
48  for(std::vector<DTRecHit1DPair>::const_iterator rechit = thePairs.begin();
49  rechit != thePairs.end(); rechit++)
50  pointersOfRecHits.push_back( &(*rechit) );
51 
52  return pointersOfRecHits;
53 }
std::vector< DTRecHit1DPair > thePairs
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.

55  {
56  std::vector<TrackingRecHit*> pointersOfRecHits;
57 
58  for(std::vector<DTRecHit1DPair>::iterator rechit = thePairs.begin();
59  rechit != thePairs.end(); rechit++)
60  pointersOfRecHits.push_back( &(*rechit) );
61 
62  return pointersOfRecHits;
63 }
std::vector< DTRecHit1DPair > thePairs
std::vector<DTRecHit1DPair> DTSLRecCluster::specificRecHits ( ) const
inline

Access to specific components.

Definition at line 86 of file DTSLRecCluster.h.

References thePairs.

86 { return thePairs; }
std::vector< DTRecHit1DPair > 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.

55 { return theSlid; }
DTSuperLayerId theSlid

Member Data Documentation

bool DTSLRecCluster::isInitialized
staticprivate

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
staticprivate

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