Line data Source code
1 : #ifndef ALIZDCFRAGMENT_H
2 : #define ALIZDCFRAGMENT_H
3 : /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 : * See cxx source for full Copyright notice */
5 :
6 :
7 : ////////////////////////////////////////////////////
8 : // //
9 : // Generate nuclear fragments parametrizing //
10 : // resuslts of SIS and SPS energies //
11 : // //
12 : ////////////////////////////////////////////////////
13 :
14 :
15 : #include <TMath.h>
16 :
17 : extern int comp(const void *, const void *);
18 :
19 0 : class AliZDCFragment : public TNamed {
20 :
21 : public:
22 : AliZDCFragment();
23 : AliZDCFragment(Float_t b);
24 0 : virtual ~AliZDCFragment() {}
25 : void GenerateIMF();
26 : void AttachNeutrons();
27 : Float_t DeuteronNumber();
28 :
29 : // Setting parameters
30 0 : virtual void SetImpactParameter(Float_t b) {fB=b;};
31 :
32 : // Getting parameters
33 0 : Float_t GetZbAverage() {return fZbAverage;}
34 0 : Int_t GetFragmentNum() {return fNimf;}
35 0 : Float_t GetZmax() {return fZmax;}
36 0 : Int_t* GetZZ() {return (int*)fZZ;}
37 0 : Int_t* GetNN() {return (int*)fNN;}
38 0 : Int_t GetNalpha() {return fNalpha;}
39 0 : Int_t GetZtot() {return fZtot;}
40 0 : Int_t GetNtot() {return fNtot;}
41 :
42 : protected:
43 :
44 : Float_t fB; // Impact parameter
45 : Float_t fZbAverage; // Mean value of Z bound
46 : Int_t fNimf; // Number of IMF
47 : Float_t fZmax; // Mean value of maximum Z of fragment
48 : Float_t fTau; // Exponent of charge distribution: dN/dZ = Z*exp(-fTau)
49 : Int_t fZZ[100]; // Array of atomic numbers of fragments
50 : Int_t fNN[100]; // Array of number of neutrons of fragments
51 : Int_t fNalpha; // Number of alpha particles
52 : Int_t fZtot; // Total number of bound protons
53 : Int_t fNtot; // Total number of bound neutrons
54 :
55 :
56 12 : ClassDef(AliZDCFragment,1) // Generator for AliZDC fragment class
57 : };
58 :
59 : #endif
|