Fix for event mixing, when it was selecting events out of range of multiplicity cut
[u/mrichter/AliRoot.git] / EVGEN / AliDecayerPolarized.h
CommitLineData
c1e10a2a 1#ifndef ALIDECAYERPOLARIZED_H
2#define ALIDECAYERPOLARIZED_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6// Class to generate decay products for polarized heavy quarkonia
7
8#include <TLorentzVector.h>
9#include <TClonesArray.h>
10#include <TF1.h>
11
3cad937a 12#include "AliDecayer.h"
c1e10a2a 13
14
3cad937a 15class AliDecayerPolarized : public AliDecayer
c1e10a2a 16{
17 public:
18 typedef enum { kNoPol = 0, kColSop = 1, kHelicity = 2} Polar_t;
19 typedef enum { kElectron = 1, kMuon = 2} FinState_t;
20 AliDecayerPolarized();
21 AliDecayerPolarized(Double_t alpha, Polar_t systref, FinState_t decprod);
1c56e311 22 AliDecayerPolarized(const AliDecayerPolarized &decayer);
c1e10a2a 23 virtual ~AliDecayerPolarized();
24 void SetPolDec(Double_t alpha=0) {fAlpha=alpha;}
25 void SetPolRefSys(Polar_t systref=kColSop) {fSystRef=systref;}
26 void SetDecProd(FinState_t decprod=kMuon) {fDecProd=decprod;}
3cad937a 27 virtual void Init(){;}
28 virtual void Decay(Int_t ipart, TLorentzVector *p);
c1e10a2a 29 virtual Int_t ImportParticles(TClonesArray *part);
3cad937a 30 // The following methods are dummy
31 virtual void SetForceDecay(Int_t type);
32 virtual void ForceDecay();
33 virtual Float_t GetPartialBranchingRatio(Int_t ipart);
34 virtual Float_t GetLifetime(Int_t kf);
35 virtual void ReadDecayTable();
36 private:
8a878ecf 37 void Copy(TObject &decayer) const;
8a878ecf 38 AliDecayerPolarized &operator=(const AliDecayerPolarized &decayer)
c1e10a2a 39 {decayer.Copy(*this);return(*this);}
40
41 protected:
42 Double_t fAlpha; // Polarization parameter
43 Polar_t fSystRef; // Reference system for polarization
44 FinState_t fDecProd; // Choice of decay products
45 TF1 *fPol; // ! Angular distribution for decay products
46 TParticle *fMother; // ! Particle that has to be decayed
47 TParticle *fDaughter1; // ! Decay product no. 1
48 TParticle *fDaughter2; // ! Decay product no. 2
49
50 ClassDef(AliDecayerPolarized,1) // Polarized 2-body quarkonium decay
51};
52#endif
53
54