 |
Belle II Software
release-05-02-19
|
14 #define TRG_SHORT_NAMES
15 #define TRGCDC_SHORT_NAMES
18 #include "trg/cdc/Cell.h"
19 #include "trg/cdc/Layer.h"
42 TRGCDCLayer::TRGCDCLayer(
unsigned id,
43 unsigned superLayerId,
44 unsigned localLayerId,
45 unsigned axialStereoLayerId,
46 unsigned axialStereoSuperLayerId,
55 _superLayerId(superLayerId),
56 _localLayerId(localLayerId),
57 _axialStereoLayerId(axialStereoLayerId),
58 _axialStereoSuperLayerId(axialStereoSuperLayerId),
63 _innerRadius(innerRadius),
64 _outerRadius(outerRadius)
71 _superLayerId(w.superLayerId()),
73 _axialStereoLayerId(0),
74 _axialStereoSuperLayerId(0),
75 _offset(w.layer().offset()),
76 _nShifts(w.layer().nShifts()),
77 _cellSize(w.cellSize()),
78 _nCells(w.layer().nCells()),
92 cout <<
"layer " <<
_id;
96 if (
axial()) cout <<
", axial ";
97 else cout <<
", stereo ";
99 if (
axial()) cout <<
", axial super ";
100 else cout <<
", stereo super ";
102 cout <<
", " <<
_nCells <<
" wires";
111 cout <<
"TRGCDCLayer !!! This has no cell member : " <<
name() << endl;
122 return * (* this)[
id];
void dump(const std::string &message=std::string(""), const std::string &prefix=std::string("")) const
dumps debug information.
const unsigned _axialStereoLayerId
ID in whole CDC counting only axial or stereo.
const TRGCDCCell & cell(int id) const
returns a pointer to a cell. 'id' can be negative or 'id' can be greater than 'nCells()'.
const unsigned _nCells
# of cells
const unsigned _localLayerId
ID in a super layer.
const std::string & name(void) const
return name.
const unsigned _superLayerId
Super layer ID.
A class to represent a wire in CDC.
bool axial(void) const
returns true if this is an axial layer.
Abstract base class for different kinds of events.
unsigned id(void) const
returns id.
virtual ~TRGCDCLayer()
Destructor.
const unsigned _axialStereoSuperLayerId
Super layer ID counting only axial or stereo.
const unsigned _id
ID in whole CDC.
const TRGCDCLayer * TRGCDCUndefinedLayer
TRGCDCUndefinedLayer declaration.
const std::string stereoType(void) const
returns "A" or "U" or "V" depending on stereo type.
TRGCDCLayer(unsigned id, unsigned superLayerId, unsigned localLayerId, unsigned axialStereoLayerId, unsigned axialStereoSuperLayerId, float offset, int nShifts, float cellSize, unsigned nCells, float innerRadius, float outerRadius)
Constructor.