]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG2/RESONANCES/AliRsnPair.h
Major upgrade to the package, in order to speed-up the execution and remove some...
[u/mrichter/AliRoot.git] / PWG2 / RESONANCES / AliRsnPair.h
CommitLineData
aec0ec32 1//
2// *** Class AliRsnPair ***
3//
4// TODO
5//
6// authors: A. Pulvirenti (email: alberto.pulvirenti@ct.infn.it)
7// M. Vala (email: martin.vala@cern.ch)
8//
9
10#ifndef ALIRSNPAIR_H
11#define ALIRSNPAIR_H
12
2dab9030 13#include "TNamed.h"
5eb970a4 14#include "TClonesArray.h"
aec0ec32 15
16#include "AliRsnDaughter.h"
17#include "AliRsnPairDef.h"
2dab9030 18#include "AliRsnMother.h"
19#include "AliRsnCutManager.h"
aec0ec32 20
4fbb2459 21class TH1;
22class TH2;
23class TList;
24class TArrayI;
25
26class AliRsnEvent;
2dab9030 27class AliRsnCutSet;
aec0ec32 28class AliRsnFunction;
2dab9030 29class AliRsnValue;
aec0ec32 30
2dab9030 31class AliRsnPair : public TNamed
aec0ec32 32{
33 public:
34
2dab9030 35 AliRsnPair(const char *name = "default", AliRsnPairDef *def = 0);
413bbf44 36 AliRsnPair(const AliRsnPair &copy);
37 AliRsnPair& operator=(const AliRsnPair&);
aec0ec32 38 ~AliRsnPair();
39
4fbb2459 40 void SetOnlyTrue(Bool_t onlyTrue = kTRUE) {fOnlyTrue = onlyTrue;}
41
78b94cbd 42 void Print(Option_t *option = "") const;
2dab9030 43 void SetMixed(Bool_t doit = kTRUE) {fIsMixed = doit;}
4fbb2459 44 Bool_t IsMixed() const {return fIsMixed;}
2dab9030 45
46 AliRsnCutManager* GetCutManager() {return &fCutManager;}
47 AliRsnMother* GetMother() {return &fMother;}
48 AliRsnPairDef* GetPairDef() {return fPairDef;}
49 Bool_t Fill(AliRsnDaughter *d0, AliRsnDaughter *d1, AliRsnEvent *ev1, AliRsnEvent *ev2);
50 virtual void Compute();
51 virtual void Init(const char *prefix, TList *list);
52
53 protected:
54
55 Bool_t fOnlyTrue; // select true pairs only?
56 Bool_t fIsMixed; // is this an event-mixing?
57
58 AliRsnPairDef *fPairDef; // pair definition (particles, charges)
59 AliRsnCutManager fCutManager; // collection of all cuts
60 AliRsnMother fMother; // mother candidate (to avoid creating it continuously)
61 AliRsnEvent *fEvent; // pointer to current event
62
aec0ec32 63 private:
e0baff8c 64
4fbb2459 65 ClassDef(AliRsnPair, 2)
aec0ec32 66};
67
68#endif
2dab9030 69