Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

MdcSWire Class Reference

#include <MdcSWire.h>

List of all members.

Public Member Functions

int cell (void) const
int cell (void) const
double dPhiz (void) const
double dPhiz (void) const
double dPhizDC (double z) const
double dPhizDC (double z) const
const HepPoint3DgetEastPoint (void) const
const HepPoint3DgetEastPoint (void) const
double getSag (void) const
double getSag (void) const
const MdcSagTrajgetTraj (void) const
const MdcSagTrajgetTraj (void) const
const HepPoint3DgetWestPoint (void) const
const HepPoint3DgetWestPoint (void) const
int Id (void) const
int Id (void) const
const MdcLayerlayer (void) const
const MdcLayerlayer (void) const
 MdcSWire (HepPoint3D &eastP, HepPoint3D &westP, double sag=0, int id=0, int cell=0)
 MdcSWire (HepPoint3D &eastP, HepPoint3D &westP, double sag=0, int id=0, int cell=0)
double phi (void) const
double phi (void) const
double phiDC (double z) const
double phiDC (double z) const
double phiE (void) const
double phiE (void) const
void print (std::ostream &o) const
void print (std::ostream &o) const
void printInfo (std::ostream &o) const
void printInfo (std::ostream &o) const
double radiusDC (double z) const
double radiusDC (double z) const
double rEnd (void) const
double rEnd (void) const
double rMid (void) const
double rMid (void) const
double stDip (void) const
double stDip (void) const
double stereo (void) const
double stereo (void) const
double xEast (void) const
double xEast (void) const
double xMid (void) const
double xMid (void) const
double xWest (void) const
double xWest (void) const
double xWireDC (double z) const
double xWireDC (double z) const
Hep3Vector yAxis (double z=0.)
Hep3Vector yAxis (double z=0.)
double yEast (void) const
double yEast (void) const
double yMid (void) const
double yMid (void) const
double yWest (void) const
double yWest (void) const
double yWireDC (double z) const
double yWireDC (double z) const
const Hep3Vector & zAxis (void) const
const Hep3Vector & zAxis (void) const
double zEast (void) const
double zEast (void) const
double zEndDC (void) const
double zEndDC (void) const
double zLength (void) const
double zLength (void) const
double zWest (void) const
double zWest (void) const
 ~MdcSWire ()
 ~MdcSWire ()

Protected Member Functions

void setLayerPtr (const MdcLayer *lay)
void setLayerPtr (const MdcLayer *lay)

Private Attributes

int _cell
HepPoint3D _east
int _id
const MdcLayer_lay
const MdcLayer_lay
double _phiend
double _rend
double _sag
MdcSagTraj _traj
double _twist
HepPoint3D _west

Friends

class MdcLayer


Constructor & Destructor Documentation

MdcSWire::MdcSWire HepPoint3D eastP,
HepPoint3D westP,
double  sag = 0,
int  id = 0,
int  cell = 0
 

00010 : _traj(sag,eastP,westP), _east(eastP), _west(westP), _sag(sag), _id(id), _cell(cell)
00011 {
00012   _rend = sqrt(xEast()*xEast() + yEast()*yEast());
00013   _phiend    = _east.phi();
00014   BesAngle westPphi(westP.phi());
00015   BesAngle eastPphi(eastP.phi());
00016   _twist = ( westPphi - eastPphi)* 0.5;
00017 }

MdcSWire::~MdcSWire  )  [inline]
 

00026 {};

MdcSWire::MdcSWire HepPoint3D eastP,
HepPoint3D westP,
double  sag = 0,
int  id = 0,
int  cell = 0
 

MdcSWire::~MdcSWire  )  [inline]
 

00026 {};


Member Function Documentation

int MdcSWire::cell void   )  const [inline]
 

00046 { return _cell; } //local cell number in layer

int MdcSWire::cell void   )  const [inline]
 

00046 { return _cell; } //local cell number in layer

double MdcSWire::dPhiz void   )  const [inline]
 

00048 { return _twist; }

double MdcSWire::dPhiz void   )  const [inline]
 

00048 { return _twist; }

double MdcSWire::dPhizDC double  z  )  const [inline]
 

00062 { return atan2( z*stereo(),rMid() ); }

double MdcSWire::dPhizDC double  z  )  const [inline]
 

00062 { return atan2( z*stereo(),rMid() ); }

const HepPoint3D* MdcSWire::getEastPoint void   )  const [inline]
 

00032 { return &_east; }

const HepPoint3D* MdcSWire::getEastPoint void   )  const [inline]
 

00032 { return &_east; }

double MdcSWire::getSag void   )  const [inline]
 

00031 { return _sag; }

