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

MdcSuperLayer Class Reference

#include <MdcSuperLayer.h>

List of all members.

Public Member Functions

double delPhi (void) const
double delPhi (void) const
double delPhiinv (void) const
double delPhiinv (void) const
bool exist (void) const
bool exist (void) const
const MdcLayerfirstLayer (void) const
const MdcLayerfirstLayer (void) const
int index (void) const
int index (void) const
const MdcLayerlastLayer (void) const
const MdcLayerlastLayer (void) const
const MdcLayerlayer (int i) const
const MdcLayerlayer (int i) const
 MdcSuperLayer (int number)
 MdcSuperLayer (int number)
const MdcSuperLayernext (void) const
const MdcSuperLayernext (void) const
const MdcSuperLayernextInView (void) const
const MdcSuperLayernextInView (void) const
int nLayers (void) const
int nLayers (void) const
const MdcSuperLayerprev (void) const
const MdcSuperLayerprev (void) const
const MdcSuperLayerprevInView (void) const
const MdcSuperLayerprevInView (void) const
void print (std::ostream &o=std::cout) const
void print (std::ostream &o=std::cout) const
double rad0 (void) const
double rad0 (void) const
double rEnd (void) const
double rEnd (void) const
void setNextInView (MdcSuperLayer *sl)
void setNextInView (MdcSuperLayer *sl)
void setPrevInView (MdcSuperLayer *sl)
void setPrevInView (MdcSuperLayer *sl)
int slayNum (void) const
int slayNum (void) const
double stDip (void) const
double stDip (void) const
int whichView (void) const
int whichView (void) const
double zEnd (void) const
double zEnd (void) const
 ~MdcSuperLayer ()
 ~MdcSuperLayer ()

Private Member Functions

void addLayer (int index, const MdcLayer *lay)
void addLayer (int index, const MdcLayer *lay)
void updateInfo (const MdcSuperLayer *prev, const MdcSuperLayer *next)
void updateInfo (const MdcSuperLayer *prev, const MdcSuperLayer *next)

Private Attributes

double _delphi
double _delphiinv
bool _exist
const MdcSuperLayer_next
const MdcSuperLayer_next
const MdcSuperLayer_nextInView
const MdcSuperLayer_nextInView
int _nLayers
const MdcSuperLayer_prev
const MdcSuperLayer_prev
const MdcSuperLayer_prevInView
const MdcSuperLayer_prevInView
double _radius
int _slayer
int _view
const MdcLayerlayers [4]
const MdcLayerlayers [4]

Friends

class MdcDetector


Constructor & Destructor Documentation

MdcSuperLayer::MdcSuperLayer int  number  ) 
 

00064 {
00065   _radius = _delphi = _delphiinv = 0;
00066   layers[0] = layers[1] = layers[2] = layers[3] = 0;
00067   _nLayers = 0;
00068   _view = 0;
00069   _next = _prev = _nextInView = _prevInView = 0;
00070   _exist = false;
00071   _slayer = number;
00072 }

MdcSuperLayer::~MdcSuperLayer  ) 
 

00077                               {
00078   //  delete [] layers;
00079 }

MdcSuperLayer::MdcSuperLayer int  number  ) 
 

MdcSuperLayer::~MdcSuperLayer  ) 
 


Member Function Documentation

void MdcSuperLayer::addLayer int  index,
const MdcLayer lay
[private]
 

void MdcSuperLayer::addLayer int  index,
const MdcLayer lay
[private]
 

00085                                                       {
00086   //---------------------------------------------------------- 
00087   // here |index| is the index of array of pointers to layers
00088   // belonging to the superlayer, so this ramges from 0 to 3
00089   //----------------------------------------------------------
00090   // check on index number
00091   assert ( index>=0 && index <4); 
00092   // check that it was not already set
00093   assert ( layer(index) == 0 );
00094   // chack that layer stays in this superlayer
00095   //assert ( (int)((lay->layNum()-1)/_layInSuper+1) == slayNum() );
00096 
00097   //   lay->setSlayer(this);
00098   layers[index] = lay;
00099   _nLayers++;
00100 }

