41 #include <TMathBase.h>
90 const Int_t maxbuf = 155;
92 for (Int_t i = 0; i <
nPoints; i++) {
93 pFile->getline(buf, maxbuf);
94 sscanf(buf,
"%lf%lf%lf", &x, &y, &z);
97 pFile->getline(buf, maxbuf);
98 sscanf(buf,
"%lf%lf", &x, &y);
111 for (Int_t i = 0; i <
nPoints; i++) {
113 if (i == 0 || i == 2) {
114 sprintf(buf,
"%9.3f%10.3f%10.3f\n", v(0), v(1), v(2));
116 sprintf(buf,
"%9.3f%10.3f\n", v(0), v(1));
118 pFile->write(buf, strlen(buf));
126 for (Int_t i = 0; i <
nPoints; i++) {
128 if (i == 0 || i == 2) {
129 printf(
"%9.3f%10.3f%10.3f\n", v(0), v(1), v(2));
131 printf(
"%9.3f%10.3f\n", v(0), v(1));
141 param->AddAt(TMath::Abs(v(2)) / fac / 2., 0);
143 param->AddAt(v1(0) / fac, 1);
144 param->AddAt(v1(1) / fac, 2);
146 param->AddAt(v3(0) / fac, 3);
147 param->AddAt(v3(1) / fac, 4);
157 Double_t t[3] = {0., 0., 0.};
void posInMother(const FairGeoTransform &, const FairGeoTransform &)
void calcVoluPosition(FairGeoVolume *, const FairGeoTransform &, const FairGeoTransform &)
void setPoint(const Int_t, const Double_t, const Double_t, const Double_t)
void printPoints(FairGeoVolume *volu)
FairGeoTransform * center
ClassImp(FairEventBuilder)
Int_t readPoints(std::fstream *, FairGeoVolume *)
Bool_t writePoints(std::fstream *, FairGeoVolume *)
void createPoints(const Int_t)
FairGeoVector * getPoint(const Int_t n)
TArrayD * calcVoluParam(FairGeoVolume *)
FairGeoTransform * position