double MdcSWire::getSag void   )  const [inline]
 

00031 { return _sag; }

const MdcSagTraj* MdcSWire::getTraj void   )  const [inline]
 

00034 { return &_traj; }    

const MdcSagTraj* MdcSWire::getTraj void   )  const [inline]
 

00034 { return &_traj; }    

const HepPoint3D* MdcSWire::getWestPoint void   )  const [inline]
 

00033 { return &_west; }

const HepPoint3D* MdcSWire::getWestPoint void   )  const [inline]
 

00033 { return &_west; }

int MdcSWire::Id void   )  const [inline]
 

00045 { return _id; }//wire number in Mdc

int MdcSWire::Id void   )  const [inline]
 

00045 { return _id; }//wire number in Mdc

const MdcLayer* MdcSWire::layer void   )  const [inline]
 

00044 { return _lay; }

const MdcLayer* MdcSWire::layer void   )  const [inline]
 

00044 { return _lay; }

double MdcSWire::phi void   )  const [inline]
 

00052 { return _phiend + _twist; }

double MdcSWire::phi void   )  const [inline]
 

00052 { return _phiend + _twist; }

double MdcSWire::phiDC double  z  )  const [inline]
 

00059 { return phi() + dPhizDC(z); }

double MdcSWire::phiDC double  z  )  const [inline]
 

00059 { return phi() + dPhizDC(z); }

double MdcSWire::phiE void   )  const [inline]
 

00051 { return _phiend; }

double MdcSWire::phiE void   )  const [inline]
 

00051 { return _phiend; }

void MdcSWire::print std::ostream o  )  const
 

void MdcSWire::print std::ostream o  )  const
 

00027 {
00028   o<< setw(6)<<Id()<<
00029     setw(10)<<xEast()<<
00030     setw(10)<<yEast()<<
00031     setw(10)<<zEast()<<
00032     setw(10)<<xWest()<<
00033     setw(10)<<yWest()<<
00034     setw(10)<<zWest()<<
00035     setw(10)<<xMid()<<
00036     setw(10)<<yMid()<<
00037     setw(10)<<rEnd()<<
00038     setw(10)<<getSag()<<
00039     setw(10)<<cell()<<
00040     setw(10)<<zLength()<<
00041     setw(10)<<dPhiz()<<
00042     setw(10)<<zEndDC()<<
00043     setw(10)<<rMid()<<
00044     setw(10)<<phiE()<<
00045     setw(10)<<phi()<<
00046     setw(10)<<stereo()<<
00047     setw(10)<<stDip()<<
00048     setw(10)<<radiusDC(0.)<<
00049     setw(10)<<phiDC(0.)<<
00050     setw(10)<<xWireDC(0.)<<
00051     setw(10)<<yWireDC(0.)<<
00052     setw(10)<<dPhizDC(0.)<<
00053     setw(10)<<getTraj()->sag()<<//
00054     setw(10)<<getTraj()->position(0.)<<
00055     setw(10)<<getTraj()->direction(0.)<<
00056     setw(10)<<getTraj()->curvature()<<//
00057     setw(10)<<getTraj()->rawDirection()<<
00058     std::endl;
00059 }

void MdcSWire::printInfo std::ostream o  )  const
 

void MdcSWire::printInfo std::ostream o  )  const
 

00062 {
00063   o << "east " << getEastPoint()->x() << " " << getEastPoint()->y() << " "
00064     << getEastPoint()->z() <<"\n"
00065     << "west " << getWestPoint()->x() <<" " << getWestPoint()->y()
00066     << " " << getWestPoint()->z() << "\n"
00067     << "sagitta: " << getSag()
00068     << " z length: " << zLength()
00069     << " twist: " << dPhiz()
00070     << " stereo: " << stereo() <<"\n"
00071     << "x-y mid: " << xMid() << " - " << yMid() << std::endl;
00072 
00073 }

double MdcSWire::radiusDC double  z  )  const [inline]
 

00057                                     { return rEnd() - stDip() * (1.-  
00058         z*z/(zEndDC()*zEndDC())); } 

double MdcSWire::radiusDC double  z  )  const [inline]
 

00057                                     { return rEnd() - stDip() * (1.-  
00058         z*z/(zEndDC()*zEndDC())); } 

double MdcSWire::rEnd void   )  const [inline]
 

00043 { return _rend; }

double MdcSWire::rEnd void   )  const [inline]
 

00043 { return _rend; }

double MdcSWire::rMid void   )  const [inline]
 

00050 { return rEnd() * cos( dPhiz() ); }

double MdcSWire::rMid void   )  const [inline]
 

00050 { return rEnd() * cos( dPhiz() ); }

