]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EVGEN/AliDecayerPolarized.h
22-mar-2006 NvE Support for selective MC track storage introduced in IceF2k.
[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
8a878ecf 12#include "AliDecayerPythia.h"
c1e10a2a 13
14
8a878ecf 15class AliDecayerPolarized : public AliDecayerPythia
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);
8a878ecf 22 AliDecayerPolarized(const AliDecayerPolarized &decayer):AliDecayerPythia(decayer)
23 {decayer.Copy(*this);}
c1e10a2a 24 virtual ~AliDecayerPolarized();
25 void SetPolDec(Double_t alpha=0) {fAlpha=alpha;}
26 void SetPolRefSys(Polar_t systref=kColSop) {fSystRef=systref;}
27 void SetDecProd(FinState_t decprod=kMuon) {fDecProd=decprod;}
28 virtual void Init(){;}
29 virtual void Decay(Int_t ipart, TLorentzVector *p);
30 virtual Int_t ImportParticles(TClonesArray *part);
8a878ecf 31 void Copy(TObject &decayer) const;
32
33 AliDecayerPolarized &operator=(const AliDecayerPolarized &decayer)
c1e10a2a 34 {decayer.Copy(*this);return(*this);}
35
36 protected:
37 Double_t fAlpha; // Polarization parameter
38 Polar_t fSystRef; // Reference system for polarization
39 FinState_t fDecProd; // Choice of decay products
40 TF1 *fPol; // ! Angular distribution for decay products
41 TParticle *fMother; // ! Particle that has to be decayed
42 TParticle *fDaughter1; // ! Decay product no. 1
43 TParticle *fDaughter2; // ! Decay product no. 2
44
45 ClassDef(AliDecayerPolarized,1) // Polarized 2-body quarkonium decay
46};
47#endif
48
49