]> git.uio.no Git - u/mrichter/AliRoot.git/blob - UNICOR/AliDAnalCorrel.h
New class for AOD<->MC association
[u/mrichter/AliRoot.git] / UNICOR / AliDAnalCorrel.h
1 // Author: Dariusz Miskowiec <mailto:d.miskowiec@gsi.de> 2005
2
3 //=============================================================================
4 // two-particle correlation analyzer
5 //=============================================================================
6
7 #ifndef ALIDANALCORREL_H
8 #define ALIDANALCORREL_H
9 #include "AliDAnal.h"
10 #include "AliDPair.h"
11 class TH1D;
12 class TH2D;
13 class AliDEvent;
14
15 //=============================================================================
16 class AliDAnalCorrel : public AliDAnal {
17    
18  public:
19   AliDAnalCorrel(Char_t *nam="correl", 
20               Double_t emi=-1, Double_t ema=1, 
21               Int_t pid0=0, Int_t pid1=0);     // constructor
22   virtual ~AliDAnalCorrel(){}                     // destructor
23   // process one (tru) or two (mix) events
24   void Process(Int_t tmr, AliDEvent *ev0, AliDEvent *ev1, Double_t phirot);
25
26  protected:
27   Int_t    fPid0;                       // particle species 0
28   Int_t    fPid1;                       // particle species 1
29   Double_t fMass0;                      // mass 0
30   Double_t fMass1;                      // mass 1
31   AliDPair    fPa;                         // pair buffer for calculations
32
33   ClassDef(AliDAnalCorrel,1)
34 };
35 //=============================================================================
36 #endif