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"
20 #include "AliRunLoader.h"
22 class AliTrackReference;
24 class AliFMDBackgroundCorrection : public TNamed {
28 AliFMDBackgroundCorrection() ;
29 ~AliFMDBackgroundCorrection() {};
30 void GenerateBackgroundCorrection(Bool_t from_hits=kFALSE,
34 Bool_t storeInAlien = kFALSE,
36 Int_t endRunNo=999999999,
37 const Char_t* filename="background.root",
38 Bool_t simulate = kFALSE,
40 Bool_t inFile = kFALSE,
41 const Char_t* infilename="");
43 class AliFMDInputBG : public AliFMDInput {
47 AliFMDInputBG(Bool_t hits_not_trackrefs);
50 Int_t GetNprim() {return fPrim;}
51 Int_t GetNhits() {return fHits;}
52 void SetVtxCutZ(Double_t vtxCut) { fZvtxCut = vtxCut;}
53 void SetNvtxBins(Int_t nBins) { fNvtxBins = nBins;}
54 void SetNbinsEta(Int_t nBins) { fNbinsEta = nBins;}
55 TObjArray* GetHits() {return &fHitArray;}
56 TObjArray* GetPrimaries() {return &fPrimaryArray;}
57 AliRunLoader* GetRunLoader() {return fLoader; }
59 Bool_t ProcessHit(AliFMDHit* h, TParticle* p );
60 Bool_t ProcessTrackRef(AliTrackReference* tr, TParticle* p );
61 Bool_t ProcessEvent(UShort_t det,
68 Bool_t Begin(Int_t event );
69 TObjArray fPrimaryArray;
85 void ProcessPrimaries(AliRunLoader*);
86 TObjArray fCorrectionArray;
91 ClassDef(AliFMDBackgroundCorrection,0)