9 #include <ecl/modules/eclDumpGeometry/ECLDumpGeometryModule.h>
10 #include <ecl/geometry/ECLGeometryPar.h>
28 setDescription(
"Print out location of every crystal");
29 setPropertyFlags(c_ParallelProcessingCertified);
45 std::printf(
"\nLocation and direction of the axis of each ECL crystal\n");
46 std::printf(
"cellID x y z axisTheta axisPhi \n");
47 for (
int cellID = 1; cellID <= 8736; cellID++) {
50 std::printf(
"%6d %9.4f %9.4f %9.4f %9.6f %9.6f\n", cellID, pos.X(), pos.Y(), pos.Z(), dir.Theta(), dir.Phi());
Dump location and direction of all ECL crystals.
virtual void initialize() override
Register input and output data.
virtual void event() override
Event.
The Class for ECL Geometry Parameters.
static ECLGeometryPar * Instance()
Static method to get a reference to the ECLGeometryPar instance.
TVector3 GetCrystalVec(int cid)
The direction of crystal.
TVector3 GetCrystalPos(int cid)
The Position of crystal.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Abstract base class for different kinds of events.