3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights
6 * See cxx source for full Copyright notice
8 // Thil class computes background corrections for the FMD. The correction is computed
9 // in eta,phi cells and the objects stored can be put into alien to use with analysis.
11 // Author: Hans Hjersing Dalsgaard, NBI, hans.dalsgaard@cern.ch
15 #ifndef ALIFMDBACKGROUNDCORRECTION_H
16 #define ALIFMDBACKGROUNDCORRECTION_H
18 #include "AliFMDInput.h"
19 #include "TObjArray.h"
22 class AliFMDBackgroundCorrection : public TNamed {
26 AliFMDBackgroundCorrection() ;
27 ~AliFMDBackgroundCorrection() {};
28 void GenerateBackgroundCorrection(Int_t nvtxbins=10,
31 Bool_t storeInAlien = kFALSE,
33 Int_t endRunNo=999999999,
34 const Char_t* filename="background.root",
35 Bool_t simulate = kFALSE,
38 class AliFMDInputBG : public AliFMDInput {
45 Int_t GetNprim() {return fPrim;}
46 Int_t GetNhits() {return fHits;}
47 void SetVtxCutZ(Double_t vtxCut) { fZvtxCut = vtxCut;}
48 void SetNvtxBins(Int_t nBins) { fNvtxBins = nBins;}
49 void SetNbinsEta(Int_t nBins) { fNbinsEta = nBins;}
50 TObjArray* GetHits() {return &fHitArray;}
51 TObjArray* GetPrimaries() {return &fPrimaryArray;}
53 Bool_t ProcessTrack(Int_t i, TParticle* p, AliFMDHit* h );
54 TObjArray fPrimaryArray;
69 void ProcessPrimaries(AliRunLoader*);
71 TObjArray fCorrectionArray;
74 ClassDef(AliFMDBackgroundCorrection,0)