]> git.uio.no Git - u/mrichter/AliRoot.git/blame - FMD/AliFMDBackgroundCorrection.h
Removing the circular dependency between the ESD and STEER libraries by moving the...
[u/mrichter/AliRoot.git] / FMD / AliFMDBackgroundCorrection.h
CommitLineData
df0d5480 1// -*- mode: C++ -*-
2
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights
4 * reserved.
5 *
6 * See cxx source for full Copyright notice
7 */
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.
10//
11// Author: Hans Hjersing Dalsgaard, NBI, hans.dalsgaard@cern.ch
12//
13//
14
15#ifndef ALIFMDBACKGROUNDCORRECTION_H
16#define ALIFMDBACKGROUNDCORRECTION_H
17
18#include "AliFMDInput.h"
19#include "TObjArray.h"
ca3af5d9 20#include "AliRunLoader.h"
df0d5480 21
22class AliFMDBackgroundCorrection : public TNamed {
23
24public:
25
26 AliFMDBackgroundCorrection() ;
27 ~AliFMDBackgroundCorrection() {};
28 void GenerateBackgroundCorrection(Int_t nvtxbins=10,
29 Float_t zvtxcut=10,
30 Int_t nBinsEta=100,
31 Bool_t storeInAlien = kFALSE,
32 Int_t runNo =0,
33 Int_t endRunNo=999999999,
34 const Char_t* filename="background.root",
35 Bool_t simulate = kFALSE,
36 Int_t nEvents=10);
37
38 class AliFMDInputBG : public AliFMDInput {
39
40 public :
41 AliFMDInputBG() ;
42
43 Bool_t Init();
44
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;}
ca3af5d9 52 AliRunLoader* GetRunLoader() {return fLoader; }
df0d5480 53 private:
ca3af5d9 54 Bool_t ProcessHit(AliFMDHit* h, TParticle* p );
55 Bool_t Begin(Int_t event );
df0d5480 56 TObjArray fPrimaryArray;
57 TObjArray fHitArray;
58 Int_t fPrim;
59 Int_t fHits;
60 Double_t fZvtxCut;
61 Int_t fNvtxBins;
62 Int_t fPrevTrack;
63 Int_t fPrevDetector;
64 Char_t fPrevRing;
65 Int_t fNbinsEta;
66 };
67
68private:
69
70 void Simulate(Int_t);
71 void ProcessPrimaries(AliRunLoader*);
df0d5480 72 TObjArray fCorrectionArray;
ca3af5d9 73 TList fPrimaryList;
74 //Double_t fZvtxCut;
75 // Int_t fNvtxBins;
76 //Int_t fNbinsEta;
df0d5480 77 ClassDef(AliFMDBackgroundCorrection,0)
78
79};
80#endif
81// EOF