CMS 3D CMS Logo

Public Member Functions | Private Types | Private Attributes

MultiTrajectoryMeasurement Class Reference

#include <MultiTrajectoryMeasurement.h>

List of all members.

Public Member Functions

std::map< int, float > & chi2s ()
std::map< int, TSOS > & filteredStates ()
std::vector
< TransientTrackingRecHit::ConstRecHitPointer
hits () const
const DetLayerlayer () const
std::map< int, const
TransientTrackingRecHit * > & 
multiHits ()
 MultiTrajectoryMeasurement (TransientTrackingRecHit::ConstRecHitPointer hit, const std::map< int, TSOS > &predictions, const std::map< int, TSOS > &updates, const DetLayer *)
 MultiTrajectoryMeasurement ()
 MultiTrajectoryMeasurement (std::vector< TransientTrackingRecHit::ConstRecHitPointer > &hits, const std::map< int, const TransientTrackingRecHit * > &multihits, const std::map< int, TSOS > &predictions, const std::map< int, TSOS > &updates, const std::map< int, float > &estimates, const DetLayer *)
std::map< int, TSOS > & predictedStates ()
const BoundSurfacesurface () const

Private Types

typedef TrajectoryMeasurement TM
typedef TrajectoryStateOnSurface TSOS

Private Attributes

std::map< int, float > theChi2s
std::map< int, TSOStheFilteredStates
const DetLayertheLayer
std::map< int, const
TransientTrackingRecHit * > 
theMultiHits
std::map< int, TSOSthePredictedStates
std::vector
< TransientTrackingRecHit::ConstRecHitPointer
theRecHits

Detailed Description

Definition at line 16 of file MultiTrajectoryMeasurement.h.


Member Typedef Documentation

Definition at line 20 of file MultiTrajectoryMeasurement.h.

Definition at line 21 of file MultiTrajectoryMeasurement.h.


Constructor & Destructor Documentation

MultiTrajectoryMeasurement::MultiTrajectoryMeasurement ( )

Definition at line 8 of file MultiTrajectoryMeasurement.cc.

{}
MultiTrajectoryMeasurement::MultiTrajectoryMeasurement ( TransientTrackingRecHit::ConstRecHitPointer  hit,
const std::map< int, TSOS > &  predictions,
const std::map< int, TSOS > &  updates,
const DetLayer lay 
)

Definition at line 10 of file MultiTrajectoryMeasurement.cc.

                                                                            :
  theRecHits(std::vector<TransientTrackingRecHit::ConstRecHitPointer>(1, hit)),
  theMultiHits(std::map<int,const TransientTrackingRecHit*>()),
  theFilteredStates(updates),
  thePredictedStates(predictions),
  theChi2s(std::map<int,float>()),
  theLayer(lay) {}
MultiTrajectoryMeasurement::MultiTrajectoryMeasurement ( std::vector< TransientTrackingRecHit::ConstRecHitPointer > &  hits,
const std::map< int, const TransientTrackingRecHit * > &  multihits,
const std::map< int, TSOS > &  predictions,
const std::map< int, TSOS > &  updates,
const std::map< int, float > &  estimates,
const DetLayer lay 
)

Member Function Documentation

std::map< int, float > & MultiTrajectoryMeasurement::chi2s ( )

Definition at line 55 of file MultiTrajectoryMeasurement.cc.

References theChi2s.

                                                      {

return theChi2s;
}
std::map< int, TrajectoryStateOnSurface > & MultiTrajectoryMeasurement::filteredStates ( )
std::vector< TransientTrackingRecHit::ConstRecHitPointer > MultiTrajectoryMeasurement::hits ( ) const

Definition at line 35 of file MultiTrajectoryMeasurement.cc.

References theRecHits.

Referenced by surface().

                                                                                            {
  
  return theRecHits;
}
const DetLayer * MultiTrajectoryMeasurement::layer ( ) const

Definition at line 69 of file MultiTrajectoryMeasurement.cc.

References gather_cfg::cout, and theLayer.

Referenced by surface().

                                                        {
  
  if(theLayer == 0) std::cout << "MultiTrajectoryMeasurement::layer() is 0!" << std::endl;
  return theLayer;
}
std::map< int, const TransientTrackingRecHit * > & MultiTrajectoryMeasurement::multiHits ( )

Definition at line 40 of file MultiTrajectoryMeasurement.cc.

References theMultiHits.

                                                                                  {

  return theMultiHits;
}
std::map< int, TrajectoryStateOnSurface > & MultiTrajectoryMeasurement::predictedStates ( )

Definition at line 50 of file MultiTrajectoryMeasurement.cc.

References thePredictedStates.

                                                                                   {

return thePredictedStates;
}
const BoundSurface & MultiTrajectoryMeasurement::surface ( ) const

Definition at line 60 of file MultiTrajectoryMeasurement.cc.

References gather_cfg::cout, relativeConstraints::empty, hits(), layer(), and GeometricSearchDet::surface().

                                                              {
  if(hits().empty()) {
    std::cout << "MultiTrajectoryMeasurement::surface() no hits" << std::endl;
    std::cout << "Program segmentation faults now. Have a nice day." << std::endl; 
  }
  //return hits().front()->det().surface();
  return layer()->surface();
}

Member Data Documentation

std::map<int, float> MultiTrajectoryMeasurement::theChi2s [private]

Definition at line 53 of file MultiTrajectoryMeasurement.h.

Referenced by chi2s().

Definition at line 51 of file MultiTrajectoryMeasurement.h.

Referenced by filteredStates().

Definition at line 54 of file MultiTrajectoryMeasurement.h.

Referenced by layer().

Definition at line 50 of file MultiTrajectoryMeasurement.h.

Referenced by multiHits().

Definition at line 52 of file MultiTrajectoryMeasurement.h.

Referenced by predictedStates().

Definition at line 49 of file MultiTrajectoryMeasurement.h.

Referenced by hits().