#include <MdcLayer.h>
Definition at line 15 of file MdcLayer.h.
◆ MdcLayer()
Definition at line 9 of file MdcLayer.cxx.
10 : _mdcDet(theDet), _exist(1), _layer(lay), _nwires(nwir),
11 _wires(wires)
12{
13 if (_nwires == 0) _exist = 0;
14
15 for (int wire=0; wire<_nwires; wire++) {
17
18 }
19
20
21 _rend = wires[0]->
rEnd();
22 _rmid = wires[0]->
rMid();
23 _stdip = _rend - _rmid;
24
25 _zend = wires[0]->
zEndDC();
26 _stereo = wires[0]->
stereo();
27
28 _delphi = wires[0]->
dPhiz();
29
30 if((_layer>=0 && _layer<=7)||(_layer>=20&&_layer<=35)){
31 _view = (int)(_stereo/(fabs(_stereo)));
32 } else {
33 _view = 0;
34 }
35 _phiOffset = wires[0]->
phiE();
36}
MdcSWire * getWire(int wire) const
double zEndDC(void) const
double stereo(void) const
void setLayerPtr(const MdcLayer *lay)
◆ ~MdcLayer()
◆ cellHeight()
double MdcLayer::cellHeight |
( |
void | | ) |
const |
|
inline |
◆ cellWidth() [1/2]
double MdcLayer::cellWidth |
( |
double | z | ) |
const |
|
inline |
Definition at line 66 of file MdcLayer.h.
double cos(const BesAngle a)
double radiusDC(double z) const
double stereo(void) const
◆ cellWidth() [2/2]
double MdcLayer::cellWidth |
( |
void | | ) |
const |
|
inline |
◆ dPhi()
double MdcLayer::dPhi |
( |
void | | ) |
const |
|
inline |
◆ dPhiz()
double MdcLayer::dPhiz |
( |
void | | ) |
const |
|
inline |
◆ dPhizDC()
double MdcLayer::dPhizDC |
( |
double | z | ) |
const |
|
inline |
Definition at line 50 of file MdcLayer.h.
double phiWireDC(int cell, double z) const
Referenced by print().
◆ exist()
bool MdcLayer::exist |
( |
void | | ) |
const |
|
inline |
◆ getWire()
MdcSWire * MdcLayer::getWire |
( |
int | wire | ) |
const |
|
inline |
Definition at line 52 of file MdcLayer.h.
52{ return _wires[wire]; }
Referenced by MdcSegFinder::createSegs(), MdcxFindSegs::initWireGroups(), makeHitTrajInGlobalCoords(), MdcLayer(), phiWire(), phiWireDC(), radiusDC(), sag(), MdcDetector::Wire(), xWire(), yWire(), and zLength().
◆ layNum()
int MdcLayer::layNum |
( |
void | | ) |
const |
|
inline |
◆ makeHitTrajInGlobalCoords()
const Trajectory * MdcLayer::makeHitTrajInGlobalCoords |
( |
int | wire, |
|
|
double | z = 0 ) const |
Definition at line 132 of file MdcLayer.cxx.
133{
134 if ( wire >= 0 && wire <
nWires() ) {
136 } else {
137 std::cout << "Error In makeHitTrajInGlobalCoords: wrong cell # "<< wire << "\n"
138 <<
" number of cells in this layer is " <<
nWires() << std::endl;
140 }
141}
const MdcSagTraj * getTraj(void) const
Referenced by MdcHit::hitTraj().
◆ nWires()
int MdcLayer::nWires |
( |
void | | ) |
const |
|
inline |
Definition at line 30 of file MdcLayer.h.
Referenced by MdcSeg::addHits(), MdcSegFinder::createSegs(), dPhi(), MdcTrkRecon::fillTrackList(), MdcxFindSegs::initWireGroups(), makeHitTrajInGlobalCoords(), phiWire(), phiWireDC(), MdcSegData::poisonHits(), print(), MdcxFindSegs::process(), xWire(), and yWire().
◆ phiEPOffset()
double MdcLayer::phiEPOffset |
( |
void | | ) |
const |
|
inline |
◆ phiOffset()
double MdcLayer::phiOffset |
( |
void | | ) |
const |
|
inline |
◆ phiWire()
double MdcLayer::phiWire |
( |
int | cell | ) |
const |
◆ phiWireDC()
double MdcLayer::phiWireDC |
( |
int | cell, |
|
|
double | z ) const |
Definition at line 74 of file MdcLayer.cxx.
75{
76 if ( cell >= 0 && cell <
nWires() ) {
78 } else {
79 std::cout << "phiWireDC: wrong cell # " << cell << "\n"
80 <<
" number of cells in this layer is " <<
nWires()
81 << std::endl;
82 return 0.;
83 }
84}
double phiDC(double z) const
Referenced by dPhizDC(), and print().
◆ print()
void MdcLayer::print |
( |
std::ostream & | o | ) |
const |
Definition at line 41 of file MdcLayer.cxx.
42{
69 std::endl;
70}
double yWire(int cell) const
double phiOffset(void) const
double zLength(void) const
double phiEPOffset(void) const
double cellWidth(void) const
double dPhizDC(double z) const
int superLayer(void) const
double xWire(int cell) const
◆ radiusDC()
double MdcLayer::radiusDC |
( |
double | z | ) |
const |
|
inline |
◆ rEnd()
double MdcLayer::rEnd |
( |
void | | ) |
const |
|
inline |
◆ rIn()
double MdcLayer::rIn |
( |
void | | ) |
const |
|
inline |
◆ rMid()
double MdcLayer::rMid |
( |
void | | ) |
const |
|
inline |
◆ rOut()
double MdcLayer::rOut |
( |
void | | ) |
const |
|
inline |
◆ sag()
double MdcLayer::sag |
( |
void | | ) |
const |
|
inline |
◆ setCellHeight()
void MdcLayer::setCellHeight |
( |
double | height | ) |
|
|
inline |
Definition at line 77 of file MdcLayer.h.
77{ _cellHeight = height; }
◆ stDip()
double MdcLayer::stDip |
( |
void | | ) |
const |
|
inline |
◆ stereo()
double MdcLayer::stereo |
( |
void | | ) |
const |
|
inline |
◆ subLayer()
int MdcLayer::subLayer |
( |
void | | ) |
const |
|
inline |
◆ superLayer()
int MdcLayer::superLayer |
( |
void | | ) |
const |
|
inline |
◆ View()
void MdcLayer::View |
( |
int | v | ) |
|
|
inline |
Definition at line 76 of file MdcLayer.h.
**********Class see also m_nmax DOUBLE PRECISION m_amel DOUBLE PRECISION m_x2 DOUBLE PRECISION m_alfinv DOUBLE PRECISION m_Xenph INTEGER m_KeyWtm INTEGER m_idyfs DOUBLE PRECISION m_zini DOUBLE PRECISION m_q2 DOUBLE PRECISION m_Wt_KF DOUBLE PRECISION m_WtCut INTEGER m_KFfin *COMMON c_KarLud $ !Input CMS energy[GeV] $ !CMS energy after beam spread beam strahlung[GeV] $ !Beam energy spread[GeV] $ !z boost due to beam spread $ !electron beam mass *ff pair spectrum $ !minimum v
◆ view()
int MdcLayer::view |
( |
void | | ) |
const |
|
inline |
◆ xWire()
double MdcLayer::xWire |
( |
int | cell | ) |
const |
Definition at line 101 of file MdcLayer.cxx.
102{
103
104 if ( cell >= 0 && cell <
nWires() ) {
106 } else {
107 std::cout << "xWire: wrong cell # " << cell << "\n"
108 <<
" number of cells in this layer is " <<
nWires()
109 << std::endl;
110 return 0.;
111 }
112}
Referenced by print(), and MdcxHit::process().
◆ yWire()
double MdcLayer::yWire |
( |
int | cell | ) |
const |
Definition at line 115 of file MdcLayer.cxx.
116{
117
118 if ( cell >= 0 && cell <
nWires() ) {
120 } else {
121 std::cout << "YWire: wrong cell # " << cell << "\n"
122 <<
" number of cells in this layer is " <<
nWires()
123 << std::endl;
124 return 0.;
125 }
126}
Referenced by print(), and MdcxHit::process().
◆ zEnd()
double MdcLayer::zEnd |
( |
void | | ) |
const |
|
inline |
◆ zLength()
double MdcLayer::zLength |
( |
void | | ) |
const |
|
inline |
The documentation for this class was generated from the following files: