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
be3976e3
Commit
be3976e3
authored
1 month ago
by
Pierre-Alain Loizeau
Committed by
Administrator
1 month ago
Browse files
Options
Downloads
Patches
Plain Diff
mMUCH: back-port changes to run_unpack_tsa into online macro version
parent
cf6efa9f
No related branches found
No related tags found
1 merge request
!2052
MuCh Elink Mapping
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
macro/run/run_unpack_online.C
+43
-15
43 additions, 15 deletions
macro/run/run_unpack_online.C
with
43 additions
and
15 deletions
macro/run/run_unpack_online.C
+
43
−
15
View file @
be3976e3
...
...
@@ -222,52 +222,80 @@ void run_unpack_online(std::vector<std::string> publisher = {"tcp://localhost:55
// muchconfig->SetDebugState();
muchconfig
->
SetDoWriteOutput
();
muchconfig
->
SetDoWriteOptOutA
(
"MuchDigiPulser"
);
//To avoid copy all MuCh par file is under macro/beamtime/mcbm2022
std
::
string
parfilesbasepathMuch
=
Form
(
"%s/macro/beamtime/mcbm2022/"
,
srcDir
.
Data
());
muchconfig
->
SetParFilesBasePath
(
parfilesbasepathMuch
);
std
::
string
NoisyChannelFilePath
=
""
;
muchconfig
->
SetSystemTimeOffset
(
-
2221
);
// [ns] value to be updated
if
(
2060
<=
runid
&&
runid
<=
2162
)
{
/// Starting to use CRI Based MUCH setup with 2GEM and 1 RPC since 09/03/2022 Carbon run
muchconfig
->
SetParFileName
(
"mMuchParUpto26032022.par"
);
muchconfig
->
SetSystemTimeOffset
(
-
1020
);
// [ns] value to be updated
muchconfig
->
SetElinkFebMap2022
();
}
else
if
(
2163
<=
runid
&&
runid
<=
2291
)
{
///
muchconfig
->
SetParFileName
(
"mMuchParUpto03042022.par"
);
muchconfig
->
SetElinkFebMap2022
();
}
else
if
(
2311
<=
runid
&&
runid
<=
2315
)
{
///
muchconfig
->
SetParFileName
(
"mMuchParUpto10042022.par"
);
muchconfig
->
SetSystemTimeOffset
(
-
980
);
// [ns] value to be updated
muchconfig
->
SetElinkFebMap2022
();
}
else
if
(
2316
<=
runid
&&
runid
<=
2366
)
{
///
muchconfig
->
SetParFileName
(
"mMuchParUpto23052022.par"
);
//List of noisy channels *.txt file based on CbmMuchAddress is placed at the same location as par files
NoisyChannelFilePath
=
parfilesbasepathMuch
+
"mMuChNoisyChannelMarch2022.txt"
;
muchconfig
->
SetSystemTimeOffset
(
-
980
);
// [ns] value to be updated
muchconfig
->
SetElinkFebMap2022
();
}
else
if
(
2367
<=
runid
&&
runid
<=
2397
)
{
/// Starting to use GEM 2 moved to CRI 0 on 24/05/2022
muchconfig
->
SetParFileName
(
"mMuchParUpto26052022.par"
);
muchconfig
->
SetElinkFebMap2022
();
}
else
if
(
2398
<=
runid
&&
runid
<=
3410
)
{
/// Only 2 GEMs during June 2024
muchconfig
->
SetParFileName
(
"mMuchParUpto300624.par"
);
}
else
if
(
3411
<=
runid
&&
runid
<=
3426
)
{
/// Only 2 GEMs upto 06/02/2025
muchconfig
->
SetSystemTimeOffset
(
-
711
);
// [ns] value to be updated
NoisyChannelFilePath
=
parfilesbasepathMuch
+
"mMuChNoisyChannelFeb2025.txt"
;
muchconfig
->
SetParFileName
(
"mMuchParUpto06022025.par"
);
muchconfig
->
SetAsicTimeOffset
(
8
,
3
);
//GEM1 Feb-0
muchconfig
->
SetAsicTimeOffset
(
6
,
-
4
);
//GEM1 Feb-1
muchconfig
->
SetAsicTimeOffset
(
7
,
1
);
//GEM1 Feb-3
muchconfig
->
SetAsicTimeOffset
(
18
,
-
3
);
//GEM1 Feb-4
muchconfig
->
SetAsicTimeOffset
(
9
,
9
);
//GEM1 Feb-5
muchconfig
->
SetAsicTimeOffset
(
19
,
-
1
);
//GEM1 Feb-7
muchconfig
->
SetAsicTimeOffset
(
15
,
-
27
);
//GEM1 Feb-8
muchconfig
->
SetAsicTimeOffset
(
10
,
-
30
);
//GEM1 Feb-9
muchconfig
->
SetAsicTimeOffset
(
0
,
-
2
);
//GEM1 Feb-10
muchconfig
->
SetAsicTimeOffset
(
24
,
-
8
);
//GEM1 Feb-11
muchconfig
->
SetAsicTimeOffset
(
16
,
-
22
);
//GEM1 Feb-12
muchconfig
->
SetAsicTimeOffset
(
17
,
-
26
);
//GEM1 Feb-13
muchconfig
->
SetAsicTimeOffset
(
11
,
-
24
);
//GEM1 Feb-14
muchconfig
->
SetAsicTimeOffset
(
26
,
-
5
);
//GEM1 Feb-15
muchconfig
->
SetAsicTimeOffset
(
25
,
-
11
);
//GEM1 Feb-16
muchconfig
->
SetAsicTimeOffset
(
2
,
-
2
);
//GEM1 Feb-17
muchconfig
->
SetAsicTimeOffset
(
53
,
-
1
);
//GEM2 Feb-0
muchconfig
->
SetAsicTimeOffset
(
47
,
-
5
);
//GEM2 Feb-2
}
else
{
/// Default file for all other runs
(including 06/2022 Gold runs)
/// Default file for all other runs
muchconfig
->
SetParFileName
(
"mMuchPar.par"
);
}
muchconfig
->
SetNoisyChannelFile
(
NoisyChannelFilePath
);
/// Enable duplicates rejection, Ignores the ADC for duplicates check
muchconfig
->
SetDuplicatesRejection
(
true
,
true
);
/// Enable Monitor plots
muchconfig
->
SetMonitor
(
GetMuchMonitor
(
outfilename
,
false
));
muchconfig
->
SetSystemTimeOffset
(
-
2221
);
// [ns] value to be updated
if
(
2160
<=
runid
)
{
muchconfig
->
SetSystemTimeOffset
(
-
1020
);
// [ns] value to be updated
}
if
(
2350
<=
runid
)
{
muchconfig
->
SetSystemTimeOffset
(
-
980
);
// [ns] value to be updated
}
// muchconfig->SetMinAdcCut(1, 1);
// muchconfig->MaskNoisyChannel(3, 56);
//List of noisy channels *.txt file based on CbmMuchAddress is placed at the same location as par files
//
std
::
string
NoisyChannelFilePath
=
parfilesbasepathMuch
+
"mMuChNoisyChannelMarch2022.txt"
;
muchconfig
->
SetNoisyChannelFile
(
NoisyChannelFilePath
);
}
// -------------
...
...
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