13#define TMDCLayer_INLINE_DEFINE_HERE
17#include "MdcGeomSvc/MdcGeoLayer.h"
28 if(_id>=36||(_id>=8&&_id<=19)) _type=0;
36 _cellSize = l->
PCSiz()/10;
38 _nWires = (unsigned) l->
NCell();
48 std::cout <<
"layer " << _id;
49 std::cout <<
", super layer " << _superLayerId;
50 std::cout <<
", local layer " << _localLayerId;
51 if (
axial()) std::cout <<
", axial ";
52 else std::cout <<
", stereo ";
53 std::cout << _axialStereoLayerId;
54 std::cout <<
", " << _nWires <<
" wires";
55 std::cout << std::endl;
60 if (_nWires == 0)
return 0;
double Offset(void) const
unsigned id(void) const
returns id.
void dump(const std::string &message=std::string(""), const std::string &prefix=std::string("")) const
dumps debug information.
virtual ~TMDCLayer()
Destructor.
const TMDCWire *const wire(int id) const
returns a pointer to a wire. 'id' can be negative or 'id' can be greater than 'nWires()'.
TMDCLayer(const MdcGeoLayer *)
Constructor.
bool axial(void) const
returns true if this is an axial layer.
A class to represent a wire in MDC.
static unsigned axialStereoLayerId(const MdcGeoLayer *const)
static unsigned superLayerId(unsigned wireId)
static unsigned localLayerId(unsigned wireId)