BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
TMDCLayer Class Reference

A class to represent a wire layer. More...

#include <TMDCLayer.h>

Inheritance diagram for TMDCLayer:

Public Member Functions

 TMDCLayer (const MdcGeoLayer *)
 Constructor.
virtual ~TMDCLayer ()
 Destructor.
unsigned id (void) const
 returns id.
unsigned superLayerId (void) const
 returns super layer id.
unsigned localLayerId (void) const
 returns local layer id in a super layer.
unsigned axialStereoLayerId (void) const
 returns id of axial or stereo id.
unsigned nWires (void) const
 returns # of wires.
const TMDCWire *const wire (int id) const
 returns a pointer to a wire. 'id' can be negative or 'id' can be greater than 'nWires()'.
bool axial (void) const
 returns true if this is an axial layer.
bool stereo (void) const
 returns true if this is a stereo layer.
float offset (void) const
 returns offset.
float cellSize (void) const
 returns cell size.
const MdcGeoLayergeocdc (void) const
 returns a pointer to GEOMDC_WIR.
void dump (const std::string &message=std::string(""), const std::string &prefix=std::string("")) const
 dumps debug information.
 TMDCLayer (const MdcGeoLayer *)
 Constructor.
virtual ~TMDCLayer ()
 Destructor.
unsigned id (void) const
 returns id.
unsigned superLayerId (void) const
 returns super layer id.
unsigned localLayerId (void) const
 returns local layer id in a super layer.
unsigned axialStereoLayerId (void) const
 returns id of axial or stereo id.
unsigned nWires (void) const
 returns # of wires.
const TMDCWire *const wire (int id) const
 returns a pointer to a wire. 'id' can be negative or 'id' can be greater than 'nWires()'.
bool axial (void) const
 returns true if this is an axial layer.
bool stereo (void) const
 returns true if this is a stereo layer.
float offset (void) const
 returns offset.
float cellSize (void) const
 returns cell size.
const MdcGeoLayergeocdc (void) const
 returns a pointer to GEOMDC_WIR.
void dump (const std::string &message=std::string(""), const std::string &prefix=std::string("")) const
 dumps debug information.
 TMDCLayer (const MdcGeoLayer *)
 Constructor.
virtual ~TMDCLayer ()
 Destructor.
unsigned id (void) const
 returns id.
unsigned superLayerId (void) const
 returns super layer id.
unsigned localLayerId (void) const
 returns local layer id in a super layer.
unsigned axialStereoLayerId (void) const
 returns id of axial or stereo id.
unsigned nWires (void) const
 returns # of wires.
const TMDCWire *const wire (int id) const
 returns a pointer to a wire. 'id' can be negative or 'id' can be greater than 'nWires()'.
bool axial (void) const
 returns true if this is an axial layer.
bool stereo (void) const
 returns true if this is a stereo layer.
float offset (void) const
 returns offset.
float cellSize (void) const
 returns cell size.
const MdcGeoLayergeocdc (void) const
 returns a pointer to GEOMDC_WIR.
void dump (const std::string &message=std::string(""), const std::string &prefix=std::string("")) const
 dumps debug information.

Detailed Description

A class to represent a wire layer.

Definition at line 32 of file InstallArea/x86_64-el9-gcc13-dbg/include/TrkReco/TMDCLayer.h.

Constructor & Destructor Documentation

◆ TMDCLayer() [1/3]

TMDCLayer::TMDCLayer ( const MdcGeoLayer * l)

Constructor.

Definition at line 22 of file TMDCLayer.cxx.

22 {
23 _geo = l;
24 _id = l->Id();
25 _superLayerId = TMDC::superLayerId( l );
26 _localLayerId = TMDC::localLayerId( l );
27 // liucy&jialk origin uses slant to judge type now directly uses superLayerId to judge
28 if ( _id >= 36 || ( _id >= 8 && _id <= 19 ) ) _type = 0;
29 else _type = 1;
30 // _offset = l->Offset();
31 // _cellSize = l->PCSiz();
32 // Unit from rad to cell for _offset; and from mm to cm for cellSize
33 // _offset = l->Offset()/(2. * M_PI/l->NCell());
34 // unit of offset is rad, which is diff from belle
35 _offset = l->Offset();
36 _cellSize = l->PCSiz() / 10;
37
38 _nWires = (unsigned)l->NCell();
39 _axialStereoLayerId = TMDC::axialStereoLayerId( l );
40}
static unsigned axialStereoLayerId(const MdcGeoLayer *const)
Definition TMDC.cxx:939
static unsigned superLayerId(unsigned wireId)
Definition TMDC.cxx:719
static unsigned localLayerId(unsigned wireId)
Definition TMDC.cxx:784

◆ ~TMDCLayer() [1/3]

TMDCLayer::~TMDCLayer ( )
virtual

Destructor.

Definition at line 42 of file TMDCLayer.cxx.

42{}

◆ TMDCLayer() [2/3]

TMDCLayer::TMDCLayer ( const MdcGeoLayer * )

Constructor.

◆ ~TMDCLayer() [2/3]

virtual TMDCLayer::~TMDCLayer ( )
virtual

Destructor.

◆ TMDCLayer() [3/3]

TMDCLayer::TMDCLayer ( const MdcGeoLayer * )

Constructor.

◆ ~TMDCLayer() [3/3]

virtual TMDCLayer::~TMDCLayer ( )
virtual

Destructor.

Member Function Documentation

◆ axial() [1/3]

bool TMDCLayer::axial ( void ) const
inline

returns true if this is an axial layer.

Definition at line 118 of file InstallArea/x86_64-el9-gcc13-dbg/include/TrkReco/TMDCLayer.h.

118 {
119 // cout<<"zsl,axial:"<<_superLayerId<<endl;
120 // if (_superLayerId % 2) return false;
121 if ( _type == 1 ) return false;
122 return true;
123}

Referenced by dump().

◆ axial() [2/3]

bool TMDCLayer::axial ( void ) const

returns true if this is an axial layer.

◆ axial() [3/3]

bool TMDCLayer::axial ( void ) const

returns true if this is an axial layer.

◆ axialStereoLayerId() [1/3]

unsigned TMDCLayer::axialStereoLayerId ( void ) const
inline

returns id of axial or stereo id.

Definition at line 132 of file InstallArea/x86_64-el9-gcc13-dbg/include/TrkReco/TMDCLayer.h.

132{ return _axialStereoLayerId; }

Referenced by TBuilder0::buildStereo().

◆ axialStereoLayerId() [2/3]

unsigned TMDCLayer::axialStereoLayerId ( void ) const

returns id of axial or stereo id.

◆ axialStereoLayerId() [3/3]

unsigned TMDCLayer::axialStereoLayerId ( void ) const

returns id of axial or stereo id.

◆ cellSize() [1/3]

float TMDCLayer::cellSize ( void ) const
inline

returns cell size.

Definition at line 134 of file InstallArea/x86_64-el9-gcc13-dbg/include/TrkReco/TMDCLayer.h.

134{ return _cellSize; }

◆ cellSize() [2/3]

float TMDCLayer::cellSize ( void ) const

returns cell size.

◆ cellSize() [3/3]

float TMDCLayer::cellSize ( void ) const

returns cell size.

◆ dump() [1/3]

void TMDCLayer::dump ( const std::string & message = std::string( "" ),
const std::string & prefix = std::string( "" ) ) const

dumps debug information.

Definition at line 44 of file TMDCLayer.cxx.

44 {
45 std::cout << pre;
46 std::cout << "layer " << _id;
47 std::cout << ", super layer " << _superLayerId;
48 std::cout << ", local layer " << _localLayerId;
49 if ( axial() ) std::cout << ", axial ";
50 else std::cout << ", stereo ";
51 std::cout << _axialStereoLayerId;
52 std::cout << ", " << _nWires << " wires";
53 std::cout << std::endl;
54}
bool axial(void) const
returns true if this is an axial layer.

◆ dump() [2/3]

void TMDCLayer::dump ( const std::string & message = std::string(""),
const std::string & prefix = std::string("") ) const

dumps debug information.

◆ dump() [3/3]

void TMDCLayer::dump ( const std::string & message = std::string(""),
const std::string & prefix = std::string("") ) const

dumps debug information.

◆ geocdc() [1/3]

const MdcGeoLayer * TMDCLayer::geocdc ( void ) const
inline

returns a pointer to GEOMDC_WIR.

Definition at line 112 of file InstallArea/x86_64-el9-gcc13-dbg/include/TrkReco/TMDCLayer.h.

112{ return _geo; }

Referenced by TMDC::wire().

◆ geocdc() [2/3]

const MdcGeoLayer * TMDCLayer::geocdc ( void ) const

