FairRoot/PandaRoot
macro/run/digi_complete.C
Go to the documentation of this file.
1 // Macro for running Panda digitization tasks
2 // to run the macro:
3 // root digi_complete.C or in root session root>.x digi_complete.C
4 int digi_complete(Int_t nEvents = 0)
5 {
6  //-----User Settings:------------------------------------------------------
7  TString parAsciiFile = "all.par";
8  TString prefix = "evtcomplete";
9  TString input = "psi2s_Jpsi2pi_Jpsi_mumu.dec";
10  TString output = "digi";
11  TString friend1 = "";
12  TString friend2 = "";
13  TString friend3 = "";
14  TString friend4 = "";
15 
16  // ----- Initial Settings --------------------------------------------
18  fRun->SetInput(input);
19  fRun->SetOutput(output);
20  fRun->AddFriend(friend1);
21  fRun->AddFriend(friend2);
22  fRun->AddFriend(friend3);
23  fRun->AddFriend(friend4);
24  fRun->SetParamAsciiFile(parAsciiFile);
25  fRun->Setup(prefix);
26 
27  PndPersistencyTask *task;
28 
29  // ----- Add tasks ----------------------------------------------------
30 
31  task = new PndMvdDigiTask();
32  task->SetVerbose(0);
33  fRun->AddTask(task);
34 
35  task = new PndMvdClusterTask();
36  task->SetVerbose(0);
37  fRun->AddTask(task);
38 
39  task = new PndSttHitProducerRealFast();
40  task->SetVerbose(0);
41  fRun->AddTask(task);
42 
43  task = new PndGemDigitize("GEM Digitizer", 0);
44  task->SetVerbose(0);
45  fRun->AddTask(task);
46 
47  task = new PndGemFindHits("GEM Hit Finder", 0);
48  task->SetVerbose(0);
49  fRun->AddTask(task);
50 
51  task = new PndDrcHitProducerReal();
52  task->SetVerbose(0);
53  fRun->AddTask(task);
54 
55  task = new PndSciTDigiTask();
56  task->SetVerbose(0);
57  fRun->AddTask(task);
58 
59  task = new PndEmcHitsToWaveform();
60  task->SetPersistency(kFALSE);
61  task->SetVerbose(0);
62  fRun->AddTask(task);
63 
64  task = new PndEmcWaveformToDigi();
65  task->SetPersistency(kTRUE);
66  task->SetVerbose(0);
67  fRun->AddTask(task);
68 
69  task = new PndEmcMakeCluster();
70  task->SetVerbose(0);
71  fRun->AddTask(task);
72 
73  task = new PndEmcMakeBump();
74  task->SetVerbose(0);
75  fRun->AddTask(task);
76 
78  mdt->SetPositionSmearing(.3);
79  mdt->SetVerbose(0);
80  fRun->AddTask(mdt);
81 
82  task = new PndMdtTrkProducer();
83  task->SetVerbose(0);
84  fRun->AddTask(task);
85 
86  task = new PndFtsHitProducerRealFast();
87  task->SetVerbose(0);
88  fRun->AddTask(task);
89 
90  task = new PndFtofHitProducerIdeal();
91  task->SetVerbose(0);
92  fRun->AddTask(task);
93 
94  task = new PndRichHitProducer();
95  task->SetVerbose(0);
96  fRun->AddTask(task);
97 
98  // ----- Intialise and run --------------------------------------------
99  fRun->Init();
100  fRun->Run(0, nEvents);
101  fRun->Finish();
102  return 0;
103 }
Takes list of PndEmcHits and creates PndEmcWaveform.
Class for the master reconstruction chain.
Bool_t Setup(TString outprefix="")
Initial setup.
void SetPersistency(Bool_t val=kTRUE)
void AddFriend(TString par)
Setter of friend root files.
FairParRootFileIo * output
Definition: sim_emc_apd.C:120
FairRunAna * fRun
Definition: hit_dirc.C:58
void SetInput(TString par)
Input of the macro.
int digi_complete(Int_t nEvents=0)
Int_t nEvents
Definition: hit_dirc.C:11
Takes clusters and slits them up into bumps.
Task to cluster PndEmcDigis.
void Finish()
Final diagnostics.
Takes list of PndEmcWaveform and creates PndEmcDigi.
void SetOutput(TString par)
Tag of the output file of the macro.
void SetParamAsciiFile(TString par)
Setter of the parameter ascii file.
void SetPositionSmearing(Float_t res)
Set the smearing of the PndMdtHit position.