Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

TrackITProjector Class Reference

#include <TrackProjectors/TrackITProjector.h>

Inheritance diagram for TrackITProjector:

TrackProjector ITrackProjector List of all members.

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.

Detailed Description

Author:
Jose Hernando

Eduardo Rodrigues

Date:
2005-04-08

Definition at line 19 of file TrackITProjector.h.


Constructor & Destructor Documentation

TrackITProjector::TrackITProjector const std::string &  type,
const std::string &  name,
const IInterface *  parent
 

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 }

TrackITProjector::~TrackITProjector  )  [virtual]
 

Destructor.

Definition at line 77 of file TrackITProjector.cpp.

00077 {}; 


Member Function Documentation

StatusCode TrackITProjector::initialize  )  [virtual]
 

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 }

StatusCode TrackITProjector::project const State state,
Measurement meas
[virtual]
 

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 }


Member Data Documentation

DeSTDetector* TrackITProjector::m_det [private]
 

Definition at line 39 of file TrackITProjector.h.

Referenced by initialize(), and project().

std::string TrackITProjector::m_itTrackerPath [private]
 

Name of the IT XML geom path.

Definition at line 41 of file TrackITProjector.h.

Referenced by initialize(), and TrackITProjector().


The documentation for this class was generated from the following files:
Generated on Wed May 4 11:52:41 2005 for New Track Event Model by doxygen 1.4.1