LHC optics version 6.2 parameters provided by Chiara.
[u/mrichter/AliRoot.git] / TOF / AliTOFMerger.h
CommitLineData
517b7f8f 1#ifndef ALITOFMERGER_H
2#define ALITOFMERGER_H
3/* Copyright(c) 1998-2000, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6// #include "AliMerger.h"
7// #include "AliMergable.h"
8#include "TRandom.h"
9#include "AliDetector.h"
10
11typedef enum {kDigitize=0, kMerge = 1} MergeMode_t;
12
13class AliTOFMerger {
14 public:
15
16 AliTOFMerger();
17 virtual ~AliTOFMerger();
18
19
20 // Initialize merging and digitisation
21 virtual void Init();
22
23 // Do the main work
24 void Digitise() ;
25 // Int_t PutEdgeEffect(Int_t charge){return (Int_t)(gRandom->Gaus(charge,500));}
26 TClonesArray *SDigits() const {return fSDigits;}
27
28 // void ReadDigit(Int_t a[][30][150], Int_t);
29
30 // Setters -> Later Communication with gAlice
31 void SetSignalEventNumber(Int_t i) {fEvNrSig = i;}
32 void SetBackgroundEventNumber(Int_t i) {fEvNrBgr = i;}
33 void SetBackgroundFileName(char* file) {fFnBgr = file;}
34 void SetSignalFileName(char* file) {fFnSig = file;}
35 void SetMode(MergeMode_t mode) {fMerge = mode;}
36
37
38 enum {kBgTag = -1};
39
40 private:
41 // Open the bgr file
42 TFile *InitBgr();
43
44
45 private:
46 TClonesArray *fDigits; // ! array with digits
47 TClonesArray *fSDigits ; // List of summable digits
48 Int_t fEvNrSig; // signal event number
49 Int_t fEvNrBgr; // background event number
50 MergeMode_t fMerge; // merging type kDigitize, kMerge
51 char *fFnBgr; // background file name
52 char *fFnSig; // signal file name
53 TFile *fBgrFile; // Pointer to background file
54
55 ClassDef(AliTOFMerger,0)
56};
57#endif
58
59
60