#include <TrackProjectors/TrackITProjector.h>
Inheritance diagram for TrackITProjector:
Public Member Functions | |
virtual StatusCode | project (const State &state, Measurement &meas) |
virtual StatusCode | initialize () |
initialize | |
TrackITProjector (const std::string &type, const std::string &name, const IInterface *parent) | |
Standard constructor. | |
virtual | ~TrackITProjector () |
Destructor. | |
Private Attributes | |
DeSTDetector * | m_det |
std::string | m_itTrackerPath |
Name of the IT XML geom path. |
Eduardo Rodrigues
Definition at line 19 of file TrackITProjector.h.
|
Standard constructor.
Definition at line 63 of file TrackITProjector.cpp. References m_itTrackerPath. 00066 : TrackProjector ( type, name , parent ) 00067 { 00068 declareInterface<ITrackProjector>(this); 00069 00070 declareProperty( "ITGeometryPath", 00071 m_itTrackerPath = DeSTDetectorLocation::Default ); 00072 }
|
|
Destructor.
Definition at line 77 of file TrackITProjector.cpp. 00077 {};
|
|
initialize
Definition at line 49 of file TrackITProjector.cpp. References m_det, and m_itTrackerPath. 00050 { 00051 StatusCode sc = GaudiTool::initialize(); 00052 if ( sc.isFailure() ) 00053 return Error( "Failed to initialize!", sc ); 00054 00055 m_det = getDet<DeSTDetector>( m_itTrackerPath ); 00056 00057 return StatusCode::SUCCESS; 00058 }
|
|
Project a state onto a measurement. It returns the chi squared of the projection Reimplemented from TrackProjector. Definition at line 23 of file TrackITProjector.cpp. References TrackProjector::computeErrorResidual(), and m_det. 00025 { 00026 ITChannelID ITChan = meas.lhcbID().stID(); 00027 const STDetectionLayer* ITLay = m_det -> layer( ITChan ); 00028 double stereoAngle = ITLay->stereoAngle(); 00029 00030 unsigned int n = state.nParameters(); 00031 m_H = HepVector(n,0); 00032 m_H[0] = cos( stereoAngle ); 00033 m_H[1] = sin( stereoAngle ); 00034 00035 // equivalent to computeResidual(state,meas); 00036 m_residual = meas.measure() 00037 - state.x() * cos( stereoAngle ) 00038 - state.y() * sin( stereoAngle ); 00039 00040 computeErrorResidual( state, meas ); 00041 00042 return StatusCode::SUCCESS; 00043 00044 }
|
|
Definition at line 39 of file TrackITProjector.h. Referenced by initialize(), and project(). |
|
Name of the IT XML geom path.
Definition at line 41 of file TrackITProjector.h. Referenced by initialize(), and TrackITProjector(). |