void MdcSWire::setLayerPtr const MdcLayer lay  )  [inline, protected]
 

00073 { _lay =lay; }

void MdcSWire::setLayerPtr const MdcLayer lay  )  [inline, protected]
 

00073 { _lay =lay; }

double MdcSWire::stDip void   )  const [inline]
 

00055 { return rEnd() - rMid(); }

double MdcSWire::stDip void   )  const [inline]
 

00055 { return rEnd() - rMid(); }

double MdcSWire::stereo void   )  const [inline]
 

00054     { return 2.*rEnd()*sin(dPhiz())/zLength(); }

double MdcSWire::stereo void   )  const [inline]
 

00054     { return 2.*rEnd()*sin(dPhiz())/zLength(); }

double MdcSWire::xEast void   )  const [inline]
 

00035 { return _east.x(); }

double MdcSWire::xEast void   )  const [inline]
 

00035 { return _east.x(); }

double MdcSWire::xMid void   )  const [inline]
 

00041 { return rMid() * cos(phi()); }

double MdcSWire::xMid void   )  const [inline]
 

00041 { return rMid() * cos(phi()); }

double MdcSWire::xWest void   )  const [inline]
 

00038 { return _west.x(); } 

double MdcSWire::xWest void   )  const [inline]
 

00038 { return _west.x(); } 

double MdcSWire::xWireDC double  z  )  const [inline]
 

00060 { return radiusDC(z)*cos(phiDC(z)); }

double MdcSWire::xWireDC double  z  )  const [inline]
 

00060 { return radiusDC(z)*cos(phiDC(z)); }

Hep3Vector MdcSWire::yAxis double  z = 0.  ) 
 

Hep3Vector MdcSWire::yAxis double  z = 0.  ) 
 

00021 {
00022   Hep3Vector vec( xWireDC(z), yWireDC(z), z);
00023   return vec.unit();
00024 }

double MdcSWire::yEast void   )  const [inline]
 

00036 { return _east.y(); }

double MdcSWire::yEast void   )  const [inline]
 

00036 { return _east.y(); }

double MdcSWire::yMid void   )  const [inline]
 

00042 { return rMid() * sin(phi()); }

double MdcSWire::yMid void   )  const [inline]
 

00042 { return rMid() * sin(phi()); }

double MdcSWire::yWest void   )  const [inline]
 

00039 { return _west.y(); } 

double MdcSWire::yWest void   )  const [inline]
 

00039 { return _west.y(); } 

double MdcSWire::yWireDC double  z  )  const [inline]
 

00061 { return radiusDC(z)*sin(phiDC(z)); }

double MdcSWire::yWireDC double  z  )  const [inline]
 

00061 { return radiusDC(z)*sin(phiDC(z)); }

const Hep3Vector& MdcSWire::zAxis void   )  const [inline]
 

00067 { return _traj.rawDirection(); }

const Hep3Vector& MdcSWire::zAxis void   )  const [inline]
 

00067 { return _traj.rawDirection(); }

double MdcSWire::zEast void   )  const [inline]
 

00037 { return _east.z(); }

double MdcSWire::zEast void   )  const [inline]
 

00037 { return _east.z(); }

double MdcSWire::zEndDC void   )  const [inline]
 

00049 { return 0.5*zLength(); }

double MdcSWire::zEndDC void   )  const [inline]
 

00049 { return 0.5*zLength(); }

double MdcSWire::zLength void   )  const [inline]
 

00047 { return getEastPoint()->z()- getWestPoint()->z(); }

double MdcSWire::zLength void   )  const [inline]
 

00047 { return getEastPoint()->z()- getWestPoint()->z(); }

double MdcSWire::zWest void   )  const [inline]
 

00040 { return _west.z(); }    

double MdcSWire::zWest void   )  const [inline]
 

00040 { return _west.z(); }    


Friends And Related Function Documentation

MdcLayer [friend]
 


Member Data Documentation

int MdcSWire::_cell [private]
 

HepPoint3D MdcSWire::_east [private]
 

int MdcSWire::_id [private]
 

const MdcLayer* MdcSWire::_lay [private]
 

const MdcLayer* MdcSWire::_lay [private]
 

double MdcSWire::_phiend [private]
 

double MdcSWire::_rend [private]
 

double MdcSWire::_sag [private]
 

MdcSagTraj MdcSWire::_traj [private]
 

double MdcSWire::_twist [private]
 

HepPoint3D MdcSWire::_west [private]
 


The documentation for this class was generated from the following files:
Generated on Wed Feb 2 16:28:53 2011 for BOSS6.5.5 by  doxygen 1.3.9.1