]>
Commit | Line | Data |
---|---|---|
fe4da5cc | 1 | #ifndef ALILego_H |
2 | #define ALILego_H | |
3da30618 | 3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* $Id$ */ | |
7 | ||
fe4da5cc | 8 | /////////////////////////////////////////////////////////////////////////////// |
9 | // // | |
10 | // // | |
11 | // Utility class to compute and draw Radiation Length Map // | |
12 | // // | |
13 | // // | |
14 | /////////////////////////////////////////////////////////////////////////////// | |
15 | ||
16 | #include <TH2.h> | |
17 | ||
18 | class AliLego : public TNamed { | |
19 | ||
20 | private: | |
21 | Float_t fThetaMin; //Minimum generation theta | |
22 | Float_t fThetaMax; //Maximum generation theta | |
23 | Float_t fPhiMin; //Minimum generation phi | |
24 | Float_t fPhiMax; //Maximum generation phi | |
25 | Float_t fRadMin; //Generation radius | |
26 | Float_t fRadMax; //Maximum tracking radius | |
27 | Float_t fZMax; //Maximum tracking Z | |
28 | Int_t fNtheta; //Number of bins in Theta | |
29 | Int_t fNphi; //Number of bins in Phi | |
30 | Int_t fThetaBin; //Current theta bin | |
31 | Int_t fPhiBin; //Current phi bin | |
32 | Float_t fCurTheta; //Current theta of track | |
33 | Float_t fCurPhi; //Current phi of track | |
34 | Float_t fTotRadl; //Total Radiation length | |
35 | Float_t fTotAbso; //Total absorption length | |
36 | Float_t fTotGcm2; //Total G/CM2 traversed | |
37 | TH2F *fHistRadl; //Radiation length map | |
38 | TH2F *fHistAbso; //Interaction length map | |
39 | TH2F *fHistGcm2; //g/cm2 length map | |
40 | TH2F *fHistReta; //Radiation length map as a function of eta | |
41 | ||
42 | public: | |
43 | AliLego(); | |
44 | AliLego(const char *name, const char *title); | |
45 | virtual ~AliLego(); | |
46 | virtual void GenerateKinematics(); | |
47 | virtual void Init(Int_t ntheta,Float_t themin,Float_t themax, Int_t nphi, Float_t phimin, | |
48 | Float_t phimax,Float_t rmin,Float_t rmax,Float_t zmax); | |
49 | Float_t PropagateCylinder(Float_t *x, Float_t *v, Float_t r, Float_t z); | |
50 | virtual void Run(); | |
51 | virtual void StepManager(); | |
52 | ||
53 | ClassDef(AliLego,1) //Utility class to compute and draw Radiation Length Map | |
54 | ||
55 | }; | |
56 | ||
57 | #endif | |
58 |