#include <MdcCosWire.h>
Public Member Functions | |
int | getCellId () const |
int | getCellId () const |
int | getChannel () const |
int | getChannel () const |
int | getEndId () const |
int | getEndId () const |
int | getFanId () const |
int | getFanId () const |
int | getLayerId () const |
int | getLayerId () const |
const MdcCosLayer * | getLayerPtr () const |
const MdcCosLayer * | getLayerPtr () const |
double | getLength () const |
double | getLength () const |
double | getPhi (double z) const |
double | getPhi (double z) const |
double | getPhiForward () const |
double | getPhiForward () const |
int | getPreAmpId () const |
int | getPreAmpId () const |
double | getRad () const |
double | getRad () const |
double | getSag () const |
double | getSag () const |
double | getSlant () const |
double | getSlant () const |
double | getTension () const |
double | getTension () const |
double | getTwistCell () const |
double | getTwistCell () const |
void | getWireCenPos (double wcenpos[]) const |
void | getWireCenPos (double wcenpos[]) const |
int | getWireId () const |
int | getWireId () const |
const char * | getWireLabel () const |
const char * | getWireLabel () const |
void | getWirePos (double wpos[]) const |
void | getWirePos (double wpos[]) const |
const char * | getWireTag () const |
const char * | getWireTag () const |
int | getWireType () const |
int | getWireType () const |
double | getXb () const |
double | getXb () const |
double | getXf () const |
double | getXf () const |
double | getYb () const |
double | getYb () const |
double | getYf () const |
double | getYf () const |
double | getZb () const |
double | getZb () const |
double | getZf () const |
double | getZf () const |
bool | isInner () const |
bool | isInner () const |
void | print (FILE *fout=stdout) const |
void | print (FILE *fout=stdout) const |
void | setCellId (int iCell) |
void | setCellId (int iCell) |
void | setChannel (int ch) |
void | setChannel (int ch) |
void | setEndId (int iEnd) |
void | setEndId (int iEnd) |
void | setFanId (int iFan) |
void | setFanId (int iFan) |
void | setLayerId (int iLay) |
void | setLayerId (int iLay) |
void | setLayerPtr (MdcCosLayer *layerptr) |
void | setLayerPtr (MdcCosLayer *layerptr) |
void | setPhiForward (double phi) |
void | setPhiForward (double phi) |
void | setPreAmpId (int iPreamp) |
void | setPreAmpId (int iPreamp) |
void | setSag (double sag) |
void | setSag (double sag) |
void | setTension (double tension) |
void | setTension (double tension) |
void | setWireId (int iWire) |
void | setWireId (int iWire) |
void | setWireLabel (char *label) |
void | setWireLabel (char *label) |
void | setWirePos (double wpos[]) |
void | setWirePos (double wpos[]) |
void | setWireTag (char *tag) |
void | setWireTag (char *tag) |
void | setXb (double xb) |
void | setXb (double xb) |
void | setXf (double xf) |
void | setXf (double xf) |
void | setYb (double yb) |
void | setYb (double yb) |
void | setYf (double yf) |
void | setYf (double yf) |
void | setZb (double zb) |
void | setZb (double zb) |
void | setZf (double zf) |
void | setZf (double zf) |
Private Attributes | |
int | m_ch |
int | m_iAmp |
int | m_iCell |
int | m_iEnd |
int | m_iFan |
int | m_iLay |
int | m_iWire |
char | m_label [100] |
double | m_phif |
const MdcCosLayer * | m_play |
const MdcCosLayer * | m_play |
double | m_sag |
char | m_tag [100] |
double | m_ten |
double | m_wpos [6] |
|
00027 { return m_iCell; }
|
|
00027 { return m_iCell; }
|
|
00032 { return m_ch; }
|
|
00032 { return m_ch; }
|
|
00034 { return m_iEnd; }
|
|
00034 { return m_iEnd; }
|
|
00033 { return m_iFan; }
|
|
00033 { return m_iFan; }
|
|
00024 { return m_iLay; }
|
|
00024 { return m_iLay; }
|
|
00072 { return m_play; }
|
|
00072 { return m_play; }
|
|
|
|
|
|
|
|
00006 { 00007 double lx = m_wpos[0] - m_wpos[3]; 00008 double ly = m_wpos[1] - m_wpos[4]; 00009 double lz = m_wpos[2] - m_wpos[5]; 00010 00011 double xhit = (z - m_wpos[2]) * lx / lz + m_wpos[0]; 00012 double yhit = (z - m_wpos[2]) * ly / lz + m_wpos[1]; 00013 00014 double r = sqrt( (xhit * xhit) + (yhit * yhit) ); 00015 double phi = asin(yhit / r); 00016 00017 if(xhit < 0) phi = PI - phi; 00018 if(phi < 0) phi += PI2; 00019 00020 return phi; 00021 }
|
|
00061 { return m_phif; }
|
|
00061 { return m_phif; }
|
|
00030 { return m_iAmp; }
|
|
00030 { return m_iAmp; }
|
|
00078 { return m_play -> getLayerRad(); }
|
|
00078 { return m_play -> getLayerRad(); }
|
|
00069 { return m_sag; }
|
|
00069 { return m_sag; }
|
|
|
|
|
|
00066 { return m_ten; }
|
|
00066 { return m_ten; }
|
|
00084 { return m_play -> getTwistCell(); }
|
|
00084 { return m_play -> getTwistCell(); }
|
|
|
|
00180 { 00181 wcenpos[0] = 0.5 * (m_wpos[0] + m_wpos[3]); 00182 wcenpos[1] = 0.5 * (m_wpos[1] + m_wpos[4]); 00183 wcenpos[2] = 0.5 * (m_wpos[2] + m_wpos[5]); 00184 }
|
|
00021 { return m_iWire; }
|
|
00021 { return m_iWire; }
|
|
00037 { return m_label; }
|
|
00037 { return m_label; }
|
|
|
|
00174 { 00175 for(int i=0; i<6; i++){ 00176 wpos[i] = m_wpos[i]; 00177 } 00178 }
|
|
00041 { return m_tag; }
|
|
00041 { return m_tag; }
|
|
00075 { return m_play -> getLayerType(); }
|
|
00075 { return m_play -> getLayerType(); }
|
|
00056 { return m_wpos[3]; }
|
|
00056 { return m_wpos[3]; }
|
|
00051 { return m_wpos[0]; }
|
|
00051 { return m_wpos[0]; }
|
|
00057 { return m_wpos[4]; }
|
|
00057 { return m_wpos[4]; }
|
|
00052 { return m_wpos[1]; }
|
|
00052 { return m_wpos[1]; }
|
|
00058 { return m_wpos[5]; }
|
|
00058 { return m_wpos[5]; }
|
|
00053 { return m_wpos[2]; }
|
|
00053 { return m_wpos[2]; }
|
|
|
|
|
|
|
|
00023 { 00024 fprintf(fout, "\n%10s %10s %10s %10s %10s %10s %10s\n", 00025 "WireLabel", "Wire", "Layer", "Cell", 00026 "Radius", "PhiF", "Ten"); 00027 fprintf(fout, "%10s %10d %10d %10d\n\n", getWireLabel(), 00028 getWireId(), getLayerId(), getCellId() ); 00029 00030 fprintf(fout, "%10s %10s %10s %10s %10s %10s %10s\n", 00031 "Xf", "Yf", "Zf", "Xb", "Yb", "Zb", "Sag"); 00032 fprintf(fout, "%10.3f %10.3f %10.3f %10.3f %10.3f %10.3f\n\n", 00033 getXf(), getYf(), getZf(), getXb(), getYb(), getZb() ); 00034 00035 }
|
|
00099 { m_iCell = iCell; }
|
|
00099 { m_iCell = iCell; }
|
|
00102 { m_ch = ch; }
|
|
00102 { m_ch = ch; }
|
|
00104 { m_iEnd = iEnd; }
|
|
00104 { m_iEnd = iEnd; }
|
|
00103 { m_iFan = iFan; }
|
|
00103 { m_iFan = iFan; }
|
|
00098 { m_iLay = iLay; }
|
|
00098 { m_iLay = iLay; }
|
|
00130 { m_play = layerptr; }
|
|
00130 { m_play = layerptr; }
|
|
00124 { m_phif = phi; }
|
|
00124 { m_phif = phi; }
|
|
00100 { m_iAmp = iPreamp; }
|
|
00100 { m_iAmp = iPreamp; }
|
|
00127 { m_sag = sag; }
|
|
00127 { m_sag = sag; }
|
|
00126 { m_ten = tension; }
|
|
00126 { m_ten = tension; }
|
|
00097 { m_iWire = iWire; }
|
|
00097 { m_iWire = iWire; }
|
|
00106 { strcpy(m_label, label); }
|
|
00106 { strcpy(m_label, label); }
|
|
|
|
|
|
00107 { strcpy(m_tag, tag); }
|
|
00107 { strcpy(m_tag, tag); }
|
|
00119 { m_wpos[3] = xb; }
|
|
00119 { m_wpos[3] = xb; }
|
|
00114 { m_wpos[0] = xf; }
|
|
00114 { m_wpos[0] = xf; }
|
|
00120 { m_wpos[4] = yb; }
|
|
00120 { m_wpos[4] = yb; }
|
|
00115 { m_wpos[1] = yf; }
|
|
00115 { m_wpos[1] = yf; }
|
|
00121 { m_wpos[5] = zb; }
|
|
00121 { m_wpos[5] = zb; }
|
|
00116 { m_wpos[2] = zf; }
|
|
00116 { m_wpos[2] = zf; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|