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
13ca9fd4
Commit
13ca9fd4
authored
4 years ago
by
Alberica Toia
Browse files
Options
Downloads
Patches
Plain Diff
fixed clang format
parent
542b4ed9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!153
adding sts reco with abs and rel path
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
macro/beamtime/mcbm2020/build_event_win_kronos.C
+22
-18
22 additions, 18 deletions
macro/beamtime/mcbm2020/build_event_win_kronos.C
macro/beamtime/mcbm2020/mcbm_reco_kronos.C
+10
-7
10 additions, 7 deletions
macro/beamtime/mcbm2020/mcbm_reco_kronos.C
with
32 additions
and
25 deletions
macro/beamtime/mcbm2020/build_event_win_kronos.C
+
22
−
18
View file @
13ca9fd4
...
...
@@ -24,10 +24,11 @@ void build_event_win_kronos(UInt_t uRunIdx = 0,
*/
};
if
(
vuListRunId
.
size
()
<=
uRunIdx
)
return
kFALSE
;
uRunId
=
vuListRunId
[
uRunIdx
];
uRunId
=
vuListRunId
[
uRunIdx
];
//fileName = Form("data/unp_mcbm_%03u.root", uRunId);
fileName
=
Form
(
"/lustre/cbm/users/ploizeau/mcbm2020/unp_evt_data_7f229b3f_20201103/unp_mcbm_%i.root"
,
uRunId
);
fileName
=
Form
(
"/lustre/cbm/users/ploizeau/mcbm2020/"
"unp_evt_data_7f229b3f_20201103/unp_mcbm_%i.root"
,
uRunId
);
}
// if( 99999 != uRunIdx )
if
(
uRunId
<
692
&&
0
!=
uRunId
)
return
kFALSE
;
...
...
@@ -105,18 +106,20 @@ void build_event_win_kronos(UInt_t uRunIdx = 0,
fRun
->
AddTask
(
eventBuilder
);
// ----- Parameter database --------------------------------------------
// ----- Parameter database --------------------------------------------
TString
parFile
=
Form
(
"/lustre/cbm/users/ploizeau/mcbm2020/unp_evt_data_7f229b3f_20201103/unp_mcbm_params_%i.root"
,
uRunId
);
FairRuntimeDb
*
rtdb
=
fRun
->
GetRuntimeDb
();
Form
(
"/lustre/cbm/users/ploizeau/mcbm2020/unp_evt_data_7f229b3f_20201103/"
"unp_mcbm_params_%i.root"
,
uRunId
);
FairRuntimeDb
*
rtdb
=
fRun
->
GetRuntimeDb
();
FairParRootFileIo
*
parIo1
=
new
FairParRootFileIo
();
parIo1
->
open
(
parFile
.
Data
(),
"UPDATE"
);
parIo1
->
open
(
parFile
.
Data
(),
"UPDATE"
);
rtdb
->
setFirstInput
(
parIo1
);
// ------------------------------------------------------------------------
TString
geoFileSts
=
"/lustre/cbm/users/alberica/cbmroot/macro/beamtime/mcbm2020/data/test.geo.root"
;
// to be created by a simulation run
"/lustre/cbm/users/alberica/cbmroot/macro/beamtime/mcbm2020/data/"
"test.geo.root"
;
// to be created by a simulation run
fRun
->
SetGeomFile
(
geoFileSts
);
// ----- Local reconstruction in STS ----------------------------------
...
...
@@ -125,16 +128,17 @@ void build_event_win_kronos(UInt_t uRunIdx = 0,
//recoSts->SetTimeCutDigisAbs( 20 );// cluster finder: time cut in ns
//recoSts->SetTimeCutClustersAbs(20.); // hit finder: time cut in ns
// ASIC params: #ADC channels, dyn. range, threshold, time resol., dead time,
// noise RMS, zero-threshold crossing rate
auto
parAsic
=
new
CbmStsParAsic
(
32
,
75000
.,
3000
.,
5
.,
800
.,
1000
.,
3.9789e-3
);
auto
parAsic
=
new
CbmStsParAsic
(
32
,
75000
.,
3000
.,
5
.,
800
.,
1000
.,
3.9789e-3
);
// Module params: number of channels, number of channels per ASIC
auto
parMod
=
new
CbmStsParModule
(
2048
,
128
);
parMod
->
SetAllAsics
(
*
parAsic
);
recoSts
->
UseModulePar
(
parMod
);
// Sensor params
auto
sensorPar
=
new
CbmStsParSensor
(
CbmStsSensorClass
::
kDssdStereo
);
sensorPar
->
SetPar
(
0
,
6
.
2092
);
// Extension in x
...
...
@@ -143,18 +147,18 @@ void build_event_win_kronos(UInt_t uRunIdx = 0,
sensorPar
->
SetPar
(
3
,
5
.
9692
);
// Active size in y
sensorPar
->
SetPar
(
4
,
1024
.);
// Number of strips front side
sensorPar
->
SetPar
(
5
,
1024
.);
// Number of strips back side
sensorPar
->
SetPar
(
6
,
0
.
005
8
);
// Strip pitch front side
sensorPar
->
SetPar
(
6
,
0
.
005
8
);
// Strip pitch front side
sensorPar
->
SetPar
(
7
,
0
.
005
8
);
// Strip pitch back side
sensorPar
->
SetPar
(
8
,
7
.
5
);
// Stereo angle front side
sensorPar
->
SetPar
(
8
,
7
.
5
);
// Stereo angle front side
sensorPar
->
SetPar
(
9
,
0
.
0
);
// Stereo angle back side
recoSts
->
UseSensorPar
(
sensorPar
);
// Sensor conditions: full depletion voltage, bias voltage, temperature,
// coupling capacitance, inter-strip capacitance
auto
sensorCond
=
new
CbmStsParSensorCond
(
70
.,
140
.,
268
.,
17
.
5
,
1
.);
recoSts
->
UseSensorCond
(
sensorCond
);
fRun
->
AddTask
(
recoSts
);
fRun
->
AddTask
(
recoSts
);
std
::
cout
<<
"-I- : Added task "
<<
recoSts
->
GetName
()
<<
std
::
endl
;
// ------------------------------------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
macro/beamtime/mcbm2020/mcbm_reco_kronos.C
+
10
−
7
View file @
13ca9fd4
...
...
@@ -21,15 +21,18 @@ void mcbm_reco(Int_t runId = 812, Int_t nTimeslices = 0) {
// ----- In- and output file names ------------------------------------
TString
inFile
=
Form
(
"/lustre/cbm/users/ploizeau/mcbm2020/"
"unp_evt_data_7f229b3f_20201103/unp_mcbm_%i.root"
,
runId
);
"unp_evt_data_7f229b3f_20201103/unp_mcbm_%i.root"
,
runId
);
TString
parFile
=
Form
(
"/lustre/cbm/users/ploizeau/mcbm2020/unp_evt_data_7f229b3f_20201103/unp_mcbm_params_%i.root"
,
runId
);
Form
(
"/lustre/cbm/users/ploizeau/mcbm2020/unp_evt_data_7f229b3f_20201103/"
"unp_mcbm_params_%i.root"
,
runId
);
TString
geoFile
=
"/lustre/cbm/users/alberica/cbmroot/macro/beamtime/mcbm2020/data/test.geo.root"
;
// to be created by a simulation run
TString
outFile
=
Form
(
"/lustre/cbm/users/ploizeau/mcbm2020/unp_evt_data_7f229b3f_20201103/reco_mcbm_%i.root"
,
runId
);
"/lustre/cbm/users/alberica/cbmroot/macro/beamtime/mcbm2020/data/"
"test.geo.root"
;
// to be created by a simulation run
TString
outFile
=
Form
(
"/lustre/cbm/users/ploizeau/mcbm2020/"
"unp_evt_data_7f229b3f_20201103/reco_mcbm_%i.root"
,
runId
);
// ------------------------------------------------------------------------
...
...
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