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
1680d075
Commit
1680d075
authored
2 years ago
by
Pierre-Alain Loizeau
Browse files
Options
Downloads
Patches
Plain Diff
Use the TZD unpacker instead of BMon one in Reco steering class
parent
a76f2c44
No related branches found
No related tags found
1 merge request
!1019
Support for CbmTzdDigi in unpacking, event builder and TOF reco.
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
reco/steer/CMakeLists.txt
+1
-0
1 addition, 0 deletions
reco/steer/CMakeLists.txt
reco/steer/CbmRecoUnpack.cxx
+17
-21
17 additions, 21 deletions
reco/steer/CbmRecoUnpack.cxx
reco/steer/CbmRecoUnpack.h
+6
-6
6 additions, 6 deletions
reco/steer/CbmRecoUnpack.h
with
24 additions
and
27 deletions
reco/steer/CMakeLists.txt
+
1
−
0
View file @
1680d075
...
...
@@ -29,6 +29,7 @@ set(PRIVATE_DEPENDENCIES
CbmRichReco
CbmRecoSts
CbmTrdReco
CbmTzdReco
)
set
(
INTERFACE_DEPENDENCIES
...
...
This diff is collapsed.
Click to expand it.
reco/steer/CbmRecoUnpack.cxx
+
17
−
21
View file @
1680d075
...
...
@@ -49,7 +49,7 @@ void CbmRecoUnpack::Finish()
if
(
fTofConfig
)
fTofConfig
->
GetUnpacker
()
->
Finish
();
if
(
fTrd1DConfig
)
fTrd1DConfig
->
GetUnpacker
()
->
Finish
();
if
(
fTrd2DConfig
)
fTrd2DConfig
->
GetUnpacker
()
->
Finish
();
if
(
f
Bmon
Config
)
f
Bmon
Config
->
GetUnpacker
()
->
Finish
();
if
(
f
Tzd
Config
)
f
Tzd
Config
->
GetUnpacker
()
->
Finish
();
// Create some default performance profiling histograms and write them to a file
if
(
fDoPerfProf
)
performanceProfiling
();
...
...
@@ -152,14 +152,14 @@ Bool_t CbmRecoUnpack::Init()
// for fasp created CbmTrdDigis PR 072021
// --- Bmon
if
(
f
Bmon
Config
)
{
f
Bmon
Config
->
InitOutput
();
RegisterOutputs
(
ioman
,
f
Bmon
Config
);
/// Framework bound work = kept in this Task
f
Bmon
Config
->
SetAlgo
();
f
Bmon
Config
->
LoadParFileName
();
/// Needed to change the Parameter file name before it is used!!!
initParContainers
(
f
Bmon
Config
->
GetParContainerRequest
());
/// Framework bound work = kept in this Task
f
Bmon
Config
->
InitAlgo
();
initPerformanceMaps
(
fkFles
Bmon
,
"Bmon
"
);
if
(
f
Tzd
Config
)
{
f
Tzd
Config
->
InitOutput
();
RegisterOutputs
(
ioman
,
f
Tzd
Config
);
/// Framework bound work = kept in this Task
f
Tzd
Config
->
SetAlgo
();
f
Tzd
Config
->
LoadParFileName
();
/// Needed to change the Parameter file name before it is used!!!
initParContainers
(
f
Tzd
Config
->
GetParContainerRequest
());
/// Framework bound work = kept in this Task
f
Tzd
Config
->
InitAlgo
();
initPerformanceMaps
(
fkFles
Tzd
,
"Tzd
"
);
}
if
(
fDoPerfProfPerTs
)
{
...
...
@@ -379,8 +379,8 @@ void CbmRecoUnpack::Reset()
if
(
fTrd1DConfig
)
fTrd1DConfig
->
Reset
();
// ---- Trd2D ----
if
(
fTrd2DConfig
)
fTrd2DConfig
->
Reset
();
// ----
Bmon
----
if
(
f
Bmon
Config
)
f
Bmon
Config
->
Reset
();
// ----
Tzd
----
if
(
f
Tzd
Config
)
f
Tzd
Config
->
Reset
();
}
// ----------------------------------------------------------------------------
...
...
@@ -458,14 +458,10 @@ void CbmRecoUnpack::Unpack(unique_ptr<Timeslice> ts)
}
break
;
}
case
fkFlesBmon
:
{
if
(
fBmonConfig
)
{
fCbmTsEventHeader
->
AddNDigisBmon
(
unpack
(
systemId
,
&
timeslice
,
component
,
fBmonConfig
,
fBmonConfig
->
GetOptOutAVec
(),
fBmonConfig
->
GetOptOutBVec
()));
}
else
if
(
fTofConfig
)
{
fCbmTsEventHeader
->
AddNDigisTof
(
unpack
(
fkFlesTof
,
&
timeslice
,
component
,
fTofConfig
,
fTofConfig
->
GetOptOutAVec
(),
fTofConfig
->
GetOptOutBVec
()));
case
fkFlesTzd
:
{
if
(
fTzdConfig
)
{
fCbmTsEventHeader
->
AddNDigisBmon
(
unpack
(
systemId
,
&
timeslice
,
component
,
fTzdConfig
,
fTzdConfig
->
GetOptOutAVec
(),
fTzdConfig
->
GetOptOutBVec
()));
}
break
;
}
...
...
@@ -485,7 +481,7 @@ void CbmRecoUnpack::Unpack(unique_ptr<Timeslice> ts)
if
(
fTofConfig
&&
fTofConfig
->
GetOutputVec
())
{
timesort
(
fTofConfig
->
GetOutputVec
());
}
if
(
fTrd1DConfig
&&
fTrd1DConfig
->
GetOutputVec
())
{
timesort
(
fTrd1DConfig
->
GetOutputVec
());
}
if
(
fTrd2DConfig
&&
fTrd2DConfig
->
GetOutputVec
())
{
timesort
(
fTrd2DConfig
->
GetOutputVec
());
}
if
(
f
Bmon
Config
&&
f
Bmon
Config
->
GetOutputVec
())
{
timesort
(
f
Bmon
Config
->
GetOutputVec
());
}
if
(
f
Tzd
Config
&&
f
Tzd
Config
->
GetOutputVec
())
{
timesort
(
f
Tzd
Config
->
GetOutputVec
());
}
/// Time sort the output vectors of all unpackers present
if
(
fMuchConfig
&&
fMuchConfig
->
GetOptOutAVec
())
{
timesort
(
fMuchConfig
->
GetOptOutAVec
());
}
...
...
@@ -495,7 +491,7 @@ void CbmRecoUnpack::Unpack(unique_ptr<Timeslice> ts)
if
(
fTofConfig
&&
fTofConfig
->
GetOptOutAVec
())
{
timesort
(
fTofConfig
->
GetOptOutAVec
());
}
if
(
fTrd1DConfig
&&
fTrd1DConfig
->
GetOptOutAVec
())
{
timesort
(
fTrd1DConfig
->
GetOptOutAVec
());
}
if
(
fTrd2DConfig
&&
fTrd2DConfig
->
GetOptOutAVec
())
{
timesort
(
fTrd2DConfig
->
GetOptOutAVec
());
}
if
(
f
Bmon
Config
&&
f
Bmon
Config
->
GetOptOutAVec
())
{
timesort
(
f
Bmon
Config
->
GetOptOutAVec
());
}
if
(
f
Tzd
Config
&&
f
Tzd
Config
->
GetOptOutAVec
())
{
timesort
(
f
Tzd
Config
->
GetOptOutAVec
());
}
}
if
(
fDoPerfProfPerTs
)
{
...
...
This diff is collapsed.
Click to expand it.
reco/steer/CbmRecoUnpack.h
+
6
−
6
View file @
1680d075
...
...
@@ -12,7 +12,6 @@
#ifndef CBMRECOUNPACK_H
#define CBMRECOUNPACK_H 1
#include
"CbmBmonUnpackConfig.h"
#include
"CbmMuchUnpackConfig.h"
#include
"CbmPsdUnpackConfig.h"
#include
"CbmRichUnpackConfig.h"
...
...
@@ -21,6 +20,7 @@
#include
"CbmTrdUnpackConfig.h"
#include
"CbmTrdUnpackFaspConfig.h"
#include
"CbmTsEventHeader.h"
#include
"CbmTzdUnpackConfig.h"
#include
<MicrosliceDescriptor.hpp>
#include
<Timeslice.hpp>
...
...
@@ -31,13 +31,13 @@
#include
<RtypesCore.h>
#include
<THnSparse.h>
#include
<TObject.h>
#include
<type_traits>
// this is std::lib used for template is_member_function_pointer
#include
<chrono>
#include
<cstddef>
#include
<cstdint>
#include
<ctime>
#include
<memory>
#include
<type_traits>
// this is std::lib used for template is_member_function_pointer
#include
<utility>
#include
<vector>
...
...
@@ -149,7 +149,7 @@ public:
void
SetUnpackConfig
(
std
::
shared_ptr
<
CbmTrdUnpackFaspConfig
>
config
)
{
fTrd2DConfig
=
config
;
}
/** @brief Set the Bmon Unpack Config @param config */
void
SetUnpackConfig
(
std
::
shared_ptr
<
Cbm
Bmon
UnpackConfig
>
config
)
{
f
Bmon
Config
=
config
;
}
void
SetUnpackConfig
(
std
::
shared_ptr
<
Cbm
Tzd
UnpackConfig
>
config
)
{
f
Tzd
Config
=
config
;
}
/** @brief Trigger the unpacking procedure **/
void
Unpack
(
std
::
unique_ptr
<
fles
::
Timeslice
>
ts
);
...
...
@@ -163,7 +163,7 @@ private:
static
constexpr
std
::
uint16_t
fkFlesTrd
=
static_cast
<
std
::
uint16_t
>
(
fles
::
SubsystemIdentifier
::
TRD
);
static
constexpr
std
::
uint16_t
fkFlesTrd2D
=
static_cast
<
std
::
uint16_t
>
(
fles
::
SubsystemIdentifier
::
TRD2D
);
static
constexpr
std
::
uint16_t
fkFlesTof
=
static_cast
<
std
::
uint16_t
>
(
fles
::
SubsystemIdentifier
::
RPC
);
static
constexpr
std
::
uint16_t
fkFles
Bmon
=
static_cast
<
std
::
uint16_t
>
(
fles
::
SubsystemIdentifier
::
T0
);
static
constexpr
std
::
uint16_t
fkFles
Tzd
=
static_cast
<
std
::
uint16_t
>
(
fles
::
SubsystemIdentifier
::
T0
);
/** @brief Flag if extended debug output is to be printed or not*/
bool
fDoDebugPrints
=
false
;
//!
...
...
@@ -424,8 +424,8 @@ private:
/** @brief Configuration of the Trd unpacker. Provides the configured algorithm */
std
::
shared_ptr
<
CbmTrdUnpackFaspConfig
>
fTrd2DConfig
=
nullptr
;
//!
/** @brief Configuration of the
Bmon
unpacker. Provides the configured algorithm */
std
::
shared_ptr
<
Cbm
Bmon
UnpackConfig
>
f
Bmon
Config
=
nullptr
;
//!
/** @brief Configuration of the
Tzd
unpacker. Provides the configured algorithm */
std
::
shared_ptr
<
Cbm
Tzd
UnpackConfig
>
f
Tzd
Config
=
nullptr
;
//!
/** @brief Pointer to the Timeslice start time used to write it to the output tree @remark since we hand this to the FairRootManager it also wants to delete it and we do not have to take care of deletion */
CbmTsEventHeader
*
fCbmTsEventHeader
=
nullptr
;
...
...
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