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

MdcCosWire Class Reference

#include <MdcCosWire.h>

List of all members.

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 MdcCosLayergetLayerPtr () const
const MdcCosLayergetLayerPtr () 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 MdcCosLayerm_play
const MdcCosLayerm_play
double m_sag
char m_tag [100]
double m_ten
double m_wpos [6]


Member Function Documentation

int MdcCosWire::getCellId  )  const [inline]
 

00027 { return m_iCell; }

int MdcCosWire::getCellId  )  const [inline]
 

00027 { return m_iCell; }

int MdcCosWire::getChannel  )  const [inline]
 

00032 { return m_ch; }

int MdcCosWire::getChannel  )  const [inline]
 

00032 { return m_ch; }

int MdcCosWire::getEndId  )  const [inline]
 

00034 { return m_iEnd; }

int MdcCosWire::getEndId  )  const [inline]
 

00034 { return m_iEnd; }

int MdcCosWire::getFanId  )  const [inline]
 

00033 { return m_iFan; }

int MdcCosWire::getFanId  )  const [inline]
 

00033 { return m_iFan; }

int MdcCosWire::getLayerId void   )  const [inline]
 

00024 { return m_iLay; }

int MdcCosWire::getLayerId void   )  const [inline]
 

00024 { return m_iLay; }

const MdcCosLayer* MdcCosWire::getLayerPtr  )  const [inline]
 

00072 { return m_play; }

const MdcCosLayer* MdcCosWire::getLayerPtr  )  const [inline]
 

00072 { return m_play; }

double MdcCosWire::getLength  )  const [inline]
 

00081 { return m_play -> getLength(); }

double MdcCosWire::getLength  )  const [inline]
 

00081 { return m_play -> getLength(); }

double MdcCosWire::getPhi double  z  )  const
 

double MdcCosWire::getPhi double  z  )  const
 

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 }

double MdcCosWire::getPhiForward  )  const [inline]
 

00061 { return m_phif; }

double MdcCosWire::getPhiForward  )  const [inline]
 

00061 { return m_phif; }

int MdcCosWire::getPreAmpId  )  const [inline]
 

00030 { return m_iAmp; }

int MdcCosWire::getPreAmpId  )  const [inline]
 

00030 { return m_iAmp; }

double MdcCosWire::getRad  )  const [inline]
 

00078 { return m_play -> getLayerRad(); }

double MdcCosWire::getRad  )  const [inline]
 

00078 { return m_play -> getLayerRad(); }

double MdcCosWire::getSag  )  const [inline]
 

00069 { return m_sag; }

double MdcCosWire::getSag  )  const [inline]
 

00069 { return m_sag; }

double MdcCosWire::getSlant  )  const [inline]
 

00087 { return m_play -> getSlant(); }

double MdcCosWire::getSlant  )  const [inline]
 

00087 { return m_play -> getSlant(); }

double MdcCosWire::getTension  )  const [inline]
 

00066 { return m_ten; }

double MdcCosWire::getTension  )  const [inline]
 

00066 { return m_ten; }

double MdcCosWire::getTwistCell  )  const [inline]
 

00084 { return m_play -> getTwistCell(); }

double MdcCosWire::getTwistCell  )  const [inline]
 

00084 { return m_play -> getTwistCell(); }

void MdcCosWire::getWireCenPos double  wcenpos[]  )  const
 

void MdcCosWire::getWireCenPos double  wcenpos[]  )  const [inline]
 

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 }

int MdcCosWire::getWireId void   )  const [inline]
 

00021 { return m_iWire; }

int MdcCosWire::getWireId void   )  const [inline]
 

00021 { return m_iWire; }

const char* MdcCosWire::getWireLabel  )  const [inline]
 

00037 { return m_label; }

const char* MdcCosWire::getWireLabel  )  const [inline]
 

00037 { return m_label; }

void MdcCosWire::getWirePos double  wpos[]  )  const
 

void MdcCosWire::getWirePos double  wpos[]  )  const [inline]
 

00174                                                       {
00175      for(int i=0; i<6; i++){
00176           wpos[i] = m_wpos[i];
00177      }
00178 }

const char* MdcCosWire::getWireTag  )  const [inline]
 

00041 { return m_tag; }

const char* MdcCosWire::getWireTag  )  const [inline]
 

00041 { return m_tag; }

int MdcCosWire::getWireType  )  const [inline]
 

00075 { return m_play -> getLayerType(); }

int MdcCosWire::getWireType  )  const [inline]
 

00075 { return m_play -> getLayerType(); }

double MdcCosWire::getXb  )  const [inline]
 

00056 { return m_wpos[3]; }

double MdcCosWire::getXb  )  const [inline]
 

00056 { return m_wpos[3]; }

double MdcCosWire::getXf  )  const [inline]
 

00051 { return m_wpos[0]; }

double MdcCosWire::getXf  )  const [inline]
 

00051 { return m_wpos[0]; }

double MdcCosWire::getYb  )  const [inline]
 

00057 { return m_wpos[4]; }

double MdcCosWire::getYb  )  const [inline]
 

00057 { return m_wpos[4]; }

double MdcCosWire::getYf  )  const [inline]
 

00052 { return m_wpos[1]; }

double MdcCosWire::getYf  )  const [inline]
 

00052 { return m_wpos[1]; }

double MdcCosWire::getZb  )  const [inline]
 

00058 { return m_wpos[5]; }

double MdcCosWire::getZb  )  const [inline]
 

00058 { return m_wpos[5]; }

double MdcCosWire::getZf  )  const [inline]
 

00053 { return m_wpos[2]; }

double MdcCosWire::getZf  )  const [inline]
 

