Fixed ClassDef() accidentally removed
[u/mrichter/AliRoot.git] / TPC / TPCupgrade / README
CommitLineData
402a4145 1======== Continuous readout toy simulation =======
2
3loadlibs.C //modified version of the one used for GEMtest code. I haven't looked into this so it probably contains a lot of stuff that is not needed
4
5AliToyMCTrack, AliToyMCEvent //classes for storing event and track parameters
6
7AliToyMCEventGenerator //base class for event generators, contains DistortTrack method to distort track using method borrowed from AliTPCCorrection
8
9AliToyMCEventGeneratorSimple //simple first MC event generator, borrowing from Marians macro. Inherits from AliToyMCEventGenerator to get DistortTrack method. Generate(Double_t time) generates and returns an event at time time
10
11makeTree.C //short macro to generate events from a poisson distr and storing in a ROOT tree.
12
13
14to run : root -l loadlibs.C
15 .L makeTree.C+
16 makeTree(Double_t collFreq/*kHz*/, Double_t bunchFreq/*MHz*/, Int_t nEvents)
17
18
19======== Continuous readout toy reconstruction =======
20AliToyMCReconstruction -- Class to reconstruct
21
22
23========== Simple example =========
241. simultate
25
26AliToyMCEventGeneratorSimple s
27s.SetSpaceCharge(AliToyMCEventGeneratorSimple::kEps5)
28s.SetOutputFileName("toyMC_eps05_10ev_50tr.NoMat.root");
29s.RunSimulation(10,50);
30
312. run reconstruction
32const char *file="toyMC_eps05_50ev_500tr.root"
33AliToyMCReconstruction rec
34rec.SetUseMaterialBudget(kTRUE)
35
36rec.SetRecoSettings(1,0,AliToyMCReconstruction::kNoCorrection)
37rec.RunReco(file,-1); > /tmp/log_1_0_0
38
39rec.SetRecoSettings(1,1,AliToyMCReconstruction::kIdeal)
40rec.RunReco(file,-1); > /tmp/log_1_1_3
41
42rec.SetRecoSettings(0,1,AliToyMCReconstruction::kIdeal)
43rec.RunReco(file,-1); > /tmp/log_0_1_3
44
45rec.SetRecoSettings(0,1,AliToyMCReconstruction::kAverageEta)
46rec.RunReco(file,-1); > /tmp/log_0_1_2
47
48rec.SetRecoSettings(0,1,AliToyMCReconstruction::kNoCorrection)
49rec.RunReco(file,-1); > /tmp/log_0_1_0
50
51rec.SetRecoSettings(0,0,AliToyMCReconstruction::kNoCorrection)
52rec.RunReco(file,-1); > /tmp/log_0_0_0
53
543. visualisation
55.L $ALICE_ROOT/TPC/Upgrade/macros/toyMCRecPlots.C
56toyMCRecPlots("toyMC_eps20_50ev_500tr.0.1_0_0_140_10.debug.root")
57