38 #include <TMathBase.h>
87 const Int_t maxbuf = 155;
89 for (Int_t i = 0; i <
nPoints; i++) {
90 pFile->getline(buf, maxbuf);
92 sscanf(buf,
"%lf%lf%lf", &x, &y, &z);
95 sscanf(buf,
"%lf%lf", &x, &y);
109 for (Int_t i = 0; i <
nPoints; i++) {
112 sprintf(buf,
"%9.3f%10.3f%10.3f\n", v(0), v(1), v(2));
114 sprintf(buf,
"%9.3f%10.3f\n", v(0), v(1));
116 pFile->write(buf, strlen(buf));
124 for (Int_t i = 0; i <
nPoints; i++) {
127 printf(
"%9.3f%10.3f%10.3f\n", v(0), v(1), v(2));
129 printf(
"%9.3f%10.3f\n", v(0), v(1));
139 param->AddAt(v1(0) / fac, 0);
140 param->AddAt(v1(1) / fac, 1);
142 param->AddAt(TMath::Abs(v(2)) / fac / 2., 2);
152 Double_t t[3] = {0., 0., 0.};
void posInMother(const FairGeoTransform &, const FairGeoTransform &)
void setPoint(const Int_t, const Double_t, const Double_t, const Double_t)
TArrayD * calcVoluParam(FairGeoVolume *)
Bool_t writePoints(std::fstream *, FairGeoVolume *)
FairGeoTransform * center
ClassImp(FairEventBuilder)
void printPoints(FairGeoVolume *volu)
void createPoints(const Int_t)
FairGeoVector * getPoint(const Int_t n)
Int_t readPoints(std::fstream *, FairGeoVolume *)
FairGeoTransform * position
void calcVoluPosition(FairGeoVolume *, const FairGeoTransform &, const FairGeoTransform &)