1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
18 Revision 1.4.4.3 2000/06/26 07:39:42 kowal2
19 Changes to obey the coding rules
21 Revision 1.4.4.2 2000/06/25 08:38:41 kowal2
22 Splitted from AliTPCtracking
24 Revision 1.4.4.1 2000/06/14 16:48:24 kowal2
25 Parameter setting improved. Removed compiler warnings
27 Revision 1.4 2000/04/17 09:37:33 kowal2
28 removed obsolete AliTPCDigitsDisplay.C
30 Revision 1.3.8.2 2000/04/10 08:40:46 kowal2
32 Small changes by M. Ivanov, improvements of algorithms
34 Revision 1.3.8.1 2000/04/10 07:56:53 kowal2
35 Not used anymore - removed
37 Revision 1.3 1999/10/05 17:15:46 fca
38 Minor syntax for the Alpha OSF
40 Revision 1.2 1999/09/29 09:24:34 fca
41 Introduction of the Copyright and cvs Log
45 ///////////////////////////////////////////////////////////////////////////////
47 // Pad response function object in two dimesions //
48 // This class contains the basic functions for the //
49 // calculation of PRF according generic charge distribution //
50 // In Update function object calculate table of response function //
51 // in discrete x and y position //
52 // This table is used for interpolation od response function in any position //
53 // (function GetPRF) //
55 // Origin: Marian Ivanov, Uni. of Bratislava, ivanov@fmph.uniba.sk //
57 ///////////////////////////////////////////////////////////////////////////////
63 #include "AliTPCPRF2D.h"
72 #include "TPaveText.h"
76 extern TStyle * gStyle;
78 const Float_t AliTPCPRF2D::fgSQRT12=3.46;
79 const Int_t AliTPCPRF2D::fgNPRF = 100;
82 static Double_t funGauss2D(Double_t *x, Double_t * par)
84 //Gauss function -needde by the generic function object
85 return ( TMath::Exp(-(x[0]*x[0])/(2*par[0]*par[0]))*
86 TMath::Exp(-(x[1]*x[1])/(2*par[1]*par[1])));
90 static Double_t funCosh2D(Double_t *x, Double_t * par)
92 //Cosh function -needde by the generic function object
93 return ( 1/(TMath::CosH(3.14159*x[0]/(2*par[0]))*
94 TMath::CosH(3.14159*x[1]/(2*par[1]))));
97 static Double_t funGati2D(Double_t *x, Double_t * par)
99 //Gati function -needde by the generic function object
101 Float_t k3R=TMath::Sqrt(k3);
102 Float_t k2=(TMath::Pi()/2)*(1-k3R/2.);
103 Float_t k1=k2*k3R/(4*TMath::ATan(k3R));
104 Float_t l=x[0]/par[0];
105 Float_t tan2=TMath::TanH(k2*l);
107 Float_t res = k1*(1-tan2)/(1+k3*tan2);
108 //par[4] = is equal to k3Y
111 k2=(TMath::Pi()/2)*(1-k3R/2.);
112 k1=k2*k3R/(4*TMath::ATan(k3R));
114 tan2=TMath::TanH(k2*l);
116 res = res*k1*(1-tan2)/(1+k3*tan2);
120 ///////////////////////////////////////////////////////////////////////////
121 ///////////////////////////////////////////////////////////////////////////
123 ClassImp(AliTPCPRF2D)
125 AliTPCPRF2D::AliTPCPRF2D()
127 //default constructor for response function object
141 //chewron default values
143 SetChevron(0.2,0.0,1.0);
147 AliTPCPRF2D::AliTPCPRF2D(const AliTPCPRF2D &prf)
150 memcpy(this, &prf, sizeof(prf));
151 ffcharge = new Float_t[fNPRF*fNYdiv];
152 memcpy(ffcharge,prf.ffcharge, fNPRF*fNYdiv);
153 fGRF = new TF2(*(prf.fGRF));
156 AliTPCPRF2D & AliTPCPRF2D::operator = (const AliTPCPRF2D &prf)
159 if (ffcharge) delete ffcharge;
160 if (fGRF) delete fGRF;
161 memcpy(this, &prf, sizeof(prf));
162 ffcharge = new Float_t[fNPRF*fNYdiv];
163 memcpy(ffcharge,prf.ffcharge, fNPRF*fNYdiv);
164 fGRF = new TF2(*(prf.fGRF));
169 AliTPCPRF2D::~AliTPCPRF2D()
172 if (ffcharge!=0) delete [] ffcharge;
173 if (fGRF !=0 ) fGRF->Delete();
176 void AliTPCPRF2D::SetY(Float_t y1, Float_t y2, Int_t nYdiv)
179 //set virtual line position
180 //first and last line and number of lines
182 if (ffcharge!=0) delete [] ffcharge;
183 ffcharge = new Float_t[fNPRF*fNYdiv];
188 void AliTPCPRF2D::SetPad(Float_t width, Float_t height)
190 //set base chevron parameters
194 void AliTPCPRF2D::SetChevron(Float_t hstep,
198 //set shaping of chewron parameters
204 void AliTPCPRF2D::SetChParam(Float_t width, Float_t height,
205 Float_t hstep, Float_t shifty, Float_t fac)
207 SetPad(width,height);
208 SetChevron(hstep,shifty,fac);
212 Float_t AliTPCPRF2D::GetPRF(Float_t xin, Float_t yin, Bool_t inter)
214 //function which return pad response
215 //for the charge in distance xin
216 //return cubic aproximation of PRF or PRF at nearest virtual wire
217 if (ffcharge==0) return 0;
218 //transform position to "wire position"
219 Float_t y=fDYtoWire*(yin-fY1);
220 if (fNYdiv == 1) y=fY1;
221 //normaly it find nearest line charge
223 Int_t i=Int_t(0.5+y);
224 if (y<0) i=Int_t(-0.5+y);
225 if ((i<0) || (i>=fNYdiv) ) return 0;
226 fcharge = &(ffcharge[i*fNPRF]);
227 return GetPRFActiv(xin);
230 //make interpolation from more fore lines
232 if ((i<0) || (i>=fNYdiv) ) return 0;
238 fcharge =&(ffcharge[(i-1)*fNPRF]);
239 z0 = GetPRFActiv(xin);
241 fcharge =&(ffcharge[i*fNPRF]);
244 fcharge =&(ffcharge[(i+1)*fNPRF]);
245 z2 = GetPRFActiv(xin);
248 fcharge =&(ffcharge[(i+2)*fNPRF]);
249 z3 = GetPRFActiv(xin);
258 Float_t dy=y-Float_t(i);
259 Float_t res = a+b*dy+c*dy*dy+d*dy*dy*dy;
266 Float_t AliTPCPRF2D::GetPRFActiv(Float_t xin)
268 //GEt response function on given charege line
269 //return spline aproximaton
270 Float_t x = (xin*fDStepM1)+fNPRF/2;
273 if ( (i>0) && ((i+2)<fNPRF)) {
276 b = (fcharge[i+1]-fcharge[i-1])*0.5;
277 k = fcharge[i+1]-a-b;
278 l = (fcharge[i+2]-fcharge[i])*0.5-b;
281 Float_t dx=x-Float_t(i);
282 Float_t res = a+b*dx+c*dx*dx+d*dx*dx*dx;
289 Float_t AliTPCPRF2D::GetGRF(Float_t xin, Float_t yin)
291 //function which returnoriginal charge distribution
292 //this function is just normalised for fKnorm
294 return fkNorm*fGRF->Eval(xin,yin)/fInteg;
300 void AliTPCPRF2D::SetParam( TF2 * GRF, Float_t kNorm,
301 Float_t sigmaX, Float_t sigmaY)
303 //adjust parameters of the original charge distribution
304 //and pad size parameters
305 if (fGRF !=0 ) fGRF->Delete();
308 if (sigmaX ==0) sigmaX=(fWidth+fK*fHeightS)/fgSQRT12;
309 if (sigmaY ==0) sigmaY=(fWidth+fK*fHeightS)/fgSQRT12;
312 fDStep = TMath::Sqrt(sigmaX*sigmaX+fWidth*fWidth/6.)/10.;
313 sprintf(fType,"User");
317 void AliTPCPRF2D::SetGauss(Float_t sigmaX, Float_t sigmaY,
321 // set parameters for Gauss generic charge distribution
324 if (fGRF !=0 ) fGRF->Delete();
325 fGRF = new TF2("fun",funGauss2D,-5.,5.,-5.,5.,4);
329 funParam[3]=fHeightS;
332 fGRF->SetParameters(funParam);
333 fDStep = TMath::Sqrt(sigmaX*sigmaX+fWidth*fWidth/6.)/10.;
334 //by default I set the step as one tenth of sigma
335 sprintf(fType,"Gauss");
338 void AliTPCPRF2D::SetCosh(Float_t sigmaX, Float_t sigmaY,
341 // set parameters for Cosh generic charge distribution
344 if (fGRF !=0 ) fGRF->Delete();
345 fGRF = new TF2("fun", funCosh2D,-5.,5.,-5.,5.,4);
349 funParam[3]=fHeightS;
350 fGRF->SetParameters(funParam);
353 fDStep = TMath::Sqrt(sigmaX*sigmaX+fWidth*fWidth/6.)/10.;
354 //by default I set the step as one tenth of sigma
355 sprintf(fType,"Cosh");
358 void AliTPCPRF2D::SetGati(Float_t K3X, Float_t K3Y,
362 // set parameters for Gati generic charge distribution
365 if (fGRF !=0 ) fGRF->Delete();
366 fGRF = new TF2("fun", funGati2D,-5.,5.,-5.,5.,5);
369 fPadDistance=padDistance;
370 funParam[0]=padDistance;
373 funParam[3]=fHeightS;
375 fGRF->SetParameters(funParam);
376 fOrigSigmaX=padDistance;
377 fOrigSigmaY=padDistance;
378 fDStep = TMath::Sqrt(padDistance*padDistance+fWidth*fWidth/6.)/10.;
379 //by default I set the step as one tenth of sigma
380 sprintf(fType,"Gati");
385 void AliTPCPRF2D::Update()
388 //update fields with interpolated values for
391 if ( fGRF == 0 ) return;
392 //initialize interpolated values to 0
395 for (i =0; i<fNPRF*fNYdiv;i++) ffcharge[i] = 0;
396 //firstly calculate total integral of charge
398 ////////////////////////////////////////////////////////
399 //I'm waiting for normal integral
400 //in this moment only sum
401 Float_t x2= 4*fOrigSigmaX;
402 Float_t y2= 4*fOrigSigmaY;
403 Float_t dx = fOrigSigmaX/Float_t(fNdiv*6);
404 Float_t dy = fOrigSigmaY/Float_t(fNdiv*6);
405 Int_t nx = Int_t(0.5+x2/dx);
406 Int_t ny = Int_t(0.5+y2/dy);
410 for (ix=-nx;ix<=nx;ix++)
411 for ( iy=-ny;iy<=ny;iy++)
412 dInteg+=fGRF->Eval(Float_t(ix)*dx,Float_t(iy)*dy)*dx*dy;
413 /////////////////////////////////////////////////////
415 if ( fInteg == 0 ) fInteg = 1;
417 for (i=0; i<fNYdiv; i++){
418 if (fNYdiv == 1) fCurrentY = fY1;
420 fCurrentY = fY1+Double_t(i)*(fY2-fY1)/Double_t(fNYdiv-1);
421 fcharge = &(ffcharge[i*fNPRF]);
424 //calculate conversion coefitient to convert position to virtual wire
425 fDYtoWire=Float_t(fNYdiv-1)/(fY2-fY1);
432 void AliTPCPRF2D::Update1()
435 //update fields with interpolated values for
436 //PRF calculation for given charge line
438 Double_t x,dx,ddx,ddy,dddx,dddy;
439 Double_t cos = TMath::Cos(fChargeAngle);
440 Double_t sin = TMath::Sin(fChargeAngle);
442 //integrate charge over pad for different distance of pad
443 for (i =0; i<fNPRF;i++)
445 //x in cm fWidth in cm
447 Double_t xch = fDStep * (Double_t)(i-fNPRF/2);
451 for (Double_t y=-fHeightFull/2.-fShiftY; //loop over chevron steps
452 y<fHeightFull/2.;y+=fHeightS){
453 Double_t y2=TMath::Min((y+fHeightS),Double_t(fHeightFull/2.));
454 Double_t y1=TMath::Max((y),Double_t(-fHeightFull/2.));
458 x1 = (y2-y1)*fK-(fWidth+fK*fHeightS)/2.;
460 x1 =-(fWidth+fK*fHeightS)/2. ;
461 Double_t x2=x1+fWidth;
465 if ((x2-x1)*fNdiv<fOrigSigmaX) dx=(x2-x1);
467 dx= fOrigSigmaX/Double_t(fNdiv);
468 dx = (x2-x1)/Double_t(Int_t(3.5+(x2-x1)/dx));
471 if ((y2-y1)*fNdiv<fOrigSigmaY) dy=(y2-y1);
473 dy= fOrigSigmaY/Double_t(fNdiv);
474 dy = (y2-y1)/Double_t(Int_t(3.5+(y2-y1)/dy));
476 //integrate between x1 x2 and y1 y2
477 for (x=x1;x<x2+dx/2.;x+=dx)
478 for (Double_t y=y1;y<y2+dy/2.;y+=dy){
479 if ( (y>(fCurrentY-(4.0*fOrigSigmaY))) &&
480 (y<(fCurrentY+(4.0*fOrigSigmaY)))){
481 Double_t xt=x-k*fK*(y-y1);
482 if ((TMath::Abs(xch-xt)<4*fOrigSigmaX)){
484 ddx = xch-(xt+dx/2.);
485 ddy = fCurrentY-(y+dy/2.);
486 dddx = cos*ddx-sin*ddy;
487 dddy = sin*ddx+cos*ddy;
488 Double_t z0=fGRF->Eval(dddx,dddy); //middle point
490 ddx = xch-(xt+dx/2.);
492 dddx = cos*ddx-sin*ddy;
493 dddy = sin*ddx+cos*ddy;
494 Double_t z1=fGRF->Eval(dddx,dddy); //point down
496 ddx = xch-(xt+dx/2.);
497 ddy = fCurrentY-(y+dy);
498 dddx = cos*ddx-sin*ddy;
499 dddy = sin*ddx+cos*ddy;
500 Double_t z3=fGRF->Eval(dddx,dddy); //point up
503 ddy = fCurrentY-(y+dy/2.);
504 dddx = cos*ddx-sin*ddy;
505 dddy = sin*ddx+cos*ddy;
506 Double_t z2=fGRF->Eval(dddx,dddy); //point left
509 ddy = fCurrentY-(y+dy/2.);
510 dddx = cos*ddx-sin*ddy;
511 dddy = sin*ddx+cos*ddy;
512 Double_t z4=fGRF->Eval(dddx,dddy); //point right
520 Double_t c= (z3+z1-2*z0)/2.;
521 Double_t d= (z2+z4-2*z0)/2.;
522 Double_t z= (z0+c/12.+d/12.);
524 if (z>0.) fcharge[i]+=fkNorm*z*dx*dy/fInteg;
535 void AliTPCPRF2D::UpdateSigma()
538 //calulate effective sigma X and sigma y of PRF
548 for (i=-1; i<=fNYdiv; i++){
549 if (fNYdiv == 1) y = fY1;
551 y = fY1+Float_t(i)*(fY2-fY1)/Float_t(fNYdiv-1);
552 for (x =-fNPRF*fDStep; x<fNPRF*fDStep;x+=fDStep)
554 //x in cm fWidth in cm
555 Float_t weight = GetPRF(x,y);
566 fSigmaX = TMath::Sqrt(fSigmaX/sum-fMeanX*fMeanX);
567 fSigmaY = TMath::Sqrt(fSigmaY/sum-fMeanY*fMeanY);
573 void AliTPCPRF2D::Streamer(TBuffer &R__b)
575 // Stream an object of class AliTPCPRF2D
577 if (R__b.IsReading()) {
578 Version_t R__v = R__b.ReadVersion(); if (R__v) { }
579 TObject::Streamer(R__b);
580 //read chewron parameters
590 //read charge parameters
591 R__b.ReadFastArray(fType,5);
597 R__b >> fPadDistance;
604 if (strncmp(fType,"User",3)==0){
608 if (strncmp(fType,"Gauss",3)==0)
609 fGRF = new TF2("fun",funGauss2D,-5.,5.,-5.,5.,4);
610 if (strncmp(fType,"Cosh",3)==0)
611 fGRF = new TF2("fun",funCosh2D,-5.,5.,-5.,5.,4);
612 if (strncmp(fType,"Gati",3)==0)
613 fGRF = new TF2("fun",funGati2D,-5.,5.,-5.,5.,5);
614 //read interpolation parameters
620 if (ffcharge!=0) delete [] ffcharge;
621 ffcharge = new Float_t[fNPRF*fNYdiv];
622 R__b.ReadFastArray(ffcharge,fNPRF*fNYdiv);
623 R__b.ReadFastArray(funParam,5);
624 if (fGRF!=0) fGRF->SetParameters(funParam);
625 //calculate conversion coefitient to convert position to virtual wire
626 fDYtoWire=Float_t(fNYdiv-1)/(fY2-fY1);
629 R__b.WriteVersion(AliTPCPRF2D::IsA());
630 TObject::Streamer(R__b);
631 //write chewron parameters
641 //write charge parameters
642 R__b.WriteFastArray(fType,5);
648 R__b << fPadDistance;
651 if (strncmp(fType,"User",3)==0) R__b <<fGRF;
652 //write interpolation parameters
658 R__b.WriteFastArray(ffcharge,fNPRF*fNYdiv);
659 R__b.WriteFastArray(funParam,5);
666 void AliTPCPRF2D::DrawX(Float_t x1 ,Float_t x2,Float_t y, Bool_t inter)
668 //draw pad response function at interval <x1,x2> at given y position
669 if (fGRF==0) return ;
672 TCanvas * c1 = new TCanvas("canPRF","Pad response function",700,900);
674 TPad * pad1 = new TPad("pad1PRF","",0.05,0.61,0.95,0.97,21);
676 TPad * pad2 = new TPad("pad2PRF","",0.05,0.22,0.95,0.60,21);
679 gStyle->SetOptFit(1);
680 gStyle->SetOptStat(0);
681 sprintf(s,"PRF response function for chevron pad");
682 TH1F * hPRFc = new TH1F("hPRFc",s,kN+1,x1,x2);
686 for (Float_t i = 0;i<kN+1;i++)
688 x+=(x2-x1)/Float_t(kN);
689 y1 = GetPRF(x,y,inter);
694 fGRF->SetRange(x1,x1,x2,x2);
698 // hPRFo->Fit("gaus");
699 gStyle->SetOptStat(1);
703 TPaveText * comment = new TPaveText(0.05,0.02,0.95,0.20,"NDC");
704 comment->SetTextAlign(12);
705 comment->SetFillColor(42);
706 TText *title = comment->AddText("Chevron pad parameters:");
707 title->SetTextSize(0.03);
708 sprintf(s,"Full height of pad: %2.2f",fHeightFull);
710 sprintf(s,"Height of one chevron unit h: %2.2f cm",2*fHeightS);
712 sprintf(s,"Width of one chevron unit w: %2.2f cm",fWidth);
714 sprintf(s,"Overlap factor: %2.2f",fK*fHeightS/fWidth);
716 sprintf(s,"Y position: %2.2f ",y);
718 sprintf(s,"Sigma x of original distribution: %2.2f ",fOrigSigmaX);
720 sprintf(s,"Sigma y of original distribution: %2.2f ",fOrigSigmaY);
722 sprintf(s,"Type of original distribution: %s ",fType);
729 void AliTPCPRF2D::DrawPRF(Float_t x1 ,Float_t x2,Float_t y1, Float_t y2,
730 Bool_t inter, Int_t Nx, Int_t Ny)
732 //Draw PRF in range x1,x2,y1,y2
733 //with x binning Nx and y bining Ny
735 if (fGRF==0) return ;
736 TCanvas * c1 = new TCanvas("canPRF","Pad response function",700,900);
738 TPad * pad1 = new TPad("pad1PRF","",0.05,0.61,0.95,0.97,21);
740 TPad * pad2 = new TPad("pad2PRF","",0.05,0.22,0.95,0.60,21);
745 gStyle->SetOptFit(1);
746 gStyle->SetOptStat(0);
747 sprintf(s,"PRF response function for chevron pad");
748 TH2F * hPRFc = new TH2F("hPRFc",s,Nx+1,x1,x2,Ny+1,y1,y2);
749 Float_t dx=(x2-x1)/Float_t(Nx);
750 Float_t dy=(y2-y1)/Float_t(Ny) ;
753 for ( x = x1;x<=x2;x+=dx){
754 for(y = y1;y<=y2;y+=dy)
756 z = GetPRF(x,y,inter);
761 fGRF->SetRange(x1,y1,x2,y2);
765 // hPRFo->Fit("gaus");
766 gStyle->SetOptStat(1);
768 hPRFc->Draw("lego2");
770 TPaveText * comment = new TPaveText(0.05,0.02,0.95,0.20,"NDC");
771 comment->SetTextAlign(12);
772 comment->SetFillColor(42);
773 TText *title = comment->AddText("Chevron pad parameters:");
774 title->SetTextSize(0.03);
775 sprintf(s,"Full height of pad: %2.2f",fHeightFull);
777 sprintf(s,"Height of one chevron unit h: %2.2f cm",2*fHeightS);
779 sprintf(s,"Width of one chevron unit w: %2.2f cm",fWidth);
781 sprintf(s,"Overlap factor: %2.2f",fK*fHeightS/fWidth);
783 sprintf(s,"Sigma x of original distribution: %2.2f ",fOrigSigmaX);
785 sprintf(s,"Sigma y of original distribution: %2.2f ",fOrigSigmaY);
787 sprintf(s,"Type of original distribution: %s ",fType);
792 void AliTPCPRF2D::DrawDist(Float_t x1 ,Float_t x2,Float_t y1, Float_t y2,
793 Bool_t inter, Int_t Nx, Int_t Ny, Float_t thr)
795 //Draw COG (Centrum of Gravity) distortion for PRF in range x1,x2,y1,y2
796 //with x binning Nx and y bining Ny
797 //thr is the threshold for COG metheod
799 const Float_t kminth=0.00001;
800 if (thr<kminth) thr=kminth;
802 if (fGRF==0) return ;
803 TCanvas * c1 = new TCanvas("padDistortion","COG distortion",700,900);
805 TPad * pad1 = new TPad("CHARGE","",0.05,0.61,0.95,0.97,21);
807 TPad * pad2 = new TPad("dist","",0.05,0.22,0.95,0.60,21);
812 gStyle->SetOptFit(1);
813 gStyle->SetOptStat(0);
814 sprintf(s,"COG distortion (threshold=%2.2f)",thr);
815 TH2F * hPRFDist = new TH2F("hDistortion",s,Nx+1,x1,x2,Ny+1,y1,y2);
816 Float_t dx=(x2-x1)/Float_t(Nx);
817 Float_t dy=(y2-y1)/Float_t(Ny) ;
820 for ( x = x1;x<(x2+3.1*dx);x+=dx)
821 for(y = y1;y<(y2+3.1*dx);y+=dy)
825 for (Int_t i=-3;i<=3;i++)
826 // for (Float_t padx=-fWidth;padx<(fWidth*1.1);padx+=fWidth)
828 Float_t padx=Float_t(i)*fWidth;
829 z = GetPRF(x-padx,y,inter);
837 ddx = (x-(sumx/sum));
840 if (TMath::Abs(ddx)<10) hPRFDist->Fill(x,y,ddx);
843 fGRF->SetRange(x1,y1,x2,y2);
847 // hPRFo->Fit("gaus");
848 // gStyle->SetOptStat(1);
850 hPRFDist->Draw("lego2");
853 TPaveText * comment = new TPaveText(0.05,0.02,0.95,0.20,"NDC");
854 comment->SetTextAlign(12);
855 comment->SetFillColor(42);
856 // TText *title = comment->AddText("Distortion of COG method");
857 // title->SetTextSize(0.03);
858 TText * title = comment->AddText("Chevron pad parameters:");
859 title->SetTextSize(0.03);
860 sprintf(s,"Full height of pad: %2.2f",fHeightFull);
862 sprintf(s,"Height of one chevron unit h: %2.2f cm",2*fHeightS);
864 sprintf(s,"Width of one chevron unit w: %2.2f cm",fWidth);
866 sprintf(s,"Overlap factor: %2.2f",fK*fHeightS/fWidth);
868 sprintf(s,"Sigma x of original distribution: %2.2f ",fOrigSigmaX);
870 sprintf(s,"Sigma y of original distribution: %2.2f ",fOrigSigmaY);
872 sprintf(s,"Type of original distribution: %s ",fType);