CMS 3D CMS Logo

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

TSiTrackerMultiRecHit Class Reference

#include <TSiTrackerMultiRecHit.h>

Inheritance diagram for TSiTrackerMultiRecHit:
TransientTrackingRecHit TrackingRecHit ReferenceCountedPoolAllocated BlockWipedPoolAllocated

List of all members.

Public Member Functions

virtual bool canImproveWithTrack () const
virtual RecHitPointer clone (const TrajectoryStateOnSurface &ts) const
virtual const GeomDetUnitdetUnit () const
virtual int dimension () const
virtual DetId geographicalId () const
float getAnnealingFactor () const
virtual void getKfComponents (KfComponentsHolder &holder) const
virtual const TrackingRecHithit () const
virtual bool isValid () const
virtual LocalPoint localPosition () const
virtual LocalError localPositionError () const
virtual AlgebraicVector parameters () const
virtual AlgebraicSymMatrix parametersError () const
virtual AlgebraicMatrix projectionMatrix () const
virtual std::vector< const
TrackingRecHit * > 
recHits () const
 Access to component RecHits (if any)
virtual std::vector
< TrackingRecHit * > 
recHits ()
 Non-const access to component RecHits (if any)
void setAnnealingFactor (float annealing)
const SiTrackerMultiRecHitspecificHit () const
virtual ConstRecHitContainer transientHits () const
 Composite interface: returns the component hits, if any.
float & weight (unsigned int i)
float weight (unsigned int i) const
std::vector< float > const & weights () const
std::vector< float > & weights ()
virtual ~TSiTrackerMultiRecHit ()

Static Public Member Functions

static RecHitPointer build (const GeomDet *geom, const SiTrackerMultiRecHit *rh, const ConstRecHitContainer &components, float annealing=1.)

Private Member Functions

virtual TSiTrackerMultiRecHitclone () const
 TSiTrackerMultiRecHit (const GeomDet *geom, const SiTrackerMultiRecHit *rh, const ConstRecHitContainer &components, float annealing)

Private Attributes

float annealing_
ConstRecHitContainer theComponents
SiTrackerMultiRecHit theHitData

Detailed Description

Definition at line 13 of file TSiTrackerMultiRecHit.h.


Constructor & Destructor Documentation

virtual TSiTrackerMultiRecHit::~TSiTrackerMultiRecHit ( ) [inline, virtual]

Definition at line 16 of file TSiTrackerMultiRecHit.h.

{}
TSiTrackerMultiRecHit::TSiTrackerMultiRecHit ( const GeomDet geom,
const SiTrackerMultiRecHit rh,
const ConstRecHitContainer components,
float  annealing 
) [inline, private]

Definition at line 83 of file TSiTrackerMultiRecHit.h.

Referenced by build(), and clone().


Member Function Documentation

static RecHitPointer TSiTrackerMultiRecHit::build ( const GeomDet geom,
const SiTrackerMultiRecHit rh,
const ConstRecHitContainer components,
float  annealing = 1. 
) [inline, static]

Definition at line 70 of file TSiTrackerMultiRecHit.h.

References TSiTrackerMultiRecHit().

                                                                                         {
    return RecHitPointer(new TSiTrackerMultiRecHit( geom, rh, components, annealing));
  }
virtual bool TSiTrackerMultiRecHit::canImproveWithTrack ( ) const [inline, virtual]

Returns true if the clone( const TrajectoryStateOnSurface&) method returns an improved hit, false if it returns an identical copy. In order to avoid redundent copies one should call canImproveWithTrack() before calling clone( const TrajectoryStateOnSurface&).

Reimplemented from TransientTrackingRecHit.

Definition at line 64 of file TSiTrackerMultiRecHit.h.

{return true;}
TransientTrackingRecHit::RecHitPointer TSiTrackerMultiRecHit::clone ( const TrajectoryStateOnSurface ts) const [virtual]

Returns a copy of the hit with parameters and errors computed with respect to the TrajectoryStateOnSurface given as argument. For concrete hits not capable to improve their parameters and errors this method returns an exact copy, and is equivalent to clone() without arguments.

Reimplemented from TransientTrackingRecHit.

Definition at line 15 of file TSiTrackerMultiRecHit.cc.

References clone().

                                                                                                         {
/*
        std::vector<TransientTrackingRecHit::RecHitPointer> updatedcomponents = theComponents;
        SiTrackerMultiRecHit better = theUpdator->update(ts,&theHitData, updatedcomponents);
        RecHitPointer result = TSiTrackerMultiRecHit::build( det(), &better, theUpdator, updatedcomponents );
        return result;
*/
        return this->clone();
}
virtual TSiTrackerMultiRecHit* TSiTrackerMultiRecHit::clone ( void  ) const [inline, private, virtual]

Implements TransientTrackingRecHit.

Definition at line 87 of file TSiTrackerMultiRecHit.h.

References TSiTrackerMultiRecHit().

Referenced by clone().

                                               {
    return new TSiTrackerMultiRecHit(*this);
  }
const GeomDetUnit * TSiTrackerMultiRecHit::detUnit ( ) const [virtual]

CAUTION: the GeomDetUnit* is zero for composite hits (matched hits in the tracker, segments in the muon). Always check this pointer before using it!

Reimplemented from TransientTrackingRecHit.

Definition at line 11 of file TSiTrackerMultiRecHit.cc.

References TransientTrackingRecHit::det().

                                                       {
  return dynamic_cast<const GeomDetUnit*>(det());
}
virtual int TSiTrackerMultiRecHit::dimension ( ) const [inline, virtual]

