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
217c5acb
Commit
217c5acb
authored
2 years ago
by
Pierre-Alain Loizeau
Browse files
Options
Downloads
Patches
Plain Diff
switch unpack macro from BMON to TZD
parent
1680d075
No related branches found
No related tags found
1 merge request
!1019
Support for CbmTzdDigi in unpacking, event builder and TOF reco.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
macro/run/run_unpack_tsa.C
+15
-15
15 additions, 15 deletions
macro/run/run_unpack_tsa.C
with
15 additions
and
15 deletions
macro/run/run_unpack_tsa.C
+
15
−
15
View file @
217c5acb
...
@@ -113,26 +113,26 @@ void run_unpack_tsa(std::vector<std::string> infile = {"test.tsa"}, UInt_t runid
...
@@ -113,26 +113,26 @@ void run_unpack_tsa(std::vector<std::string> infile = {"test.tsa"}, UInt_t runid
// ----- UnpackerConfigs ----------------------------------------------
// ----- UnpackerConfigs ----------------------------------------------
// ---- BMON ----
// ---- BMON ----
std
::
shared_ptr
<
Cbm
Bmon
UnpackConfig
>
bmon
config
=
nullptr
;
std
::
shared_ptr
<
Cbm
Tzd
UnpackConfig
>
tzd
config
=
nullptr
;
if
(
!
bBmoninTof
)
{
if
(
!
bBmoninTof
)
{
bmon
config
=
std
::
make_shared
<
Cbm
Bmon
UnpackConfig
>
(
""
,
runid
);
tzd
config
=
std
::
make_shared
<
Cbm
Tzd
UnpackConfig
>
(
""
,
runid
);
if
(
bmon
config
)
{
if
(
tzd
config
)
{
//
bmon
config->SetDebugState();
//
tzd
config->SetDebugState();
bmon
config
->
SetDoWriteOutput
();
tzd
config
->
SetDoWriteOutput
();
//
bmon
config->SetDoWriteOptOutA("Cbm
Bmon
Errors");
//
tzd
config->SetDoWriteOptOutA("Cbm
Tzd
Errors");
std
::
string
parfilesbasepath
Bmon
=
Form
(
"%s/macro/beamtime/mcbm2022/"
,
srcDir
.
Data
());
std
::
string
parfilesbasepath
Tzd
=
Form
(
"%s/macro/beamtime/mcbm2022/"
,
srcDir
.
Data
());
bmon
config
->
SetParFilesBasePath
(
parfilesbasepath
Bmon
);
tzd
config
->
SetParFilesBasePath
(
parfilesbasepath
Tzd
);
bmon
config
->
SetParFileName
(
"mBmonCriPar.par"
);
tzd
config
->
SetParFileName
(
"mBmonCriPar.par"
);
bmon
config
->
SetSystemTimeOffset
(
-
1220
);
// [ns] value to be updated
tzd
config
->
SetSystemTimeOffset
(
-
1220
);
// [ns] value to be updated
if
(
2160
<=
runid
)
{
if
(
2160
<=
runid
)
{
bmon
config
->
SetSystemTimeOffset
(
-
80
);
// [ns] value to be updated
tzd
config
->
SetSystemTimeOffset
(
-
80
);
// [ns] value to be updated
}
}
if
(
2350
<=
runid
)
{
if
(
2350
<=
runid
)
{
bmon
config
->
SetSystemTimeOffset
(
0
);
// [ns] value to be updated
tzd
config
->
SetSystemTimeOffset
(
0
);
// [ns] value to be updated
}
}
/// Enable Monitor plots
/// Enable Monitor plots
//
bmon
config->SetMonitor(GetTofMonitor(outfilename, true));
//
tzd
config->SetMonitor(GetTofMonitor(outfilename, true));
}
}
}
}
// -------------
// -------------
...
@@ -475,7 +475,7 @@ void run_unpack_tsa(std::vector<std::string> infile = {"test.tsa"}, UInt_t runid
...
@@ -475,7 +475,7 @@ void run_unpack_tsa(std::vector<std::string> infile = {"test.tsa"}, UInt_t runid
// Enable full time sorting instead sorting per FLIM link
// Enable full time sorting instead sorting per FLIM link
unpack
->
SetTimeSorting
(
true
);
unpack
->
SetTimeSorting
(
true
);
if
(
bmon
config
)
unpack
->
SetUnpackConfig
(
bmon
config
);
if
(
tzd
config
)
unpack
->
SetUnpackConfig
(
tzd
config
);
if
(
stsconfig
)
unpack
->
SetUnpackConfig
(
stsconfig
);
if
(
stsconfig
)
unpack
->
SetUnpackConfig
(
stsconfig
);
if
(
muchconfig
)
unpack
->
SetUnpackConfig
(
muchconfig
);
if
(
muchconfig
)
unpack
->
SetUnpackConfig
(
muchconfig
);
if
(
trd1Dconfig
)
unpack
->
SetUnpackConfig
(
trd1Dconfig
);
if
(
trd1Dconfig
)
unpack
->
SetUnpackConfig
(
trd1Dconfig
);
...
@@ -531,7 +531,7 @@ void run_unpack_tsa(std::vector<std::string> infile = {"test.tsa"}, UInt_t runid
...
@@ -531,7 +531,7 @@ void run_unpack_tsa(std::vector<std::string> infile = {"test.tsa"}, UInt_t runid
delete
run
;
delete
run
;
delete
source
;
delete
source
;
bmon
config
.
reset
();
tzd
config
.
reset
();
stsconfig
.
reset
();
stsconfig
.
reset
();
muchconfig
.
reset
();
muchconfig
.
reset
();
trd1Dconfig
.
reset
();
trd1Dconfig
.
reset
();
...
...
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