76 const Int_t maxbuf = 155;
78 pFile->getline(buf, maxbuf);
80 sscanf(buf,
"%i", &n);
88 volu->
setPoint(0, static_cast<Double_t>(n), 0.0, 0.0);
89 for (Int_t i = 1; i <
nPoints; i++) {
90 pFile->getline(buf, maxbuf);
91 sscanf(buf,
"%lf%lf%lf", &x, &y, &z);
107 sprintf(buf,
"%9.3f%10.3f%10.3f\n", v(0), v(1), v(2));
109 sprintf(buf,
"%3i\n", static_cast<Int_t>(v(0)));
111 pFile->write(buf, strlen(buf));
122 printf(
"%9.3f%10.3f%10.3f\n", v(0), v(1), v(2));
124 printf(
"%3i\n", static_cast<Int_t>(v(0)));
144 param->AddAt(v1(0), k++);
145 param->AddAt(v1(1), k++);
146 param->AddAt(v1(2), k++);
148 for (Int_t i = 2; i <
nPoints; i++) {
150 param->AddAt(v(0) / fac, k++);
151 param->AddAt(v(1) / fac, k++);
152 param->AddAt(v(2) / fac, k++);
void posInMother(const FairGeoTransform &, const FairGeoTransform &)
void setPoint(const Int_t, const Double_t, const Double_t, const Double_t)
FairGeoTransform * center
ClassImp(FairEventBuilder)
void printPoints(FairGeoVolume *volu)
Bool_t writePoints(std::fstream *, FairGeoVolume *)
Int_t readPoints(std::fstream *, FairGeoVolume *)
void calcVoluPosition(FairGeoVolume *, const FairGeoTransform &, const FairGeoTransform &)
void createPoints(const Int_t)
FairGeoVector * getPoint(const Int_t n)
FairGeoTransform * position
TArrayD * calcVoluParam(FairGeoVolume *)