Add possibility to choose the lego generator (of type AliGeneratorLego or derived...
[u/mrichter/AliRoot.git] / STEER / AliLego.h
CommitLineData
aee8290b 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
94de3818 16#include "TNamed.h"
17class TH2F;
fe4da5cc 18
b13db077 19class AliLegoGenerator;
20
fe4da5cc 21class AliLego : public TNamed {
22
fe4da5cc 23public:
24 AliLego();
b13db077 25 AliLego(const char *title, Int_t ntheta,Float_t themin,
26 Float_t themax, Int_t nphi, Float_t phimin,
27 Float_t phimax,Float_t rmin,Float_t rmax,Float_t zmax);
8918e700 28 AliLego(const AliLego &lego) {lego.Copy(*this);}
fe4da5cc 29 virtual ~AliLego();
ef42d733 30 void Copy(AliLego &lego) const;
fe4da5cc 31 virtual void StepManager();
dffd31ef 32 virtual void BeginEvent();
33 virtual void FinishEvent();
34 virtual void FinishRun();
8918e700 35 virtual AliLego &operator=(const AliLego &lego)
36 {lego.Copy(*this);return(*this);}
fe4da5cc 37
8918e700 38private:
39 AliLegoGenerator *fGener; //Lego generator
40 Float_t fTotRadl; //Total Radiation length
41 Float_t fTotAbso; //Total absorption length
42 Float_t fTotGcm2; //Total G/CM2 traversed
43 TH2F *fHistRadl; //Radiation length map
44 TH2F *fHistAbso; //Interaction length map
45 TH2F *fHistGcm2; //g/cm2 length map
46 TH2F *fHistReta; //Radiation length map as a function of eta
47
fe4da5cc 48 ClassDef(AliLego,1) //Utility class to compute and draw Radiation Length Map
49
50};
51
b13db077 52
fe4da5cc 53#endif