BOSS 7.1.0
BESIII Offline Software System
Loading...
Searching...
No Matches
MdcSuperLayer Class Reference

#include <MdcSuperLayer.h>

Public Member Functions

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

Friends

class MdcDetector
 

Detailed Description

Definition at line 9 of file MdcSuperLayer.h.

Constructor & Destructor Documentation

◆ MdcSuperLayer()

MdcSuperLayer::MdcSuperLayer ( int  number)

Definition at line 63 of file MdcSuperLayer.cxx.

64{
65 _radius = _delphi = _delphiinv = 0;
66 layers[0] = layers[1] = layers[2] = layers[3] = 0;
67 _nLayers = 0;
68 _view = 0;
69 _next = _prev = _nextInView = _prevInView = 0;
70 _exist = false;
71 _slayer = number;
72}

◆ ~MdcSuperLayer()

MdcSuperLayer::~MdcSuperLayer ( )

Definition at line 77 of file MdcSuperLayer.cxx.

77 {
78 // delete [] layers;
79}

Member Function Documentation

◆ delPhi()

double MdcSuperLayer::delPhi ( void  ) const
inline

Definition at line 30 of file MdcSuperLayer.h.

30{return _delphi;}

Referenced by MdcSegInfoSterO::calcStereo(), MdcSegGrouperSt::fillWithSegs(), and print().

◆ delPhiinv()

double MdcSuperLayer::delPhiinv ( void  ) const
inline

Definition at line 31 of file MdcSuperLayer.h.

31{return _delphiinv;}

Referenced by MdcSegInfoSterO::calcStereo(), and print().

◆ exist()

bool MdcSuperLayer::exist ( void  ) const
inline

Definition at line 22 of file MdcSuperLayer.h.

22{return _exist;}

Referenced by print().

◆ firstLayer()

const MdcLayer * MdcSuperLayer::firstLayer ( void  ) const
inline

Definition at line 37 of file MdcSuperLayer.h.

37{ return layers[0];}

Referenced by MdcSeg::addHits(), rad0(), stDip(), and zEnd().

◆ index()

int MdcSuperLayer::index ( void  ) const
inline

◆ lastLayer()

const MdcLayer * MdcSuperLayer::lastLayer ( void  ) const
inline

Definition at line 38 of file MdcSuperLayer.h.

38{ return layers[_nLayers - 1];}

Referenced by rad0(), stDip(), and zEnd().

◆ layer()

const MdcLayer * MdcSuperLayer::layer ( int  i) const
inline

Definition at line 45 of file MdcSuperLayer.h.

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

Referenced by MdcSeg::addHits(), MdcSegFinder::createSegs(), MdcxFindSegs::initWireGroups(), and MdcxFindSegs::process().

◆ next()

const MdcSuperLayer * MdcSuperLayer::next ( void  ) const
inline

◆ nextInView()

const MdcSuperLayer * MdcSuperLayer::nextInView ( void  ) const
inline

Definition at line 41 of file MdcSuperLayer.h.

41{ return _nextInView;}

◆ nLayers()

int MdcSuperLayer::nLayers ( void  ) const
inline

Definition at line 44 of file MdcSuperLayer.h.

44{ return _nLayers;}

Referenced by MdcSeg::addHits(), MdcSegFinder::createSegs(), MdcxFindSegs::initWireGroups(), print(), and MdcxFindSegs::process().

◆ prev()

const MdcSuperLayer * MdcSuperLayer::prev ( void  ) const
inline

Definition at line 40 of file MdcSuperLayer.h.

40{ return _prev;}

◆ prevInView()

const MdcSuperLayer * MdcSuperLayer::prevInView ( void  ) const
inline

Definition at line 42 of file MdcSuperLayer.h.

42{ return _prevInView;}

Referenced by MdcSegList::getSeed().

◆ print()

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

Definition at line 120 of file MdcSuperLayer.cxx.

121{
122 o<< setw(3)<<index()<<
123 setw(3)<<whichView()<<
124 setw(3)<<exist()<< setw(10)<<rEnd()<<
125 setw(10)<<rad0()<<
126 setw(10)<<zEnd()<<
127 setw(10)<<stDip()<<
128 setw(10)<<delPhi()<<
129 setw(10)<<delPhiinv()<<
130 setw(3)<<slayNum()<<
131 setw(3)<<nLayers()<<
132 std::endl;
133}
bool exist(void) const
Definition: MdcSuperLayer.h:22
double rad0(void) const
Definition: MdcSuperLayer.h:24
int nLayers(void) const
Definition: MdcSuperLayer.h:44
int whichView(void) const
Definition: MdcSuperLayer.h:21
double delPhiinv(void) const
Definition: MdcSuperLayer.h:31
int index(void) const
Definition: MdcSuperLayer.h:20
double delPhi(void) const
Definition: MdcSuperLayer.h:30
double stDip(void) const
Definition: MdcSuperLayer.h:28
double zEnd(void) const
Definition: MdcSuperLayer.h:26
int slayNum(void) const
Definition: MdcSuperLayer.h:43
double rEnd(void) const
Definition: MdcSuperLayer.h:23

Referenced by operator<<(), and MdcDetector::~MdcDetector().

◆ rad0()

double MdcSuperLayer::rad0 ( void  ) const
inline

Definition at line 24 of file MdcSuperLayer.h.

24 { return 0.5 * (firstLayer()->rMid() +
25 lastLayer()->rMid()); }
double rMid(void) const
Definition: MdcLayer.h:36
const MdcLayer * lastLayer(void) const
Definition: MdcSuperLayer.h:38
const MdcLayer * firstLayer(void) const
Definition: MdcSuperLayer.h:37

Referenced by MdcSeg::addHits(), MdcSegInfoAxialO::calcFromOrigin(), MdcSegInfoCsmc::calcStraight(), and print().

◆ rEnd()

double MdcSuperLayer::rEnd ( void  ) const
inline

Definition at line 23 of file MdcSuperLayer.h.

23{return _radius;}

Referenced by MdcSegInfoSterO::calcStereo(), MdcSegGrouperSt::fillWithSegs(), and print().

◆ setNextInView()

void MdcSuperLayer::setNextInView ( MdcSuperLayer sl)
inline

Definition at line 48 of file MdcSuperLayer.h.

48{_nextInView = sl;}

◆ setPrevInView()

void MdcSuperLayer::setPrevInView ( MdcSuperLayer sl)
inline

Definition at line 49 of file MdcSuperLayer.h.

49{_prevInView = sl;}

◆ slayNum()

int MdcSuperLayer::slayNum ( void  ) const
inline

◆ stDip()

double MdcSuperLayer::stDip ( void  ) const
inline

Definition at line 28 of file MdcSuperLayer.h.

28 { return 0.5 * (firstLayer()->stDip() +
29 lastLayer()->stDip()); }
double stDip(void) const
Definition: MdcLayer.h:34

Referenced by MdcSegInfoSterO::calcStereo(), and print().

◆ whichView()

int MdcSuperLayer::whichView ( void  ) const
inline

◆ zEnd()

double MdcSuperLayer::zEnd ( void  ) const
inline

Definition at line 26 of file MdcSuperLayer.h.

26 { return 0.5 * (firstLayer()->zEnd() +
27 lastLayer()->zEnd()); }
double zEnd(void) const
Definition: MdcLayer.h:35

Referenced by MdcSegInfoSterO::calcStereo(), MdcSegGrouperSt::fillWithSegs(), and print().

Friends And Related Function Documentation

◆ MdcDetector

friend class MdcDetector
friend

Definition at line 55 of file MdcSuperLayer.h.


The documentation for this class was generated from the following files: