Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Shreya Roy
cbmroot
Commits
528ce4b4
Commit
528ce4b4
authored
Sep 20, 2021
by
Pierre-Alain Loizeau
Committed by
Volker Friese
Sep 21, 2021
Browse files
Add safety check bef. full sorting in Unpack Steer class
parent
7ed271b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
reco/steer/CbmRecoUnpack.cxx
View file @
528ce4b4
...
...
@@ -260,7 +260,6 @@ void CbmRecoUnpack::Unpack(unique_ptr<Timeslice> ts)
fCbmTsEventHeader
->
AddNDigisPsd
(
unpack
(
systemId
,
&
timeslice
,
component
,
fPsdConfig
,
fPsdConfig
->
GetOptOutAVec
(),
fPsdConfig
->
GetOptOutBVec
()));
}
break
;
}
case
fkFlesRich
:
{
...
...
@@ -292,11 +291,10 @@ void CbmRecoUnpack::Unpack(unique_ptr<Timeslice> ts)
break
;
}
case
fkFlesTrd2D
:
{
if
(
fTrd2DConfig
)
if
(
fTrd2DConfig
)
{
fCbmTsEventHeader
->
AddNDigisTrd2D
(
unpack
(
systemId
,
&
timeslice
,
component
,
fTrd2DConfig
,
fTrd2DConfig
->
GetOptOutAVec
(),
fTrd2DConfig
->
GetOptOutBVec
()));
}
if
(
fTrd2DConfig
)
{
fCbmTsEventHeader
->
AddNDigisTrd2D
(
unpack
(
systemId
,
&
timeslice
,
component
,
fTrd2DConfig
,
fTrd2DConfig
->
GetOptOutAVec
(),
fTrd2DConfig
->
GetOptOutBVec
()));
}
break
;
}
default:
{
...
...
@@ -308,20 +306,20 @@ void CbmRecoUnpack::Unpack(unique_ptr<Timeslice> ts)
if
(
bOutputFullTimeSorting
)
{
/// Time sort the output vectors of all unpackers present
if
(
fPsdConfig
->
GetOutputVec
())
{
timesort
(
fPsdConfig
->
GetOutputVec
());
}
if
(
fRichConfig
->
GetOutputVec
())
{
timesort
(
fRichConfig
->
GetOutputVec
());
}
if
(
fStsConfig
->
GetOutputVec
())
{
timesort
(
fStsConfig
->
GetOutputVec
());
}
if
(
fTofConfig
->
GetOutputVec
())
{
timesort
(
fTofConfig
->
GetOutputVec
());
}
if
(
fTrd1DConfig
->
GetOutputVec
())
{
timesort
(
fTrd1DConfig
->
GetOutputVec
());
}
if
(
fTrd2DConfig
->
GetOutputVec
())
{
timesort
(
fTrd2DConfig
->
GetOutputVec
());
}
if
(
fPsdConfig
&&
fPsdConfig
->
GetOutputVec
())
{
timesort
(
fPsdConfig
->
GetOutputVec
());
}
if
(
fRichConfig
&&
fRichConfig
->
GetOutputVec
())
{
timesort
(
fRichConfig
->
GetOutputVec
());
}
if
(
fStsConfig
&&
fStsConfig
->
GetOutputVec
())
{
timesort
(
fStsConfig
->
GetOutputVec
());
}
if
(
fTofConfig
&&
fTofConfig
->
GetOutputVec
())
{
timesort
(
fTofConfig
->
GetOutputVec
());
}
if
(
fTrd1DConfig
&&
fTrd1DConfig
->
GetOutputVec
())
{
timesort
(
fTrd1DConfig
->
GetOutputVec
());
}
if
(
fTrd2DConfig
&&
fTrd2DConfig
->
GetOutputVec
())
{
timesort
(
fTrd2DConfig
->
GetOutputVec
());
}
/// Time sort the output vectors of all unpackers present
if
(
fPsdConfig
->
GetOptOutAVec
())
{
timesort
(
fPsdConfig
->
GetOptOutAVec
());
}
if
(
fRichConfig
->
GetOptOutAVec
())
{
timesort
(
fRichConfig
->
GetOptOutAVec
());
}
if
(
fStsConfig
->
GetOptOutAVec
())
{
timesort
(
fStsConfig
->
GetOptOutAVec
());
}
if
(
fTofConfig
->
GetOptOutAVec
())
{
timesort
(
fTofConfig
->
GetOptOutAVec
());
}
if
(
fTrd1DConfig
->
GetOptOutAVec
())
{
timesort
(
fTrd1DConfig
->
GetOptOutAVec
());
}
if
(
fTrd2DConfig
->
GetOptOutAVec
())
{
timesort
(
fTrd2DConfig
->
GetOptOutAVec
());
}
if
(
fPsdConfig
&&
fPsdConfig
->
GetOptOutAVec
())
{
timesort
(
fPsdConfig
->
GetOptOutAVec
());
}
if
(
fRichConfig
&&
fRichConfig
->
GetOptOutAVec
())
{
timesort
(
fRichConfig
->
GetOptOutAVec
());
}
if
(
fStsConfig
&&
fStsConfig
->
GetOptOutAVec
())
{
timesort
(
fStsConfig
->
GetOptOutAVec
());
}
if
(
fTofConfig
&&
fTofConfig
->
GetOptOutAVec
())
{
timesort
(
fTofConfig
->
GetOptOutAVec
());
}
if
(
fTrd1DConfig
&&
fTrd1DConfig
->
GetOptOutAVec
())
{
timesort
(
fTrd1DConfig
->
GetOptOutAVec
());
}
if
(
fTrd2DConfig
&&
fTrd2DConfig
->
GetOptOutAVec
())
{
timesort
(
fTrd2DConfig
->
GetOptOutAVec
());
}
}
}
// ----------------------------------------------------------------------------
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment