1 /**************************************************************************
2 * Copyright(c) 1998-2000, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
19 #include <TObjArray.h>
21 #include <TDirectory.h>
24 #include "AliTOFMerger.h"
26 #include "AliTOFSDigitizer.h"
27 #include "AliTOFhit.h"
28 #include "AliTOFdigit.h"
37 ClassImp(AliTOFMerger)
39 //___________________________________________
40 AliTOFMerger::AliTOFMerger()
42 // Default constructor
49 //------------------------------------------------------------------------
50 AliTOFMerger::~AliTOFMerger()
61 //------------------------------------------------------------------------
62 void AliTOFMerger::Init()
65 if (fMerge) fBgrFile = InitBgr();
71 //------------------------------------------------------------------------
72 TFile* AliTOFMerger::InitBgr()
74 // Initialise background event
75 TFile *file = new TFile(fFnBgr);
76 // add error checking later
77 printf("\n AliTOFMerger has opened %s file with background event \n", fFnBgr);
81 //------------------------------------------------------------------------
82 void AliTOFMerger::Digitise()
86 cout<<"ALiTOFMerger::>SDigits2Digits start...\n";