returns a pointer to GEOMDC_WIR.

◆ geocdc() [3/3]

const MdcGeoLayer * TMDCLayer::geocdc ( void ) const

returns a pointer to GEOMDC_WIR.

◆ id() [1/3]

unsigned TMDCLayer::id ( void ) const
inline

returns id.

Definition at line 106 of file InstallArea/x86_64-el9-gcc13-dbg/include/TrkReco/TMDCLayer.h.

106{ return _id; }

Referenced by wire().

◆ id() [2/3]

unsigned TMDCLayer::id ( void ) const

returns id.

◆ id() [3/3]

unsigned TMDCLayer::id ( void ) const

returns id.

◆ localLayerId() [1/3]

unsigned TMDCLayer::localLayerId ( void ) const
inline

returns local layer id in a super layer.

Definition at line 110 of file InstallArea/x86_64-el9-gcc13-dbg/include/TrkReco/TMDCLayer.h.

110{ return _localLayerId; }

◆ localLayerId() [2/3]

unsigned TMDCLayer::localLayerId ( void ) const

returns local layer id in a super layer.

◆ localLayerId() [3/3]

unsigned TMDCLayer::localLayerId ( void ) const

returns local layer id in a super layer.

◆ nWires() [1/3]

unsigned TMDCLayer::nWires ( void ) const
inline

returns # of wires.

Definition at line 116 of file InstallArea/x86_64-el9-gcc13-dbg/include/TrkReco/TMDCLayer.h.

116{ return _nWires; }

Referenced by TMDCWire::localIdDifference(), and TMDC::wire().

◆ nWires() [2/3]

unsigned TMDCLayer::nWires ( void ) const

returns # of wires.

◆ nWires() [3/3]

unsigned TMDCLayer::nWires ( void ) const

returns # of wires.

◆ offset() [1/3]

float TMDCLayer::offset ( void ) const
inline

returns offset.

Definition at line 114 of file InstallArea/x86_64-el9-gcc13-dbg/include/TrkReco/TMDCLayer.h.

114{ return _offset; }

◆ offset() [2/3]

float TMDCLayer::offset ( void ) const

returns offset.

◆ offset() [3/3]

float TMDCLayer::offset ( void ) const

returns offset.

◆ stereo() [1/3]

bool TMDCLayer::stereo ( void ) const
inline

returns true if this is a stereo layer.

Definition at line 125 of file InstallArea/x86_64-el9-gcc13-dbg/include/TrkReco/TMDCLayer.h.

125 {
126 // cout<<"zsl,stereo:"<<_superLayerId<<endl;
127 // if (_superLayerId % 2) return true;
128 if ( _type == 1 ) return true;
129 return false;
130}

◆ stereo() [2/3]

bool TMDCLayer::stereo ( void ) const

returns true if this is a stereo layer.

◆ stereo() [3/3]

bool TMDCLayer::stereo ( void ) const

returns true if this is a stereo layer.

◆ superLayerId() [1/3]

unsigned TMDCLayer::superLayerId ( void ) const
inline

returns super layer id.

Definition at line 108 of file InstallArea/x86_64-el9-gcc13-dbg/include/TrkReco/TMDCLayer.h.

108{ return _superLayerId; }

◆ superLayerId() [2/3]

unsigned TMDCLayer::superLayerId ( void ) const

returns super layer id.

◆ superLayerId() [3/3]

unsigned TMDCLayer::superLayerId ( void ) const

returns super layer id.

◆ wire() [1/3]

const TMDCWire *const TMDCLayer::wire ( int id) const

returns a pointer to a wire. 'id' can be negative or 'id' can be greater than 'nWires()'.

Definition at line 56 of file TMDCLayer.cxx.

56 {
57 if ( _nWires == 0 ) return 0;
58
59 if ( id < 0 )
60 while ( id < 0 ) id += _nWires;
61
62 if ( id >= _nWires ) id %= _nWires;
63
64 return ( *this )[id];
65}

Referenced by TMDC::wire().

◆ wire() [2/3]

const TMDCWire *const TMDCLayer::wire ( int id) const

returns a pointer to a wire. 'id' can be negative or 'id' can be greater than 'nWires()'.

◆ wire() [3/3]

const TMDCWire *const TMDCLayer::wire ( int id) const

returns a pointer to a wire. 'id' can be negative or 'id' can be greater than 'nWires()'.


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