BLCoordinateTransform.hh File Reference

#include <stdio.h>
#include "G4ThreeVector.hh"
#include "G4RotationMatrix.hh"

Go to the source code of this file.

Classes

class  BLCoordinateTransform
 class BLCoordinateTransform defines a linear coordinate transform. More...

Defines

#define DUMPROTATION(rot, str)


Define Documentation

#define DUMPROTATION ( rot,
str   ) 

Value:

{ G4ThreeVector x(1.0,0.0,0.0), z(0.0,0.0,1.0);                         \
  G4ThreeVector rx = rot * x;                                           \
  G4ThreeVector rz = rot * z;                                           \
  printf("%s: %.3f,%.3f,%.3f / %.3f,%.3f,%.3f / %.3f,%.3f,%.3f\n",      \
    str,rot.xx(),rot.xy(),rot.xz(),rot.yx(),rot.yy(),rot.yz(),          \
    rot.zx(),rot.zy(),rot.zz());                                        \
  printf("        rot*x=%.3f,%.3f,%.3f   rot*z = %.3f,%.3f,%.3f\n",     \
    rx[0],rx[1],rx[2],rz[0],rz[1],rz[2]);                               \
}

g4beamline