13#define TMDCLayer_INLINE_DEFINE_HERE
17#include "TrkReco/TMDCLayer.h"
18#include "MdcGeomSvc/MdcGeoLayer.h"
19#include "TrkReco/TMDC.h"
20#include "TrkReco/TMDCUtil.h"
28 if ( _id >= 36 || ( _id >= 8 && _id <= 19 ) ) _type = 0;
36 _cellSize = l->
PCSiz() / 10;
38 _nWires = (unsigned)l->
NCell();
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;
57 if ( _nWires == 0 )
return 0;
60 while (
id < 0 )
id += _nWires;
62 if (
id >= _nWires )
id %= _nWires;
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)