o add epsilon 20 precalculated map
[u/mrichter/AliRoot.git] / TPC / Upgrade / AliToyMCEventGenerator.h
CommitLineData
de0014b7 1#ifndef AliToyMCEventGenerator_H
2#define AliToyMCEventGenerator_H
3
a1a695e5 4#include <TString.h>
5
6class TFile;
7class TTree;
8
9class AliTPCParam;
10class AliTPCSpaceCharge3D;
32438f4e 11class AliTrackPointArray;
a1a695e5 12
13class AliToyMCTrack;
14class AliToyMCEvent;
de0014b7 15
de0014b7 16class AliToyMCEventGenerator : public TObject {
17 public:
18 AliToyMCEventGenerator();
19 AliToyMCEventGenerator(const AliToyMCEventGenerator &gen);
20 virtual ~AliToyMCEventGenerator();
21
22 virtual AliToyMCEvent* Generate(Double_t time) = 0;
23
24 Bool_t DistortTrack(AliToyMCTrack &trackIn, Double_t t0);
32438f4e 25 void CreateSpacePoints(AliToyMCTrack &trackIn,
26 AliTrackPointArray &arrUdist,
27 AliTrackPointArray &arrDist);
28 void SetPoint(Float_t xyz[3], AliTrackPoint &point);
29 void ConvertTrackPointsToLocalClusters(AliTrackPointArray &arrPoints, AliToyMCTrack &tr, Double_t t0, Int_t type);
30 Bool_t SetupCluster(AliTPCclusterMI &tempCl, Float_t xyz[3], Int_t sec, Double_t t0);
31
a1a695e5 32 void SetOutputFileName(const char* file) { fOutputFileName=file; }
33 const char* GetOutputFileName() const { return fOutputFileName.Data(); }
32438f4e 34
35 Int_t GetSector(Float_t xyz[3]);
36
de0014b7 37 protected:
38 AliTPCParam *fTPCParam;
a1a695e5 39 AliToyMCEvent *fEvent;
40
41 Bool_t ConnectOutputFile();
42 Bool_t CloseOutputFile();
43 void FillTree();
de0014b7 44
45 private:
a1a695e5 46 AliToyMCEventGenerator& operator= (const AliToyMCEventGenerator& );
47
de0014b7 48 AliTPCSpaceCharge3D *fSpaceCharge;
a1a695e5 49
50 TString fOutputFileName;
51 TFile *fOutFile;
52 TTree *fOutTree;
de0014b7 53
54 ClassDef(AliToyMCEventGenerator, 1)
55
56};
57
58#endif
59