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
ac94a162
Commit
ac94a162
authored
3 years ago
by
Pascal Raisig
Committed by
Pierre-Alain Loizeau
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Optimize run_unpack_tsa + small change to tsEventHeader
parent
7d643fc9
No related branches found
No related tags found
1 merge request
!415
Include all unpackers in the new /reco/steer/ based scheme
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/data/CbmTsEventHeader.h
+5
-4
5 additions, 4 deletions
core/data/CbmTsEventHeader.h
macro/run/run_unpack_tsa.C
+1
-37
1 addition, 37 deletions
macro/run/run_unpack_tsa.C
with
6 additions
and
41 deletions
core/data/CbmTsEventHeader.h
+
5
−
4
View file @
ac94a162
...
...
@@ -10,6 +10,7 @@
#include
<RtypesCore.h>
#include
<cstddef>
#include
<cstdint>
class
CbmTsEventHeader
:
public
FairEventHeader
{
...
...
@@ -21,7 +22,7 @@ public:
virtual
~
CbmTsEventHeader
()
{};
/** Get the Start time of the this Timeslice linked to this event header*/
ULong
64_t
GetTsStartTime
()
{
return
fTsStartTime
;
}
uint
64_t
GetTsStartTime
()
{
return
fTsStartTime
;
}
/** @brief Get the number of digis in this Ts */
ULong64_t
GetNDigisPsd
(
ULong64_t
)
{
return
fNDigisPsd
;
}
...
...
@@ -35,7 +36,7 @@ public:
ULong64_t
GetNDigisTrd2D
(
ULong64_t
)
{
return
fNDigisTrd2D
;
}
/** @brief Set the Ts Start Time @param value Start time of the TS */
void
SetTsStartTime
(
ULong
64_t
value
)
{
fTsStartTime
=
value
;
}
void
SetTsStartTime
(
uint
64_t
value
)
{
fTsStartTime
=
value
;
}
/** @brief Set the number of digis in this Ts */
void
SetNDigisPsd
(
ULong64_t
value
)
{
fNDigisPsd
=
value
;
}
...
...
@@ -50,8 +51,8 @@ public:
protected
:
/**
Run Id
*/
ULong
64_t
fTsStartTime
=
0
;
/**
Timeslice start time
*/
uint
64_t
fTsStartTime
=
0
;
ULong64_t
fNDigisPsd
=
0
;
ULong64_t
fNDigisRich
=
0
;
...
...
This diff is collapsed.
Click to expand it.
macro/run/run_unpack_tsa.C
+
1
−
37
View file @
ac94a162
...
...
@@ -27,42 +27,6 @@
std
::
shared_ptr
<
CbmTrdUnpackMonitor
>
GetTrdMonitor
(
std
::
string
treefilename
);
std
::
shared_ptr
<
CbmTrdSpadic
>
GetTrdSpadic
(
bool
useAvgBaseline
=
false
);
/** @brief Macro for CBM reconstruction
** @author Volker Friese <v.friese@gsi.de>
** @since 14 November 2020
** @param input Name of input file (w/o extension .raw.root)
** @param nTimeSlices Number of time-slices to process
** @param firstTimeSlice First time-slice (entry) to be processed
** @param output Name of output file (w/o extension .rec.root)
** @param sEvBuildRaw Option for raw event building
** @param setup Name of predefined geometry setup
** @param paramFile Parameter ROOT file (w/o extension .par.root)
** @param useMC Option to provide the trackfinder with MC information
**
** This macro performs from the digis in a time-slice. It can be used
** for simulated data (result of run_digi.C) or real data after unpacking.
**
** The macro covers both time-based reconstruction and event-based
** reconstruction using raw events build from digis. This can be selected
** by the forth argument. If left empty, no raw event builder will be
** employed and reconstruction will be time-based. The option "Ideal"
** selects the ideal raw event builder, which associates digis to events
** based on the MC truth. The option "Real" selects a real raw event builder
** (latest version, for older versions use "Real2018" or "Real2019").
**
**
** The file names must be specified without extensions. The convention is
** that the raw (input) file is [input].raw.root. The output file
** will be [input].rec.root if not specified by the user. The parameter file
** has the extension .par.root. It is assumed to be [input].par.root if
** not specified by the user.
**
** If no argument is specified, the input will be set to "test". This allows
** to execute the macro chain (run_tra_file.C, run_digi.C and run_reco.C)
** from the ROOT prompt without user intervention.
**
**/
void
run_unpack_tsa
(
std
::
string
infile
=
"test.tsa"
,
UInt_t
runid
=
0
,
const
char
*
setupName
=
"mcbm_beam_2021_03"
,
std
::
int32_t
nevents
=
-
1
,
std
::
string
outpath
=
""
)
{
...
...
@@ -124,7 +88,7 @@ void run_unpack_tsa(std::string infile = "test.tsa", UInt_t runid = 0, const cha
auto
trdconfig
=
std
::
make_shared
<
CbmTrdUnpackConfig
>
(
trdsetuptag
.
Data
(),
3
);
// trdconfig->SetDebugState();
trdconfig
->
SetDoWriteOutput
();
trdconfig
->
SetDoWriteOptOutA
(
CbmTrdRawMessageSpadic
::
GetBranchName
());
//
trdconfig->SetDoWriteOptOutA(CbmTrdRawMessageSpadic::GetBranchName());
// trdconfig->SetDoWriteOptOutB("SpadicInfoMessages"); // SpadicInfoMessages
std
::
string
parfilesbasepathTrd
=
Form
(
"%s/parameters/trd"
,
srcDir
.
Data
());
...
...
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