19 gROOT->LoadMacro(
"$VMCWORKDIR/gconfig/rootlogon.C");
36 FairRunAna *
fRun=
new FairRunAna();
37 fRun->SetInputFile(inFile);
38 fRun->SetOutputFile(outFile);
45 FairRuntimeDb*
rtdb = fRun->GetRuntimeDb();
46 FairParRootFileIo*
parInput1 =
new FairParRootFileIo();
47 parInput1->open(parFile.Data());
49 FairParAsciiFileIo*
parIo1 =
new FairParAsciiFileIo();
50 parIo1->open(allDigiFile.Data(),
"in");
52 rtdb->setFirstInput(parInput1);
53 rtdb->setSecondInput(parIo1);
59 fRun->AddTask(tpcClusterizer);
63 tpcDrifter->SetDistort(
false);
64 fRun->AddTask(tpcDrifter);
66 PndTpcGemTask*
tpcGem =
new PndTpcGemTask();
68 fRun->AddTask(tpcGem);
71 tpcPadResponse->SetPersistence();
72 fRun->AddTask(tpcPadResponse);
74 PndTpcElectronicsTask*
tpcElec =
new PndTpcElectronicsTask();
75 tpcElec->SetPersistence();
76 fRun->AddTask(tpcElec);
78 PndTpcClusterFinderTask*
tpcCF =
new PndTpcClusterFinderTask();
79 tpcCF->SetPersistence();
86 fRun->AddTask(mvddigi);
90 fRun->AddTask(mvdmccls);
100 fRun->AddTask(emcHitsToWaveform);
101 fRun->AddTask(emcWaveformToDigi);
104 fRun->AddTask(emcMakeCluster);
107 fRun->AddTask(emcMakeBump);
110 fRun->AddTask(emcHdrFiller);
113 PndTofHitProducerIdeal*
tofhit =
new PndTofHitProducerIdeal();
114 tofhit->SetVerbose(iVerbose);
115 fRun->AddTask(tofhit);
120 fRun->AddTask(mdtHitProd);
123 fRun->AddTask(mdtTrkProd);
127 drchit->SetVerbose(iVerbose);
128 fRun->AddTask(drchit);
133 fRun->AddTask(gemDigitize);
136 fRun->AddTask(gemFindHits);
140 fRun->Run(0, nEvents);
152 cout << endl << endl;
153 cout <<
"Macro finished succesfully." << endl;
154 cout <<
"Output file is " << outFile << endl;
155 cout <<
"Parameter file is " << parFile << endl;
156 cout <<
"Real time " << rtime <<
" s, CPU time " << ctime <<
" s" << endl;
PndGemFindHits * gemFindHits
PndEmcHitsToWaveform * emcHitsToWaveform
PndEmcMakeBump * emcMakeBump
PndMvdStripClusterTask * mvdmccls
PndTpcClusterizerTask * tpcClusterizer
PndEmcHdrFiller * emcHdrFiller
PndFtofHitProducerIdeal * tofhit
PndMdtHitProducerIdeal * mdtHitProd
PndDrcHitProducerReal * drchit
PndEmcMakeCluster * emcMakeCluster
PndTpcPadResponseTask * tpcPadResponse
Takes clusters and slits them up into bumps.
void SetVerbose(Int_t iVerbose)
FairParRootFileIo * parInput1
PndGemDigitize * gemDigitize
PndEmcWaveformToDigi * emcWaveformToDigi
FairParAsciiFileIo * parIo1
Task to cluster PndEmcDigis.
PndTpcElectronicsTask * tpcElec
PndTpcDriftTask * tpcDrifter
PndMdtTrkProducer * mdtTrkProd
PndTpcClusterFinderTask * tpcCF
Task to create Emc header.
void SetPositionSmearing(Float_t res)
Set the smearing of the PndMdtHit position.