]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EVGEN/AliGenCorrHF.h
Possibility to force transport of all particles.
[u/mrichter/AliRoot.git] / EVGEN / AliGenCorrHF.h
CommitLineData
2c890605 1#ifndef ALIGENCORRHF_H
2#define ALIGENCORRHF_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/* $Id$ */
7
8//
9// Class to generate correlated Heavy Flavor hadron pairs using paramtrized
10// kinematics of quark pairs from some generator and quark fragmentation functions.
11// Is a generalisation of AliGenParam class for correlated pairs of hadrons.
12// Author: S. Grigoryan, LPC Clermont-Fd & YerPhI, Smbat.Grigoryan@cern.ch
13//
14
15#include "AliGenMC.h"
16
17class AliPythia;
18class TParticle;
9fd56238 19class TH2F;
2c890605 20class TFile;
21class TString;
22
23//-------------------------------------------------------------
24class AliGenCorrHF : public AliGenMC
25{
26 public:
27 AliGenCorrHF();
b33adf51 28 AliGenCorrHF(Int_t npart, Int_t idquark, Int_t energy);
29 AliGenCorrHF(char* tname, Int_t npart, Int_t idquark, Int_t energy);
2c890605 30
31 virtual ~AliGenCorrHF();
32 virtual void Generate();
33 virtual void Init();
34 // force decay type
35 virtual void SetDecayer(AliDecayer* decayer) {fDecayer = decayer;}
36
9fd56238 37 // Hadron pair composition functions, needed by GetHadronPair
38 static void IpCharm(TH2F *hProbHH, Int_t &pdg3, Int_t &pdg4);
39 static void IpBeauty(TH2F *hProbHH, Int_t &pdg3, Int_t &pdg4);
2c890605 40
41 // Computation of cumulative sums of cell wght-s, needed by GetQuarkPair
5cc3bcd2 42 Double_t ComputeIntegral(TFile* fG);
2c890605 43
b33adf51 44 // fG - input file with QQbar kinematical grid (TTree) and fragm. functions (24 TH2-s)
2c890605 45 static void GetQuarkPair(TFile* fG, Double_t* fInt, Double_t &y1, Double_t &y2, Double_t &pt1, Double_t &pt2, Double_t &dphi);
46 static void GetHadronPair(TFile* fG, Int_t idq, Double_t y1, Double_t y2, Double_t pt1, Double_t pt2, Int_t &id3, Int_t &id4, Double_t &pz3, Double_t &pz4, Double_t &pt3, Double_t &pt4);
18e09c20 47 //Setting the flag for Background transportation while using SetForceDecay()
48 void SetSelectAll(Bool_t selectall) {fSelectAll = selectall;}
2c890605 49
50 protected:
51 TString fFileName; // Name of the input file
52 TFile* fFile; //! Pointer to input file
b33adf51 53 Int_t fQuark; // Quark type
54 Int_t fEnergy; // p-p c.m.s. energy
2c890605 55 Float_t fBias; // Biasing factor
56 Int_t fTrials; // Number of trials
18e09c20 57 Bool_t fSelectAll; // Flag for transportation of Background while using SetForceDecay()
2c890605 58 AliDecayer* fDecayer; //! Pointer to pythia object for decays
59
60 private:
93a2041b 61 AliGenCorrHF(const AliGenCorrHF &CorrHF);
62 AliGenCorrHF & operator=(const AliGenCorrHF & rhs);
63
18e09c20 64 Double_t* fgIntegral; //! Pointer to array of cumulative sums of wght-s
65
2c890605 66 static Int_t fgnptbins; // =12 Number of bins for the fragm.
67 // function dependence on quark pt
b33adf51 68 // Number of the grid bins in deltaphi, y and pt: 18, 30 and 50
2c890605 69 static Double_t fgdph[19]; // deltaphi bin coordinates
70 static Double_t fgy[31]; // y bin coordinates
b33adf51 71 static Double_t fgpt[51]; // pt bin coordinates
2c890605 72 static Double_t fgptbmin[12]; // min & max coordinates of pt bins for
73 static Double_t fgptbmax[12]; // the fragm. function
18e09c20 74 ClassDef(AliGenCorrHF,2) // Generator using parameterized QQbar & fragm. functions
2c890605 75};
76#endif
77
78
79
80
81
82
83
84
85
86
5cc3bcd2 87