77 const Int_t maxbuf = 155;
79 for (Int_t i = 0; i <
nPoints; i++) {
80 pFile->getline(buf, maxbuf);
81 sscanf(buf,
"%lf", &x);
91 for (Int_t i = 0; i < 3; i++) {
94 param->AddAt(v(0), i);
97 param->AddAt(v(0), 3);
100 param->AddAt(v(0), 4);
112 for (Int_t i = 0; i <
nPoints; i++) {
114 sprintf(buf,
"%9.3f\n", v(0));
115 pFile->write(buf, strlen(buf));
123 for (Int_t i = 0; i <
nPoints; i++) {
125 printf(
"%9.3f\n", v(0));
133 Double_t t[3] = {0., 0., 0.};
void posInMother(const FairGeoTransform &, const FairGeoTransform &)
void printPoints(FairGeoVolume *volu)
void setPoint(const Int_t, const Double_t, const Double_t, const Double_t)
Int_t readPoints(std::fstream *pFile, FairGeoVolume *volu)
FairGeoTransform * center
ClassImp(FairEventBuilder)
TArrayD * calcVoluParam(FairGeoVolume *)
void createPoints(const Int_t)
void calcVoluPosition(FairGeoVolume *, const FairGeoTransform &, const FairGeoTransform &)
FairGeoVector * getPoint(const Int_t n)
FairGeoTransform * position
Bool_t writePoints(std::fstream *, FairGeoVolume *)