]> git.uio.no Git - u/mrichter/AliRoot.git/blob - JETAN/AliJFMixEvent.h
Corrected media numbers (R.Grosso)
[u/mrichter/AliRoot.git] / JETAN / AliJFMixEvent.h
1 #ifndef ALIJFMIXEVENTH
2 #define ALIJFMIXEVENTH
3
4 #include <TMath.h>
5
6 class TTree;
7 class TBranch;
8 class TBranch;
9 class TFile;
10 class TClonesArray;
11
12 class AliJFMixEvent 
13 {
14  public:
15   AliJFMixEvent(Char_t *file1, Char_t *file2=0);
16   AliJFMixEvent(Char_t *files1, Char_t *tname1, Char_t *files2, Char_t *tname2);
17   virtual ~AliJFMixEvent();
18
19   void Init(Char_t *file1, Char_t *file2=0);
20   void InitChains(Char_t *files1, Char_t *tname1, Char_t *files2=0, Char_t *tname2=0);
21   void Clean();
22
23   Int_t CreateNextMixedEvent();
24   Int_t CreateMixedEvent(Int_t i=0,Int_t j=0);
25
26   TClonesArray* const GetMixedParticles() {return fMixedParticles;}
27   TClonesArray* const GetParticles () {return fParticles1;}
28   TClonesArray* const GetParticles2() {return fParticles2;}
29
30   Int_t const GetCurNEvent1() const {return fEvent1;}
31   Int_t const GetCurNEvent2() const {return fEvent2;}
32   Int_t const GetMaxNEvent1() const {return fMaxEvent1;}
33   Int_t const GetMaxNEvent2() const {return fMaxEvent2;}
34   Int_t const GetStatus()     const {return fStatus;}
35
36   void Debug();
37   void SetMarkPythia(Bool_t b){fMarkPythia=b;}
38
39  protected:
40   Int_t MixEvent();
41
42   Int_t fStatus; //positive if initialized
43
44   Int_t fEvent1;
45   Int_t fEvent2;
46   Int_t fMaxEvent1;
47   Int_t fMaxEvent2;
48
49   Bool_t fMarkPythia; //true if pythia particles 
50                       //will be marked
51
52   TTree *fTree1; //!
53   TTree *fTree2; //!
54
55   TFile *fFile1; //!
56   TFile *fFile2; //!
57
58   TBranch *fBranch1; //!
59   TBranch *fBranch2; //!
60
61   TClonesArray *fParticles1; //!
62   TClonesArray *fParticles2; //!
63   TClonesArray *fMixedParticles; //!
64
65   ClassDef(AliJFMixEvent,1) //AliJFMixEvent class
66 };
67  
68 #endif /*ALIJFMIXEVENTH*/