1 #ifndef ALISIMULATION_H
2 #define ALISIMULATION_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
14 class AliSimulation: public TNamed {
16 AliSimulation(const char* configFileName = "Config.C",
17 const char* name = "AliSimulation",
18 const char* title = "generation, simulation and digitization");
19 AliSimulation(const AliSimulation& sim);
20 AliSimulation& operator = (const AliSimulation& sim);
21 virtual ~AliSimulation();
23 void SetNumberOfEvents(Int_t nEvents);
24 void SetConfigFile(const char* fileName);
26 void SetRunGeneration(Bool_t run) {fRunGeneration = run;};
27 void SetRunSimulation(Bool_t run) {fRunSimulation = run;};
28 void SetMakeSDigits(const char* detectors)
29 {fMakeSDigits = detectors;};
30 void MergeWith(const char* fileName, Int_t nSignalPerBkgrd = 1);
31 void SetUseBkgrdVertex(Bool_t useBkgrdVertex)
32 {fUseBkgrdVertex = useBkgrdVertex;};
33 void SetRegionOfInterest(Bool_t flag) {fRegionOfInterest = flag;};
34 void SetMakeDigits(const char* detectors)
35 {fMakeDigits = detectors;};
36 void SetMakeDigitsFromHits(const char* detectors)
37 {fMakeDigitsFromHits = detectors;};
39 virtual Bool_t Run(Int_t nEvents = 0);
41 virtual Bool_t RunSimulation(Int_t nEvents = 0);
42 virtual Bool_t RunSDigitization(const char* detectors = "ALL");
43 virtual Bool_t RunDigitization(const char* detectors = "ALL",
44 const char* excludeDetectors = "");
45 virtual Bool_t RunHitsDigitization(const char* detectors = "ALL");
48 AliRunLoader* LoadRun() const;
49 Bool_t IsSelected(TString detName, TString& detectors) const;
51 Bool_t fRunGeneration; // generate prim. particles or not
52 Bool_t fRunSimulation; // simulate detectors (hits) or not
53 TString fMakeSDigits; // create sdigits for these detectors
54 TString fMakeDigits; // create digits for these detectors
55 TString fMakeDigitsFromHits; // create digits from hits for these detectors
56 Bool_t fStopOnError; // stop or continue on errors
58 Int_t fNEvents; // number of events
59 TString fConfigFileName; // name of the config file
60 TString fGAliceFileName; // name of the galice file
61 TObjArray* fBkgrdFileNames; // names of background files for merging
62 Bool_t fUseBkgrdVertex; // use vertex from background in case of merging
63 Bool_t fRegionOfInterest; // digitization in region of interest
65 ClassDef(AliSimulation, 1) // class for running generation, simulation and digitization