TVector.h missing
[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"
bd0c63ae 10#include "AliTOF.h"
88cb7938 11//Piotr.Skowronski@cern.ch :
12//Corrections applied in order to compile (only) with new I/O and folder structure
13//To be implemented correctly by responsible
14class AliRunLoader;
517b7f8f 15
16typedef enum {kDigitize=0, kMerge = 1} MergeMode_t;
17
18class AliTOFMerger {
19 public:
20
21 AliTOFMerger();
22 virtual ~AliTOFMerger();
23
24
25 // Initialize merging and digitisation
26 virtual void Init();
27
28 // Do the main work
29 void Digitise() ;
517b7f8f 30 TClonesArray *SDigits() const {return fSDigits;}
31
bd0c63ae 32 void ReadWriteDigit(Int_t);
517b7f8f 33
34 // Setters -> Later Communication with gAlice
35 void SetSignalEventNumber(Int_t i) {fEvNrSig = i;}
36 void SetBackgroundEventNumber(Int_t i) {fEvNrBgr = i;}
37 void SetBackgroundFileName(char* file) {fFnBgr = file;}
38 void SetSignalFileName(char* file) {fFnSig = file;}
39 void SetMode(MergeMode_t mode) {fMerge = mode;}
40
517b7f8f 41 enum {kBgTag = -1};
42
43 private:
44 // Open the bgr file
45 TFile *InitBgr();
46
47
48 private:
49 TClonesArray *fDigits; // ! array with digits
50 TClonesArray *fSDigits ; // List of summable digits
bd0c63ae 51 Int_t fNDigits; // number of digits
517b7f8f 52 Int_t fEvNrSig; // signal event number
53 Int_t fEvNrBgr; // background event number
54 MergeMode_t fMerge; // merging type kDigitize, kMerge
55 char *fFnBgr; // background file name
56 char *fFnSig; // signal file name
57 TFile *fBgrFile; // Pointer to background file
58
88cb7938 59 AliRunLoader * fRunLoader; //! Run Loader
517b7f8f 60 ClassDef(AliTOFMerger,0)
61};
62#endif
63