]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliLegoGenerator.h
Coding convention correction and warning removal
[u/mrichter/AliRoot.git] / STEER / AliLegoGenerator.h
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                               */
5
6 /* $Id$ */
7
8 ///////////////////////////////////////////////////////////////////////////////
9 //                                                                           //
10 //                                                                           //
11 //    Utility class to compute and draw Radiation Length Map                 //
12 //                                                                           //
13 //                                                                           //
14 ///////////////////////////////////////////////////////////////////////////////
15
16 #include "AliGenerator.h"
17
18 class AliLegoGenerator : public AliGenerator
19 {
20
21 public:
22   AliLegoGenerator() {}
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);
26   void    Generate();
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);
36 private:
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
46
47   ClassDef(AliLegoGenerator,1) //Lego generator
48 };
49
50 #endif
51