]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MFT/AliGenParamPionsKaons.h
In DAs:
[u/mrichter/AliRoot.git] / MFT / AliGenParamPionsKaons.h
1 #ifndef AliGenParamPionsKaons_H
2 #define AliGenParamPionsKaons_H
3
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice                               */
6
7 //====================================================================================================================================================
8 //
9 //      Parametric generator of primary pions and kaons
10 //
11 //      Contact author: antonio.uras@cern.ch
12 //
13 //====================================================================================================================================================
14
15 #include "AliGenerator.h"
16 #include "TH1D.h"
17 #include "TH2D.h"
18
19 class AliGenParamPionsKaons : public AliGenerator {
20
21 public:
22   
23   AliGenParamPionsKaons();
24   AliGenParamPionsKaons(Int_t nPart, Char_t *inputFile);
25
26   virtual ~AliGenParamPionsKaons() {}
27   virtual void Generate();
28   virtual void Init();
29   virtual void SetPionOnly() { fGeneratePion=kTRUE; fGenerateKaon=kFALSE; }
30   virtual void SetKaonOnly() { fGeneratePion=kFALSE; fGenerateKaon=kTRUE; }
31   virtual void LoadInputHistos(Char_t *inputFile);
32
33 private:
34
35   AliGenParamPionsKaons(const AliGenParamPionsKaons&);
36   AliGenParamPionsKaons &operator=(const AliGenParamPionsKaons&);
37
38 protected:
39   
40   Bool_t fGeneratePion;
41   Bool_t fGenerateKaon;
42
43   TH2D *fPtVsRapidityPrimaryPosPions,  *fPtVsRapidityPrimaryNegPions;
44   TH2D *fPtVsRapidityPrimaryPosKaons,  *fPtVsRapidityPrimaryNegKaons;
45
46   TH1D *fHistPdgCode;
47
48   ClassDef(AliGenParamPionsKaons, 1)
49
50 };
51
52 //====================================================================================================================================================
53
54 #endif
55
56