Added preprocessor conditionals to support ROOT > 5.11.2.
[u/mrichter/AliRoot.git] / HBTAN / AliHBTCorrFitFctn.h
CommitLineData
8bcc1321 1#ifndef ALIHBTCORRFITFCTN_H
2#define ALIHBTCORRFITFCTN_H
62e1b4fe 3
8bcc1321 4//____________________________________________________________
5///////////////////////////////////////////////////////////////
6// //
7// class AliHBTCorrFitFctn //
8// //
9// //
10///////////////////////////////////////////////////////////////
11
12#include "AliHBTFunction.h"
13#include <TNtuple.h>
14
62e1b4fe 15class AliHBTCorrFitFctn: public AliHBTOnePairFctn1D
8bcc1321 16{
17//Q Invaraint Correlation Function
18//It writes Ntuple that is input for CorrFit
19 public:
62e1b4fe 20 AliHBTCorrFitFctn();
21 AliHBTCorrFitFctn(Int_t fit, Int_t norm);
8bcc1321 22 virtual ~AliHBTCorrFitFctn(){delete fNtuple;}
62e1b4fe 23 void ProcessSameEventParticles(AliHBTPair* trackpair);
24 void ProcessDiffEventParticles(AliHBTPair* trackpair);
8bcc1321 25
26 TH1* GetResult();
6f1c277c 27 virtual Int_t WriteFunction();
62e1b4fe 28
29 void SetMaxNumberOfPairs(Int_t fit, Int_t norm){fNMaxPairsFitArea = fit; fNMaxPairsNormArea = norm;}
30 void SetFitRange(Float_t max) {fFitRangeMax = max;}
31 void SetNormalizationRange(Float_t min, Float_t max) { fNormRangeMin = min; fNormRangeMax= max;}
8bcc1321 32 protected:
62e1b4fe 33 Double_t GetValue(AliHBTPair* /*trackpair*/) const {return 0.0;}//not usable
8bcc1321 34
35 TNtuple* fNtuple;//ntuple for storig pairs
62e1b4fe 36
37 Int_t fNPairsFitArea;//current number of pairs in fitting area
38 Int_t fNMaxPairsFitArea;//current number of pairs in fitting area
39 Float_t fFitRangeMax;
40
8bcc1321 41 Int_t fNPairsNormArea;//number of pairs in normalization area
62e1b4fe 42 Int_t fNMaxPairsNormArea;//number of pairs in normalization area
43 Float_t fNormRangeMin;
44 Float_t fNormRangeMax;
8bcc1321 45 public:
46 ClassDef(AliHBTCorrFitFctn,1)
47};
48
49#endif