Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Volker Friese
cbmroot
Commits
4005d876
Commit
4005d876
authored
Jul 14, 2021
by
Volker Friese
Browse files
Revert accidental previous commit.
parent
d22d5c6f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
5 deletions
+36
-5
macro/run/run_unpack_tsa.C
macro/run/run_unpack_tsa.C
+36
-5
No files found.
macro/run/run_unpack_tsa.C
View file @
4005d876
/** @file run_
reco
_tsa.C
/** @file run_
unpack
_tsa.C
** @author Volker Friese <v.friese@gsi.de>
** @since
Jul
y 2021
** @since
Ma
y 2021
**/
...
...
@@ -28,12 +28,43 @@ std::shared_ptr<CbmTrdUnpackMonitor> GetTrdMonitor(std::string treefilename);
std
::
shared_ptr
<
CbmTrdSpadic
>
GetTrdSpadic
(
bool
useAvgBaseline
=
false
);
/** @brief Macro for CBM reconstruction
from raw data (timeslice archive)
/** @brief Macro for CBM reconstruction
** @author Volker Friese <v.friese@gsi.de>
** @since 14 July 2021
** @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
n
T
s
=
-
1
,
std
::
string
outpath
=
""
)
std
::
int32_t
n
event
s
=
-
1
,
std
::
string
outpath
=
""
)
{
// ========================================================================
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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