Implements TrackingRecHit.

Definition at line 29 of file TSiTrackerMultiRecHit.h.

References SiTrackerMultiRecHit::dimension(), and theHitData.

{return theHitData.dimension();}
virtual DetId TSiTrackerMultiRecHit::geographicalId ( ) const [inline, virtual]

Reimplemented from TrackingRecHit.

Definition at line 27 of file TSiTrackerMultiRecHit.h.

References TrackingRecHit::geographicalId(), and theHitData.

float TSiTrackerMultiRecHit::getAnnealingFactor ( ) const [inline]

Definition at line 50 of file TSiTrackerMultiRecHit.h.

References annealing_.

Referenced by MRHChi2MeasurementEstimator::estimate().

{return annealing_;} 
virtual void TSiTrackerMultiRecHit::getKfComponents ( KfComponentsHolder holder) const [inline, virtual]
virtual const TrackingRecHit* TSiTrackerMultiRecHit::hit ( void  ) const [inline, virtual]

Implements TransientTrackingRecHit.

Definition at line 34 of file TSiTrackerMultiRecHit.h.

References theHitData.

{return &theHitData;};
virtual bool TSiTrackerMultiRecHit::isValid ( void  ) const [inline, virtual]

Reimplemented from TrackingRecHit.

Definition at line 37 of file TSiTrackerMultiRecHit.h.

References TrackingRecHit::isValid(), and theHitData.

{return theHitData.isValid();}
virtual LocalPoint TSiTrackerMultiRecHit::localPosition ( ) const [inline, virtual]

Implements TrackingRecHit.

Definition at line 31 of file TSiTrackerMultiRecHit.h.

References BaseTrackerRecHit::localPosition(), and theHitData.

virtual LocalError TSiTrackerMultiRecHit::localPositionError ( ) const [inline, virtual]
virtual AlgebraicVector TSiTrackerMultiRecHit::parameters ( void  ) const [inline, virtual]

Implements TrackingRecHit.

Definition at line 18 of file TSiTrackerMultiRecHit.h.

References BaseTrackerRecHit::parameters(), and theHitData.

{return theHitData.parameters();}
virtual AlgebraicSymMatrix TSiTrackerMultiRecHit::parametersError ( ) const [inline, virtual]
virtual AlgebraicMatrix TSiTrackerMultiRecHit::projectionMatrix ( ) const [inline, virtual]

Implements TrackingRecHit.

Definition at line 28 of file TSiTrackerMultiRecHit.h.

References BaseTrackerRecHit::projectionMatrix(), and theHitData.

virtual std::vector<const TrackingRecHit*> TSiTrackerMultiRecHit::recHits ( ) const [inline, virtual]

Access to component RecHits (if any)

Implements TrackingRecHit.

Definition at line 39 of file TSiTrackerMultiRecHit.h.

References SiTrackerMultiRecHit::recHits(), and theHitData.

Referenced by TrackerDpgAnalysis::insertMeasurement().

                                                           {
    return theHitData.recHits();
  } 
virtual std::vector<TrackingRecHit*> TSiTrackerMultiRecHit::recHits ( ) [inline, virtual]

Non-const access to component RecHits (if any)

Implements TrackingRecHit.

Definition at line 42 of file TSiTrackerMultiRecHit.h.

References SiTrackerMultiRecHit::recHits(), and theHitData.

                                               {
    return theHitData.recHits();
  }     
void TSiTrackerMultiRecHit::setAnnealingFactor ( float  annealing) [inline]

interface needed to set and read back an annealing value that has been applied to the current hit error matrix when using it as a component for a composite rec hit (useful for the DAF)

Definition at line 49 of file TSiTrackerMultiRecHit.h.

References annealing_.

{annealing_ = annealing;} 
const SiTrackerMultiRecHit* TSiTrackerMultiRecHit::specificHit ( ) const [inline]

Definition at line 35 of file TSiTrackerMultiRecHit.h.

References theHitData.

{return &theHitData;}
virtual ConstRecHitContainer TSiTrackerMultiRecHit::transientHits ( ) const [inline, virtual]

Composite interface: returns the component hits, if any.

Reimplemented from TransientTrackingRecHit.

Definition at line 68 of file TSiTrackerMultiRecHit.h.

References theComponents.

{return theComponents;};
float& TSiTrackerMultiRecHit::weight ( unsigned int  i) [inline]

Definition at line 59 of file TSiTrackerMultiRecHit.h.

References theHitData, and SiTrackerMultiRecHit::weight().

{return theHitData.weight(i);}
float TSiTrackerMultiRecHit::weight ( unsigned int  i) const [inline]

Definition at line 58 of file TSiTrackerMultiRecHit.h.

References theHitData, and SiTrackerMultiRecHit::weight().

{return theHitData.weight(i);}
std::vector<float> const& TSiTrackerMultiRecHit::weights ( ) const [inline]

Definition at line 54 of file TSiTrackerMultiRecHit.h.

References theHitData, and SiTrackerMultiRecHit::weights().

{return theHitData.weights();}
std::vector<float>& TSiTrackerMultiRecHit::weights ( ) [inline]

Definition at line 55 of file TSiTrackerMultiRecHit.h.

References theHitData, and SiTrackerMultiRecHit::weights().

{return theHitData.weights();}

Member Data Documentation

Definition at line 81 of file TSiTrackerMultiRecHit.h.

Referenced by getAnnealingFactor(), and setAnnealingFactor().

Definition at line 80 of file TSiTrackerMultiRecHit.h.

Referenced by transientHits().