Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cbmroot
Manage
Activity
Members
Labels
Plan
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Computing
cbmroot
Commits
aba57a8b
Commit
aba57a8b
authored
4 years ago
by
Norbert Herrmann
Browse files
Options
Downloads
Patches
Plain Diff
update default parameters for run 831
parent
7b875e72
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!164
Official master
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
macro/beamtime/mcbm2020/dis_trks.C
+58
-32
58 additions, 32 deletions
macro/beamtime/mcbm2020/dis_trks.C
with
58 additions
and
32 deletions
macro/beamtime/mcbm2020/dis_trks.C
+
58
−
32
View file @
aba57a8b
void
dis_trks
(
Int_t
nEvents
=
10
,
Int_t
iSel
=
1
,
Int_t
iGenCor
=
1
,
TString
cFileId
=
"
4
8.50.
7.1
"
,
TString
cSet
=
"0
0001002
0"
,
Int_t
iSel2
=
2
0
,
Int_t
iTrackingSetup
=
2
,
TString
cFileId
=
"8
31
.50.
3.0
"
,
TString
cSet
=
"0
12022500_50
0"
,
Int_t
iSel2
=
50
0
,
Int_t
iTrackingSetup
=
1
,
Double_t
dScalFac
=
1
.,
Double_t
dChi2Lim2
=
5
00
.,
Double_t
dChi2Lim2
=
5
.,
Double_t
dDeadtime
=
50
,
TString
cCalId
=
""
,
Int_t
iAnaCor
=
1
,
Bool_t
bUseSigCalib
=
kFALSE
,
Int_t
iCalSet
=
30040
500
,
Int_t
iCalSet
=
12022
500
,
Int_t
iCalOpt
=
1
,
Int_t
iMc
=
0
)
{
Int_t
iVerbose
=
1
;
if
(
cCalId
==
""
)
cCalId
=
cFileId
;
TString
FId
=
cFileId
;
TString
cRun
(
FId
(
0
,
3
));
Int_t
iRun
=
cRun
.
Atoi
();
Int_t
iRun
=-
1
;
if
(
cRun
==
"unp"
)
{
iRun
=
831
;
cCalId
=
"831.100.4.0"
;
iCalSet
=
10020500
;
}
else
{
iRun
=
cRun
.
Atoi
();
if
(
cCalId
==
""
)
cCalId
=
cFileId
;
}
// Specify log level (INFO, DEBUG, DEBUG1, ...)
//TString logLevel = "FATAL";
//TString logLevel = "ERROR";
...
...
@@ -32,17 +39,23 @@ void dis_trks(Int_t nEvents = 10,
//TString workDir = "../../..";
//TString paramDir = workDir + "/macro/beamtime/mcbm2020";
TString
paramDir
=
"./"
;
TString
ParFile
=
paramDir
+
"/data/"
+
cFileId
.
Data
()
+
".params.root"
;
TString
InputFile
=
paramDir
+
"/data/"
+
cFileId
.
Data
()
+
".root"
;
TString
InputDigiFile
=
paramDir
+
"/data/TofHits_"
+
cFileId
.
Data
()
+
Form
(
"_%s_%02.0f_Cal"
,
cSet
.
Data
(),
dDeadtime
)
+
cCalId
+
".out.root"
;
TString
ParFile
=
paramDir
+
"data/"
+
cFileId
.
Data
()
+
".params.root"
;
TString
InputFile
=
paramDir
+
"data/"
+
cFileId
.
Data
()
+
".root"
;
TString
InputDigiFile
=
""
;
if
(
cRun
==
"unp"
)
{
InputDigiFile
=
paramDir
+
"data/"
+
cFileId
.
Data
()
+
".root"
;
}
else
{
InputDigiFile
=
paramDir
+
"data/TofHits_"
+
cFileId
.
Data
()
+
Form
(
"_%s_%02.0f_Cal"
,
cSet
.
Data
(),
dDeadtime
)
+
cCalId
+
".out.root"
;
}
if
(
iMc
==
1
)
{
InputFile
=
paramDir
+
"
/
data/"
+
cFileId
.
Data
()
+
".raw.root"
;
InputDigiFile
=
paramDir
+
"
/
data/"
+
cFileId
.
Data
()
+
".rec.root"
;
InputFile
=
paramDir
+
"data/"
+
cFileId
.
Data
()
+
".raw.root"
;
InputDigiFile
=
paramDir
+
"data/"
+
cFileId
.
Data
()
+
".rec.root"
;
iRun
=
700
;
}
TString
OutputFile
=
paramDir
+
"
/
data/distrks_"
+
cFileId
.
Data
()
TString
OutputFile
=
paramDir
+
"data/distrks_"
+
cFileId
.
Data
()
+
Form
(
"_%s_%06d_%03d"
,
cSet
.
Data
(),
iSel
,
iSel2
)
+
".out.root"
;
TString
cHstFile
=
...
...
@@ -271,22 +284,35 @@ void dis_trks(Int_t nEvents = 10,
case
2
:
iMinNofHits
=
3
;
iNStations
=
14
;
iNReqStations
=
5
;
tofFindTracks
->
SetStation
(
0
,
5
,
0
,
0
);
tofFindTracks
->
SetStation
(
1
,
0
,
4
,
1
);
tofFindTracks
->
SetStation
(
2
,
0
,
3
,
1
);
tofFindTracks
->
SetStation
(
3
,
0
,
4
,
0
);
tofFindTracks
->
SetStation
(
4
,
0
,
3
,
0
);
tofFindTracks
->
SetStation
(
5
,
0
,
4
,
2
);
tofFindTracks
->
SetStation
(
6
,
0
,
3
,
2
);
tofFindTracks
->
SetStation
(
7
,
0
,
4
,
3
);
tofFindTracks
->
SetStation
(
8
,
0
,
3
,
3
);
tofFindTracks
->
SetStation
(
9
,
0
,
4
,
4
);
tofFindTracks
->
SetStation
(
10
,
0
,
3
,
4
);
tofFindTracks
->
SetStation
(
11
,
9
,
0
,
0
);
tofFindTracks
->
SetStation
(
12
,
9
,
0
,
1
);
tofFindTracks
->
SetStation
(
13
,
7
,
0
,
0
);
iNStations
=
27
;
iNReqStations
=
4
;
tofFindTracks
->
SetStation
(
0
,
0
,
2
,
2
);
tofFindTracks
->
SetStation
(
1
,
0
,
1
,
2
);
tofFindTracks
->
SetStation
(
2
,
0
,
0
,
2
);
tofFindTracks
->
SetStation
(
3
,
0
,
2
,
1
);
tofFindTracks
->
SetStation
(
4
,
0
,
1
,
1
);
tofFindTracks
->
SetStation
(
5
,
0
,
0
,
1
);
tofFindTracks
->
SetStation
(
6
,
0
,
2
,
3
);
tofFindTracks
->
SetStation
(
7
,
0
,
1
,
3
);
tofFindTracks
->
SetStation
(
8
,
0
,
0
,
3
);
tofFindTracks
->
SetStation
(
9
,
0
,
2
,
0
);
tofFindTracks
->
SetStation
(
10
,
0
,
1
,
0
);
tofFindTracks
->
SetStation
(
11
,
0
,
0
,
0
);
tofFindTracks
->
SetStation
(
12
,
0
,
2
,
4
);
tofFindTracks
->
SetStation
(
13
,
0
,
1
,
4
);
tofFindTracks
->
SetStation
(
14
,
0
,
0
,
4
);
tofFindTracks
->
SetStation
(
15
,
0
,
4
,
0
);
tofFindTracks
->
SetStation
(
16
,
0
,
3
,
0
);
tofFindTracks
->
SetStation
(
17
,
0
,
4
,
1
);
tofFindTracks
->
SetStation
(
18
,
0
,
3
,
1
);
tofFindTracks
->
SetStation
(
19
,
0
,
4
,
2
);
tofFindTracks
->
SetStation
(
20
,
0
,
3
,
2
);
tofFindTracks
->
SetStation
(
21
,
0
,
4
,
3
);
tofFindTracks
->
SetStation
(
22
,
0
,
3
,
3
);
tofFindTracks
->
SetStation
(
23
,
0
,
4
,
4
);
tofFindTracks
->
SetStation
(
24
,
0
,
3
,
4
);
tofFindTracks
->
SetStation
(
25
,
9
,
0
,
0
);
tofFindTracks
->
SetStation
(
26
,
9
,
0
,
1
);
break
;
case
3
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment