41 #include <TMathBase.h>
84 const Int_t maxbuf = 155;
86 for (Int_t i = 0; i <
nPoints; i++) {
87 pFile->getline(buf, maxbuf);
88 sscanf(buf,
"%lf%lf%lf", &x, &y, &z);
91 pFile->getline(buf, maxbuf);
92 sscanf(buf,
"%lf%lf", &x, &y);
105 for (Int_t i = 0; i <
nPoints; i++) {
107 if (i == 0 || i == 2) {
108 sprintf(buf,
"%9.3f%10.3f%10.3f\n", v(0), v(1), v(2));
110 sprintf(buf,
"%9.3f%10.3f\n", v(0), v(1));
112 pFile->write(buf, strlen(buf));
120 for (Int_t i = 0; i <
nPoints; i++) {
122 if (i == 0 || i == 2) {
123 printf(
"%9.3f%10.3f%10.3f\n", v(0), v(1), v(2));
125 printf(
"%9.3f%10.3f\n", v(0), v(1));
135 param->AddAt(v1(0) / fac, 0);
136 param->AddAt(v1(1) / fac, 1);
138 param->AddAt(TMath::Abs(v(2)) / fac / 2., 2);
140 param->AddAt(v3(0), 3);
141 param->AddAt(v3(1), 4);
151 Double_t t[3] = {0., 0., 0.};
void posInMother(const FairGeoTransform &, const FairGeoTransform &)
void calcVoluPosition(FairGeoVolume *, const FairGeoTransform &, const FairGeoTransform &)
void printPoints(FairGeoVolume *volu)
void setPoint(const Int_t, const Double_t, const Double_t, const Double_t)
TArrayD * calcVoluParam(FairGeoVolume *)
FairGeoTransform * center
ClassImp(FairEventBuilder)
Bool_t writePoints(std::fstream *, FairGeoVolume *)
void createPoints(const Int_t)
FairGeoVector * getPoint(const Int_t n)
Int_t readPoints(std::fstream *, FairGeoVolume *)
FairGeoTransform * position