1 #ifndef ALILEGOGENERATOR_H
2 #define ALILEGOGENERATOR_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
8 ///////////////////////////////////////////////////////////////////////////////
11 // Utility class to compute and draw Radiation Length Map //
14 ///////////////////////////////////////////////////////////////////////////////
16 #include "AliGenerator.h"
18 class AliLegoGenerator : public AliGenerator
23 AliLegoGenerator(Int_t ntheta, Float_t themin, Float_t themax,
24 Int_t nphi, Float_t phimin, Float_t phimax,
25 Float_t rmin, Float_t rmax, Float_t zmax);
27 Float_t CurTheta() const {return fCurTheta;}
28 Int_t ThetaBin() const {return fThetaBin;}
29 Float_t CurPhi() const {return fCurPhi;}
30 Float_t ZMax() const {return fZMax;}
31 Float_t RadMax() const {return fRadMax;}
32 Int_t PhiBin() const {return fPhiBin;}
33 Int_t Nphi() const {return fNphi;}
34 Int_t Ntheta() const {return fNtheta;}
35 Float_t PropagateCylinder(Float_t *x, Float_t *v, Float_t r, Float_t z);
37 Float_t fRadMin; //Generation radius
38 Float_t fRadMax; //Maximum tracking radius
39 Float_t fZMax; //Maximum tracking Z
40 Int_t fNtheta; //Number of bins in Theta
41 Int_t fNphi; //Number of bins in Phi
42 Int_t fThetaBin; //Current theta bin
43 Int_t fPhiBin; //Current phi bin
44 Float_t fCurTheta; //Current theta of track
45 Float_t fCurPhi; //Current phi of track
47 ClassDef(AliLegoGenerator,1) //Lego generator