public final class Transformations extends Object
Modifier and Type | Field and Description |
---|---|
static Logger |
LOGGER |
private double[] |
rotation |
private GVector |
transVec |
private GVector |
vecBot |
private GVector |
vecTop |
Constructor and Description |
---|
Transformations(double[] trans,
double[] rot)
Create a new
Transformations object. |
Modifier and Type | Method and Description |
---|---|
Geant4Position |
transformToGeant4(EcalCrystalPosition position,
EcalChannel channel)
perform rotation and translation operation for a single crystal
|
private GVector |
transformVector(GVector vec,
GVector coordOrigin) |
public static Logger LOGGER
private GVector transVec
private double[] rotation
private final GVector vecTop
private final GVector vecBot
public Transformations(double[] trans, double[] rot)
Transformations
object.trans
- translation in space as an array containing [x,y,z] coordinatesrot
- rotation in space as an array with angles [alpha, beta, gamma] or [rx, ry, rz]public Geant4Position transformToGeant4(EcalCrystalPosition position, EcalChannel channel)
position
- crystal positionchannel
- crystal channelCopyright © 2019. All rights reserved.