New classes plus some renamed for a better user friendly interface
[u/mrichter/AliRoot.git] / PWG2 / RESONANCES / AliRsnSimpleFcnResolution.h
1 //
2 // Class AliRsnSimpleFcnResolution
3 //
4 // This is the most fundamental AliRsnSimpleFunction,
5 // which computes the invariant mass spectrum of a resonance,
6 // by correlating pairs of tracks from an event (or mixing, for BG)
7 //
8
9 #ifndef AliRsnSimpleFcnResolution_H
10 #define AliRsnSimpleFcnResolution_H
11
12 #include "AliRsnSimpleFunction.h"
13
14 class AliRsnSimpleFcnResolution : public AliRsnSimpleFunction
15 {
16 public:
17
18     AliRsnSimpleFcnResolution();
19     AliRsnSimpleFcnResolution
20       (const char* name, AliRsnPairDef *pd,
21        AliRsnHistoDef *hd, AliRsnCutMgr *cuts=0, Option_t *option="");
22
23     // virtual working routines
24     virtual Bool_t ProcessOne(AliRsnEvent *event);
25
26 private:
27
28     // dummy required methods
29     AliRsnSimpleFcnResolution(const AliRsnSimpleFcnResolution &copy) :
30       AliRsnSimpleFunction(copy) { /*nothing */ }
31     AliRsnSimpleFcnResolution& operator=(const AliRsnSimpleFcnResolution& /*copy*/)
32       { /* nothing */ return (*this); }
33       
34     // utility methods
35     Bool_t Add(AliRsnDaughter *t1, AliRsnDaughter *t2);
36
37     ClassDef(AliRsnSimpleFcnResolution, 1); // dictionary
38 };
39
40 #endif