]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliLego.h
1257505b1696ffd74f44cebeaa0d501a7a344a2f
[u/mrichter/AliRoot.git] / STEER / AliLego.h
1 #ifndef ALILEGO_H
2 #define ALILEGO_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 <TH2.h>
17
18 class AliLegoGenerator;
19
20 class AliLego : public TNamed  {
21
22 public:
23   AliLego();
24   AliLego(const char *title, Int_t ntheta,Float_t themin,
25           Float_t themax, Int_t nphi, Float_t phimin,
26           Float_t phimax,Float_t rmin,Float_t rmax,Float_t zmax);
27   AliLego(const AliLego &lego) {lego.Copy(*this);}
28   virtual ~AliLego();
29   void  Copy(AliLego &lego) const;
30   virtual void  StepManager();
31   virtual void  BeginEvent();
32   virtual void  FinishEvent();
33   virtual void  FinishRun();
34   virtual AliLego &operator=(const AliLego &lego) 
35   {lego.Copy(*this);return(*this);}
36   
37 private:
38   AliLegoGenerator *fGener;     //Lego generator
39    Float_t    fTotRadl;         //Total Radiation length
40    Float_t    fTotAbso;         //Total absorption length
41    Float_t    fTotGcm2;         //Total G/CM2 traversed
42    TH2F      *fHistRadl;        //Radiation length map 
43    TH2F      *fHistAbso;        //Interaction length map
44    TH2F      *fHistGcm2;        //g/cm2 length map
45    TH2F      *fHistReta;        //Radiation length map as a function of eta
46    
47   ClassDef(AliLego,1) //Utility class to compute and draw Radiation Length Map
48
49 };
50
51
52 #endif