44 #include <TMathBase.h>
93 const Int_t maxbuf = 155;
95 for (Int_t i = 0; i <
nPoints; i++) {
96 pFile->getline(buf, maxbuf);
97 if (i == 0 || i == 2) {
98 sscanf(buf,
"%lf%lf%lf", &x, &y, &z);
101 sscanf(buf,
"%lf%lf", &x, &y);
115 for (Int_t i = 0; i <
nPoints; i++) {
117 if (i == 0 || i == 2) {
118 sprintf(buf,
"%9.3f%10.3f%10.3f\n", v(0), v(1), v(2));
120 sprintf(buf,
"%9.3f%10.3f\n", v(0), v(1));
122 pFile->write(buf, strlen(buf));
130 for (Int_t i = 0; i <
nPoints; i++) {
132 if (i == 0 || i == 2) {
133 printf(
"%9.3f%10.3f%10.3f\n", v(0), v(1), v(2));
135 printf(
"%9.3f%10.3f\n", v(0), v(1));
145 param->AddAt(TMath::Abs(v(2)) / fac / 2., 0);
147 param->AddAt(v1(0) / fac, 1);
148 param->AddAt(v1(1) / fac, 2);
150 param->AddAt(v3(0) / fac, 3);
151 param->AddAt(v3(1) / fac, 4);
153 param->AddAt(v4(0), 5);
154 param->AddAt(v4(1), 6);
164 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)
void printPoints(FairGeoVolume *volu)
Bool_t writePoints(std::fstream *, FairGeoVolume *)
FairGeoTransform * center
ClassImp(FairEventBuilder)
void calcVoluPosition(FairGeoVolume *, const FairGeoTransform &, const FairGeoTransform &)
TArrayD * calcVoluParam(FairGeoVolume *)
Int_t readPoints(std::fstream *, FairGeoVolume *)
void createPoints(const Int_t)
FairGeoVector * getPoint(const Int_t n)
FairGeoTransform * position