double MdcSuperLayer::delPhi void   )  const [inline]
 

00030 {return _delphi;}

double MdcSuperLayer::delPhi void   )  const [inline]
 

00030 {return _delphi;}

double MdcSuperLayer::delPhiinv void   )  const [inline]
 

00031 {return _delphiinv;}

double MdcSuperLayer::delPhiinv void   )  const [inline]
 

00031 {return _delphiinv;}

bool MdcSuperLayer::exist void   )  const [inline]
 

00022 {return _exist;}

bool MdcSuperLayer::exist void   )  const [inline]
 

00022 {return _exist;}

const MdcLayer* MdcSuperLayer::firstLayer void   )  const [inline]
 

00037 { return layers[0];}

const MdcLayer* MdcSuperLayer::firstLayer void   )  const [inline]
 

00037 { return layers[0];}

int MdcSuperLayer::index void   )  const [inline]
 

00020 {return _slayer; }

int MdcSuperLayer::index void   )  const [inline]
 

00020 {return _slayer; }

const MdcLayer* MdcSuperLayer::lastLayer void   )  const [inline]
 

00038 { return layers[_nLayers - 1];}

const MdcLayer* MdcSuperLayer::lastLayer void   )  const [inline]
 

00038 { return layers[_nLayers - 1];}

const MdcLayer* MdcSuperLayer::layer int  i  )  const [inline]
 

00045                                            { /*yzhang SKIP assert ( i>=0 && i < nLayer() ) ;*/
00046 //    const MdcLayer* layer(int i)     const { assert ( i>=0 && i < _nLayers ) ;
00047                                                 return layers[i]; }

const MdcLayer* MdcSuperLayer::layer int  i  )  const [inline]
 

00045                                            { /*yzhang SKIP assert ( i>=0 && i < nLayer() ) ;*/
00046 //    const MdcLayer* layer(int i)     const { assert ( i>=0 && i < _nLayers ) ;
00047                                                 return layers[i]; }

const MdcSuperLayer* MdcSuperLayer::next void   )  const [inline]
 

00039 { return _next;}

const MdcSuperLayer* MdcSuperLayer::next void   )  const [inline]
 

00039 { return _next;}

const MdcSuperLayer* MdcSuperLayer::nextInView void   )  const [inline]
 

00041 { return _nextInView;}

const MdcSuperLayer* MdcSuperLayer::nextInView void   )  const [inline]
 

00041 { return _nextInView;}

int MdcSuperLayer::nLayers void   )  const [inline]
 

00044 { return _nLayers;}

int MdcSuperLayer::nLayers void   )  const [inline]
 

00044 { return _nLayers;}

const MdcSuperLayer* MdcSuperLayer::prev void   )  const [inline]
 

00040 { return _prev;}

const MdcSuperLayer* MdcSuperLayer::prev void   )  const [inline]
 

00040 { return _prev;}

const MdcSuperLayer* MdcSuperLayer::prevInView void   )  const [inline]
 

00042 { return _prevInView;}

const MdcSuperLayer* MdcSuperLayer::prevInView void   )  const [inline]
 

00042 { return _prevInView;}

void MdcSuperLayer::print std::ostream o = std::cout  )  const
 

void MdcSuperLayer::print std::ostream o = std::cout  )  const
 

00121 {
00122   o<< setw(3)<<index()<<
00123     setw(3)<<whichView()<<
00124     setw(3)<<exist()<<    setw(10)<<rEnd()<<
00125     setw(10)<<rad0()<<
00126     setw(10)<<zEnd()<<
00127     setw(10)<<stDip()<<
00128     setw(10)<<delPhi()<<
00129     setw(10)<<delPhiinv()<<
00130     setw(3)<<slayNum()<<
00131     setw(3)<<nLayers()<<
00132     std::endl;
00133 }

double MdcSuperLayer::rad0 void   )  const [inline]
 

00024                                  { return 0.5 * (firstLayer()->rMid() +
00025                                                  lastLayer()->rMid()); }

