 |
Belle II Software
release-05-01-25
|
14 #define TRG_SHORT_NAMES
15 #define TRGCDC_SHORT_NAMES
17 #include "trg/trg/Utilities.h"
18 #include "trg/cdc/Cell.h"
19 #include "trg/cdc/Segment.h"
21 #define P3D HepGeom::Point3D<double>
31 TRGCDCCell::TRGCDCCell(
unsigned id,
39 _xyPosition(0.5 * (fp + bp)),
41 _backwardPosition(bp),
42 _direction((fp - bp).unit()),
62 if (msg.find(
"neighbor") != string::npos) {
74 cout <<
"TRGCDCCell::localIdDifference !!!";
75 cout <<
"super layer assumption violation" << endl;
78 int diff = int(a.localId()) - int(
localId());
81 int difR = nCells - diff;
82 if (diff < difR)
return diff;
85 int difR = nCells + diff;
86 if (- diff < difR)
return diff;
unsigned localId(void) const
returns local id in a layer.
virtual void dump(const std::string &message=std::string(""), const std::string &prefix=std::string("")) const
dumps debug information.
unsigned nCells(void) const
returns # of cells.
const TRGCDCLayer & layer(void) const
returns a pointer to a layer.
virtual ~TRGCDCCell()
Destructor.
unsigned localLayerId(void) const
returns local layer id in a super layer.
int localIdDifference(const TRGCDCCell &) const
returns local id difference.
A class to represent a wire in CDC.
const unsigned _localId
Local ID.
Abstract base class for different kinds of events.
unsigned superLayerId(void) const
returns super layer id.
unsigned layerId(void) const
returns layer id.