FairRoot/PandaRoot
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
tutorials
geane
ex2
macro
runDIGI2.C
Go to the documentation of this file.
1
{
2
3
// Verbosity level (0=quiet, 1=event level, 2=track level, 3=debug)
4
Int_t
iVerbose
= 1;
5
6
// Input file (MC events)
7
TString
inFile
=
"ex2.root"
;
8
9
// Number of events to process
10
Int_t
nEvents
= 1000;
11
12
// Parameter file
13
TString
parFile
=
"ex2params.root"
;
14
15
// Output file
16
TString
outFile
=
"ex2d.root"
;
17
18
// In general, the following parts need not be touched
19
// ========================================================================
20
21
// ---- Load libraries -------------------------------------------------
22
gROOT->LoadMacro(
"$VMCWORKDIR/gconfig/basiclibs.C"
);
23
basiclibs
();
24
gSystem->Load(
"libGeoBase"
);
25
gSystem->Load(
"libParBase"
);
26
gSystem->Load(
"libBase"
);
27
gSystem->Load(
"libPndData"
);
28
gSystem->Load(
"libField"
);
29
gSystem->Load(
"libPassive"
);
30
gSystem->Load(
"libStt"
);
31
gSystem->Load(
"libPlane"
);
32
// ------------------------------------------------------------------------
33
34
// ----- Timer --------------------------------------------------------
35
TStopwatch
timer
;
36
timer.Start();
37
// ------------------------------------------------------------------------
38
39
// ----- Reconstruction run -------------------------------------------
40
FairRunAna *
fRun
=
new
FairRunAna();
41
fRun->SetInputFile(inFile);
42
fRun->SetOutputFile(outFile);
43
fRun->LoadGeometry();
44
// ------------------------------------------------------------------------
45
46
// ----- STT analysis tasks --------------------------------------------
47
// digitize ....
48
49
PndSttHitProducerIdeal
*
sttHitProducer
=
new
PndSttHitProducerIdeal
();
50
// CbmSttHitProducerReal* sttHitProducer = new CbmSttHitProducerReal();
51
fRun->AddTask(sttHitProducer);
52
// ------------------------------------------------------------------------
53
54
// ----- Initialize and run --------------------------------------------
55
fRun->Init();
56
fRun->Run(0, nEvents);
57
// ------------------------------------------------------------------------
58
59
// ----- Finish -------------------------------------------------------
60
timer.Stop();
61
Double_t
rtime
= timer.RealTime();
62
Double_t
ctime
= timer.CpuTime();
63
cout << endl << endl;
64
cout <<
"Macro finished succesfully."
<< endl;
65
cout <<
"Output file is "
<< outFile << endl;
66
cout <<
"Parameter file is "
<< parFile << endl;
67
cout <<
"Real time "
<< rtime <<
" s, CPU time "
<< ctime <<
" s"
<< endl;
68
cout << endl;
69
// ------------------------------------------------------------------------
70
}
PndSttHitProducerIdeal
Definition:
PndSttHitProducerIdeal.h:29
basiclibs
basiclibs()
outFile
TString outFile
Definition:
hit_dirc.C:17
sttHitProducer
PndSttHitProducerRealFast * sttHitProducer
Definition:
run_digi_llbar_evtgen.C:57
fRun
FairRunAna * fRun
Definition:
hit_dirc.C:58
inFile
TString inFile
Definition:
hit_dirc.C:8
Double_t
Double_t
Definition:
SimCompleteLinkDef.h:6
parFile
TString parFile
Definition:
hit_dirc.C:14
nEvents
Int_t nEvents
Definition:
hit_dirc.C:11
timer
TStopwatch timer
Definition:
hit_dirc.C:51
TString
TString
Definition:
SimCompleteLinkDef.h:6
ctime
Double_t ctime
Definition:
hit_dirc.C:114
iVerbose
Int_t iVerbose
Definition:
Lars/runMvdDigi.C:7
rtime
Double_t rtime
Definition:
hit_dirc.C:113
Generated on Wed Apr 3 2019 08:44:06 for FairRoot/PandaRoot by
1.8.5