13#define TRG_SHORT_NAMES
14#define TRGCDC_SHORT_NAMES
17#include "trg/cdc/Cell.h"
18#include "trg/cdc/Layer.h"
106 cout <<
"layer " <<
_id;
110 if (
axial()) cout <<
", axial ";
111 else cout <<
", stereo ";
113 if (
axial()) cout <<
", axial super ";
114 else cout <<
", stereo super ";
116 cout <<
", " <<
_nCells <<
" wires";
125 cout <<
"TRGCDCLayer !!! This has no cell member : " <<
name() << endl;
136 return * (* this)[
id];
A class to represent a wire in CDC.
A class to represent a cell layer.
const std::string _name
Layer name.
const unsigned _id
ID in whole CDC.
const unsigned _axialStereoLayerId
ID in whole CDC counting only axial or stereo.
const float _offset
Cell position offset from X axis in cell unit.
const unsigned _nCells
# of cells
const unsigned _superLayerId
Super layer ID.
const int _nShifts
Stereo angle in cell unit.
const unsigned _localLayerId
ID in a super layer.
float _innerRadius
Inner radius.
float _outerRadius
Outer radius.
const unsigned _axialStereoSuperLayerId
Super layer ID counting only axial or stereo.
const float _cellSize
Cell size.
virtual ~TRGCDCLayer()
Destructor.
float innerRadius(void) const
sets and returns inner radius.
float cellSize(void) const
returns cell size.
void dump(const std::string &message=std::string(""), const std::string &prefix=std::string("")) const
dumps debug information.
unsigned id(void) const
returns id.
const TRGCDCLayer * TRGCDCUndefinedLayer
TRGCDCUndefinedLayer declaration.
unsigned localLayerId(void) const
returns local layer id in a super layer.
const std::string & name(void) const
return name.
unsigned superLayerId(void) const
returns super layer id.
const std::string stereoType(void) const
returns "A" or "U" or "V" depending on stereo type.
TRGCDCLayer()
Empty constructor for reduced CDC.
unsigned axialStereoSuperLayerId(void) const
returns id of axial or stereo super layer id.
float offset(void) const
returns offset.
unsigned axialStereoLayerId(void) const
returns id of axial or stereo id.
int nShifts(void) const
returns shifts. (non-zero for stereo layers)
unsigned nCells(void) const
returns # of cells.
const TRGCDCCell & cell(int id) const
returns a pointer to a cell. 'id' can be negative or 'id' can be greater than 'nCells()'.
bool axial(void) const
returns true if this is an axial layer.
float outerRadius(void) const
sets and returns outer radius.
Abstract base class for different kinds of events.