1#include "MdcGeom/MdcLayer.h"
2#include "MdcGeom/MdcDetector.h"
10 : _mdcDet( theDet ), _exist( 1 ), _layer( lay ), _nwires( nwir ), _wires( wires ) {
11 if ( _nwires == 0 ) _exist = 0;
13 for (
int wire = 0; wire < _nwires; wire++ )
20 _rend = wires[0]->
rEnd();
21 _rmid = wires[0]->
rMid();
22 _stdip = _rend - _rmid;
24 _zend = wires[0]->
zEndDC();
25 _stereo = wires[0]->
stereo();
27 _delphi = wires[0]->
dPhiz();
29 if ( ( _layer >= 0 && _layer <= 7 ) || ( _layer >= 20 && _layer <= 35 ) )
30 { _view = (int)( _stereo / ( fabs( _stereo ) ) ); }
32 _phiOffset = wires[0]->
phiE();
36 o << setw( 3 ) <<
layNum() << setw( 3 ) <<
view() << setw( 4 ) <<
nWires() << setw( 3 )
38 << setw( 10 ) <<
rMid() << setw( 10 ) <<
rEnd() << setw( 10 ) <<
rIn() << setw( 10 )
40 << setw( 10 ) <<
sag() << setw( 10 ) <<
dPhi() << setw( 10 ) <<
phiOffset() << setw( 10 )
42 << setw( 10 ) <<
phiWireDC( 0, 0. ) << setw( 10 ) <<
phiWire( 0 ) << setw( 10 )
51 std::cout <<
"phiWireDC: wrong cell # " << cell <<
"\n"
52 <<
" number of cells in this layer is " <<
nWires() << std::endl;
62 std::cout <<
"phiWire: wrong cell # " << cell <<
"\n"
63 <<
" number of cells in this layer is " <<
nWires() << std::endl;
73 std::cout <<
"xWire: wrong cell # " << cell <<
"\n"
74 <<
" number of cells in this layer is " <<
nWires() << std::endl;
84 std::cout <<
"YWire: wrong cell # " << cell <<
"\n"
85 <<
" number of cells in this layer is " <<
nWires() << std::endl;
94 std::cout <<
"Error In makeHitTrajInGlobalCoords: wrong cell # " << wire <<
"\n"
95 <<
" number of cells in this layer is " <<
nWires() << std::endl;
const Trajectory * makeHitTrajInGlobalCoords(int wire, double z=0) const
double yWire(int cell) const
MdcLayer(int lay, int nwir, MdcSWire **wires, const MdcDetector &theDet)
double phiWire(int cell) const
MdcSWire * getWire(int wire) const
double phiOffset(void) const
double phiWireDC(int cell, double z) const
double zLength(void) const
double phiEPOffset(void) const
double radiusDC(double z) const
double stereo(void) const
double cellWidth(void) const
void print(std::ostream &o) const
double dPhizDC(double z) const
int superLayer(void) const
double xWire(int cell) const
double phiDC(double z) const
double zEndDC(void) const
const MdcSagTraj * getTraj(void) const
double stereo(void) const
void setLayerPtr(const MdcLayer *lay)