00053 { return m_wpos[2]; }

bool MdcCosWire::isInner  )  const [inline]
 

00090 { return m_play -> isInner(); }

bool MdcCosWire::isInner  )  const [inline]
 

00090 { return m_play -> isInner(); }

void MdcCosWire::print FILE *  fout = stdout  )  const
 

void MdcCosWire::print FILE *  fout = stdout  )  const
 

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 }

void MdcCosWire::setCellId int  iCell  )  [inline]
 

00099 { m_iCell = iCell; }

void MdcCosWire::setCellId int  iCell  )  [inline]
 

00099 { m_iCell = iCell; }

void MdcCosWire::setChannel int  ch  )  [inline]
 

00102 { m_ch = ch; }

void MdcCosWire::setChannel int  ch  )  [inline]
 

00102 { m_ch = ch; }

void MdcCosWire::setEndId int  iEnd  )  [inline]
 

00104 { m_iEnd = iEnd; }

void MdcCosWire::setEndId int  iEnd  )  [inline]
 

00104 { m_iEnd = iEnd; }

void MdcCosWire::setFanId int  iFan  )  [inline]
 

00103 { m_iFan = iFan; }

void MdcCosWire::setFanId int  iFan  )  [inline]
 

00103 { m_iFan = iFan; }

void MdcCosWire::setLayerId int  iLay  )  [inline]
 

00098 { m_iLay = iLay; }

void MdcCosWire::setLayerId int  iLay  )  [inline]
 

00098 { m_iLay = iLay; }

void MdcCosWire::setLayerPtr MdcCosLayer layerptr  )  [inline]
 

00130 { m_play = layerptr; }

void MdcCosWire::setLayerPtr MdcCosLayer layerptr  )  [inline]
 

00130 { m_play = layerptr; }

void MdcCosWire::setPhiForward double  phi  )  [inline]
 

00124 { m_phif = phi; }

void MdcCosWire::setPhiForward double  phi  )  [inline]
 

00124 { m_phif = phi; }

void MdcCosWire::setPreAmpId int  iPreamp  )  [inline]
 

00100 { m_iAmp = iPreamp; }

void MdcCosWire::setPreAmpId int  iPreamp  )  [inline]
 

00100 { m_iAmp = iPreamp; }

void MdcCosWire::setSag double  sag  )  [inline]
 

00127 { m_sag = sag; }

void MdcCosWire::setSag double  sag  )  [inline]
 

00127 { m_sag = sag; }

void MdcCosWire::setTension double  tension  )  [inline]
 

00126 { m_ten = tension; }

void MdcCosWire::setTension double  tension  )  [inline]
 

00126 { m_ten = tension; }

void MdcCosWire::setWireId int  iWire  )  [inline]
 

00097 { m_iWire = iWire; }

void MdcCosWire::setWireId int  iWire  )  [inline]
 

00097 { m_iWire = iWire; }

void MdcCosWire::setWireLabel char *  label  )  [inline]
 

00106 { strcpy(m_label, label); }

void MdcCosWire::setWireLabel char *  label  )  [inline]
 

00106 { strcpy(m_label, label); }

void MdcCosWire::setWirePos double  wpos[]  ) 
 

void MdcCosWire::setWirePos double  wpos[]  ) 
 

void MdcCosWire::setWireTag char *  tag  )  [inline]
 

00107 { strcpy(m_tag, tag); }

void MdcCosWire::setWireTag char *  tag  )  [inline]
 

00107 { strcpy(m_tag, tag); }

void MdcCosWire::setXb double  xb  )  [inline]
 

00119 { m_wpos[3] = xb; }

void MdcCosWire::setXb double  xb  )  [inline]
 

00119 { m_wpos[3] = xb; }

void MdcCosWire::setXf double  xf  )  [inline]
 

00114 { m_wpos[0] = xf; }

void MdcCosWire::setXf double  xf  )  [inline]
 

00114 { m_wpos[0] = xf; }

void MdcCosWire::setYb double  yb  )  [inline]
 

00120 { m_wpos[4] = yb; }

void MdcCosWire::setYb double  yb  )  [inline]
 

00120 { m_wpos[4] = yb; }

void MdcCosWire::setYf double  yf  )  [inline]
 

00115 { m_wpos[1] = yf; }

void MdcCosWire::setYf double  yf  )  [inline]
 

00115 { m_wpos[1] = yf; }

void MdcCosWire::setZb double  zb  )  [inline]
 

00121 { m_wpos[5] = zb; }

void MdcCosWire::setZb double  zb  )  [inline]
 

00121 { m_wpos[5] = zb; }

void MdcCosWire::setZf double  zf  )  [inline]
 

00116 { m_wpos[2] = zf; }

void MdcCosWire::setZf double  zf  )  [inline]
 

00116 { m_wpos[2] = zf; }


Member Data Documentation

int MdcCosWire::m_ch [private]
 

int MdcCosWire::m_iAmp [private]
 

int MdcCosWire::m_iCell [private]
 

int MdcCosWire::m_iEnd [private]
 

int MdcCosWire::m_iFan [private]
 

int MdcCosWire::m_iLay [private]
 

int MdcCosWire::m_iWire [private]
 

char MdcCosWire::m_label [private]
 

double MdcCosWire::m_phif [private]
 

const MdcCosLayer* MdcCosWire::m_play [private]
 

const MdcCosLayer* MdcCosWire::m_play [private]
 

double MdcCosWire::m_sag [private]
 

char MdcCosWire::m_tag [private]
 

double MdcCosWire::m_ten [private]
 

double MdcCosWire::m_wpos [private]
 


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