double MdcSuperLayer::rad0 void   )  const [inline]
 

00024                                  { return 0.5 * (firstLayer()->rMid() +
00025                                                  lastLayer()->rMid()); }

double MdcSuperLayer::rEnd void   )  const [inline]
 

00023 {return _radius;}

double MdcSuperLayer::rEnd void   )  const [inline]
 

00023 {return _radius;}

void MdcSuperLayer::setNextInView MdcSuperLayer sl  )  [inline]
 

00048 {_nextInView = sl;}

void MdcSuperLayer::setNextInView MdcSuperLayer sl  )  [inline]
 

00048 {_nextInView = sl;}

void MdcSuperLayer::setPrevInView MdcSuperLayer sl  )  [inline]
 

00049 {_prevInView = sl;}

void MdcSuperLayer::setPrevInView MdcSuperLayer sl  )  [inline]
 

00049 {_prevInView = sl;}

int MdcSuperLayer::slayNum void   )  const [inline]
 

00043 { return _slayer;}

int MdcSuperLayer::slayNum void   )  const [inline]
 

00043 { return _slayer;}

double MdcSuperLayer::stDip void   )  const [inline]
 

00028                                  { return 0.5 * (firstLayer()->stDip() +
00029                                                  lastLayer()->stDip()); }

double MdcSuperLayer::stDip void   )  const [inline]
 

00028                                  { return 0.5 * (firstLayer()->stDip() +
00029                                                  lastLayer()->stDip()); }

void MdcSuperLayer::updateInfo const MdcSuperLayer prev,
const MdcSuperLayer next
[private]
 

void MdcSuperLayer::updateInfo const MdcSuperLayer prev,
const MdcSuperLayer next
[private]
 

00104                                 {
00105   //
00106   // function to set the data-members of this class
00107   //
00108   _exist = true;
00109   _radius = 0.5 * (firstLayer()->rEnd() + lastLayer()->rEnd());
00110   _view = firstLayer()->view();
00111   _delphi = firstLayer()->dPhiz();
00112   _delphiinv = 0.0;
00113   if ( _delphi != 0. ) _delphiinv = 1./_delphi;
00114   // now the pointers
00115   _next = next;
00116   _prev = prev;
00117 }

int MdcSuperLayer::whichView void   )  const [inline]
 

00021 {return _view;}

int MdcSuperLayer::whichView void   )  const [inline]
 

00021 {return _view;}

double MdcSuperLayer::zEnd void   )  const [inline]
 

00026                                  { return 0.5 * (firstLayer()->zEnd() +
00027                                                  lastLayer()->zEnd()); }

double MdcSuperLayer::zEnd void   )  const [inline]
 

00026                                  { return 0.5 * (firstLayer()->zEnd() +
00027                                                  lastLayer()->zEnd()); }


Friends And Related Function Documentation

MdcDetector [friend]
 


Member Data Documentation

double MdcSuperLayer::_delphi [private]
 

double MdcSuperLayer::_delphiinv [private]
 

bool MdcSuperLayer::_exist [private]
 

const MdcSuperLayer* MdcSuperLayer::_next [private]
 

const MdcSuperLayer* MdcSuperLayer::_next [private]
 

const MdcSuperLayer* MdcSuperLayer::_nextInView [private]
 

const MdcSuperLayer* MdcSuperLayer::_nextInView [private]
 

int MdcSuperLayer::_nLayers [private]
 

const MdcSuperLayer* MdcSuperLayer::_prev [private]
 

const MdcSuperLayer* MdcSuperLayer::_prev [private]
 

const MdcSuperLayer* MdcSuperLayer::_prevInView [private]
 

const MdcSuperLayer* MdcSuperLayer::_prevInView [private]
 

double MdcSuperLayer::_radius [private]
 

int MdcSuperLayer::_slayer [private]
 

int MdcSuperLayer::_view [private]
 

const MdcLayer* MdcSuperLayer::layers[4] [private]
 

const MdcLayer* MdcSuperLayer::layers[4] [private]
 


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