Added preprocessor conditionals to support ROOT > 5.11.2.
[u/mrichter/AliRoot.git] / HBTAN / AliHBTWeights.h
1 #ifndef ALIHBTWEIGHTS_H
2 #define ALIHBTWEIGHTS_H
3
4 #include <TObject.h>
5
6 class AliHBTPair;
7
8 class AliHBTWeights: public TObject
9  {
10    public:
11       virtual ~AliHBTWeights();
12       static Double_t Weight(AliHBTPair* partpair){return (fgWeights)?fgWeights->GetWeight(partpair):0.0;}
13       virtual Double_t GetWeight(AliHBTPair* partpair) = 0;
14       virtual void Set() = 0;
15       static AliHBTWeights* Instance() {return fgWeights;}
16       
17    protected:
18       static AliHBTWeights* fgWeights;
19       
20       ClassDef(AliHBTWeights,2)
21  };
22
23 #endif