FairRoot/PandaRoot
Functions
digi_complete_newSTT.C File Reference

Go to the source code of this file.

Functions

int digi_complete_newSTT (Int_t nEvents=0)
 

Function Documentation

int digi_complete_newSTT ( Int_t  nEvents = 0)

Definition at line 4 of file digi_complete_newSTT.C.

References PndMasterRunAna::AddFriend(), PndMasterRunAna::Finish(), fRun, nEvents, output, PndMasterRunAna::SetInput(), PndMasterRunAna::SetOutput(), PndMasterRunAna::SetParamAsciiFile(), PndPersistencyTask::SetPersistency(), PndMdtHitProducerIdeal::SetPositionSmearing(), PndMasterRunAna::Setup(), and TString.

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 PndSttRootGeometryInitTask();
40  fRun->AddTask(task);
41 
42  task = new PndSttHitProducerRealFast();
43  task->SetVerbose(0);
44  fRun->AddTask(task);
45 
46  task = new PndGemDigitize("GEM Digitizer", 0);
47  task->SetVerbose(0);
48  fRun->AddTask(task);
49 
50  task = new PndGemFindHits("GEM Hit Finder", 0);
51  task->SetVerbose(0);
52  fRun->AddTask(task);
53 
54  task = new PndDrcHitProducerReal();
55  task->SetVerbose(0);
56  fRun->AddTask(task);
57 
58  task = new PndSciTDigiTask();
59  task->SetVerbose(0);
60  fRun->AddTask(task);
61 
62  task = new PndEmcHitsToWaveform();
63  task->SetPersistency(kFALSE);
64  task->SetVerbose(0);
65  fRun->AddTask(task);
66 
67  task = new PndEmcWaveformToDigi();
68  task->SetPersistency(kTRUE);
69  task->SetVerbose(0);
70  fRun->AddTask(task);
71 
72  task = new PndEmcMakeCluster();
73  task->SetVerbose(0);
74  fRun->AddTask(task);
75 
76  task = new PndEmcMakeBump();
77  task->SetVerbose(0);
78  fRun->AddTask(task);
79 
81  mdt->SetPositionSmearing(.3);
82  mdt->SetVerbose(0);
83  fRun->AddTask(mdt);
84 
85  task = new PndMdtTrkProducer();
86  task->SetVerbose(0);
87  fRun->AddTask(task);
88 
89  task = new PndFtsHitProducerRealFast();
90  task->SetVerbose(0);
91  fRun->AddTask(task);
92 
93  task = new PndFtofHitProducerIdeal();
94  task->SetVerbose(0);
95  fRun->AddTask(task);
96 
97  task = new PndRichHitProducer();
98  task->SetVerbose(0);
99  fRun->AddTask(task);
100 
101  // ----- Intialise and run --------------------------------------------
102  fRun->Init();
103  fRun->Run(0, nEvents);
104  fRun->Finish();
105  return 0;
106 }
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_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.