]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG2/UNICOR/AliUnicorAnalCorrel.h
Fixes of older problems and adaptation to heavy ions.
[u/mrichter/AliRoot.git] / PWG2 / UNICOR / AliUnicorAnalCorrel.h
1 #ifndef ALIUNICORANALCORREL_H
2 #define ALIUNICORANALCORREL_H
3
4 /* Copyright(c) 1998-2048, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6 /* $Id$ */
7
8 // Author: Dariusz Miskowiec <mailto:d.miskowiec@gsi.de> 2005
9
10 //=============================================================================
11 // two-particle correlation analyzer
12 //=============================================================================
13
14 #include "AliUnicorAnal.h"
15 #include "AliUnicorPair.h"
16 class AliUnicorEvent;
17
18 //=============================================================================
19 class AliUnicorAnalCorrel : public AliUnicorAnal {
20    
21  public:
22   enum AnalysisFrame {kPairFrame, kLCMS, kLAB};
23   AliUnicorAnalCorrel(const char *nam="correl", Double_t emi=-1, Double_t ema=1, 
24               Int_t pid0=0, Int_t pid1=0, AnalysisFrame frame=kPairFrame); 
25   virtual ~AliUnicorAnalCorrel(){}
26   // process one (tru) or two (mix) events
27   void Process(Int_t tmr, const AliUnicorEvent * const ev0, const AliUnicorEvent * const ev1, Double_t phirot);
28
29  protected:
30   Int_t    fPid0;                       // particle species 0
31   Int_t    fPid1;                       // particle species 1
32   Double_t fMass0;                      // mass 0
33   Double_t fMass1;                      // mass 1
34   double   fZ0;                         // charge 0 in units of |e|
35   double   fZ1;                         // charge 1 in units of |e|
36   Int_t    fFrame;                      // analysis frame
37   AliUnicorPair    fPa;                         // pair buffer for calculations
38
39   ClassDef(AliUnicorAnalCorrel,1)
40 };
41 //=============================================================================
42 #endif