StRoot
1
|
Public Types | |
enum | StiRegion { kBackwardRapidity, kMidRapidity, kForwardRapidity, kUndefined } |
Public Member Functions | |
StiPlacement (float normRefAngle, float normRadius, float normYOffset, float centralZ) | |
StiPlacement (const TGeoMatrix &transMatrix, const TVector3 &localCenter=TVector3(), const TVector3 &normal=TVector3(0, 1, 0)) | |
float | getNormalRefAngle () const |
float | getNormalRadius () const |
float | getNormalYoffset () const |
float | getCenterRefAngle () const |
float | getCenterRadius () const |
float | getCenterOrientation () const |
float | getLayerRadius () const |
float | getLayerAngle () const |
float | getZcenter () const |
StiRegion | getRegion () const |
void | setNormalRep (float refAngle_, float radius_, float xOffset_) |
void | setLayerRadius (float radius_) |
void | setLayerAngle (float angle) |
void | setZcenter (float val) |
void | setRegion (StiRegion r) |
Friends | |
std::ostream & | operator<< (std::ostream &os, const StiPlacement &p) |
Definition at line 45 of file StiPlacement.h.
StiPlacement::StiPlacement | ( | float | normRefAngle, |
float | normRadius, | ||
float | normYOffset, | ||
float | centralZ | ||
) |
this constructor defines ALL the variables in StiPlacement class. Some of them directly, others indirectly, some by default. This setting could be changed by additional setters if needed
Definition at line 21 of file StiPlacement.cxx.
StiPlacement::StiPlacement | ( | const TGeoMatrix & | transMatrix, |
const TVector3 & | localCenter = TVector3() , |
||
const TVector3 & | normal = TVector3(0, 1, 0) |
||
) |
Creates a new StiPlacement for an Sti detector by transforming its center coordinates to the global coordinate system defined by transMatrix. The center of the Sti detector can be placed at arbitrary localCenter in the local coordinate system.
By default the normal vector is collinear with the "thickness" of the Sti detector, i.e. normal = {x, y, z} = {0, 1, 0}. But it can be arbitrary redefined to, say, {1, 0, 0} in order to swap the Sti detector's thickness and width. It is assumed that the normal vector starts from the origin.
Definition at line 43 of file StiPlacement.cxx.