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
Sergey Zharko
cbmroot
Commits
a4a08463
Commit
a4a08463
authored
Nov 04, 2021
by
Dominik Smith
Browse files
Improved QA output for event builder and seed finder.
parent
de1ceba4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
7 deletions
+21
-7
macro/run/run_reco.C
macro/run/run_reco.C
+1
-0
reco/eventbuilder/digis/CbmBuildEventsQa.cxx
reco/eventbuilder/digis/CbmBuildEventsQa.cxx
+10
-6
reco/eventbuilder/digis/CbmSeedFinderSlidingWindow.cxx
reco/eventbuilder/digis/CbmSeedFinderSlidingWindow.cxx
+5
-0
reco/eventbuilder/digis/CbmSeedFinderSlidingWindow.h
reco/eventbuilder/digis/CbmSeedFinderSlidingWindow.h
+5
-1
No files found.
macro/run/run_reco.C
View file @
a4a08463
...
...
@@ -229,6 +229,7 @@ void run_reco(TString input = "", Int_t nTimeSlices = -1, Int_t firstTimeSlice =
//evBuildRaw->SetReferenceDetector(kRawEventBuilderDetUndef);
//evBuildRaw->AddSeedTimeFillerToList(kRawEventBuilderDetSts);
//evBuildRaw->SetSlidingWindowSeedFinder(1000, 500, 500);
//evBuildRaw->SetSeedFinderQa(true); // optional QA information for seed finder
evBuildRaw
->
SetTsParameters
(
0
.
0
,
1.e7
,
0
.
0
);
...
...
reco/eventbuilder/digis/CbmBuildEventsQa.cxx
View file @
a4a08463
...
...
@@ -98,15 +98,19 @@ InitStatus CbmBuildEventsQa::Init()
// --- Init histograms
histFolder
=
fOutFolder
.
AddFolder
(
"hist"
,
"Histogramms"
);
fhCorrectDigiRatioAll
=
new
TH1F
(
"fhCorrectDigiRatioAll"
,
"
\% c
orrect digis per event
"
,
1001
,
0.
,
100.
1
);
fhFoundDigiRatioAll
=
new
TH1F
(
"fhFoundDigiRatioAll"
,
"
\% f
ound digis per event
"
,
1001
,
0.
,
100.
1
);
fhCorrectDigiRatioAll
=
new
TH1F
(
"fhCorrectDigiRatioAll"
,
"
C
orrect digis per event
[pct]"
,
402
,
-
0.
25
,
100.
25
);
fhFoundDigiRatioAll
=
new
TH1F
(
"fhFoundDigiRatioAll"
,
"
F
ound digis per event
[pct]"
,
402
,
-
0.
25
,
100.
25
);
histFolder
->
Add
(
fhCorrectDigiRatioAll
);
histFolder
->
Add
(
fhFoundDigiRatioAll
);
for
(
ECbmModuleId
&
system
:
fSystems
)
{
TString
h1name
=
"fhCorrectDigiRatio"
+
CbmModuleList
::
GetModuleNameCaps
(
system
);
TString
h2name
=
"fhFoundDigiRatio"
+
CbmModuleList
::
GetModuleNameCaps
(
system
);
fhMapSystemsCorrectDigi
[
system
]
=
new
TH1F
(
h1name
,
"\% correct digis per event"
,
1001
,
0.
,
100.1
);
fhMapSystemsFoundDigi
[
system
]
=
new
TH1F
(
h2name
,
"\% found digis per event"
,
1001
,
0.
,
100.1
);
TString
h1name
=
"fhCorrectDigiRatio"
+
CbmModuleList
::
GetModuleNameCaps
(
system
);
TString
h2name
=
"fhFoundDigiRatio"
+
CbmModuleList
::
GetModuleNameCaps
(
system
);
fhMapSystemsCorrectDigi
[
system
]
=
new
TH1F
(
h1name
,
Form
(
"Correct digis per event, %s [pct]"
,
(
CbmModuleList
::
GetModuleNameCaps
(
system
)).
Data
()),
402
,
-
0.25
,
100.25
);
fhMapSystemsFoundDigi
[
system
]
=
new
TH1F
(
h2name
,
Form
(
"Found digis per event, %s [pct]"
,
(
CbmModuleList
::
GetModuleNameCaps
(
system
)).
Data
()),
402
,
-
0.25
,
100.25
);
histFolder
->
Add
(
fhMapSystemsCorrectDigi
[
system
]);
histFolder
->
Add
(
fhMapSystemsFoundDigi
[
system
]);
}
...
...
reco/eventbuilder/digis/CbmSeedFinderSlidingWindow.cxx
View file @
a4a08463
...
...
@@ -87,6 +87,11 @@ void CbmSeedFinderSlidingWindow::FillSeedTimes(const std::vector<inType>* vIn, c
winStartT
=
GetTime
(
vIn
,
j
);
}
}
if
(
vDigiMatch
&&
fvEventMatches
)
{
// QA mode
std
::
cout
<<
"CbmSeedFinderSlidingWindow::FillSeedTimes(): Found "
<<
GetNofSeeds
()
<<
" seeds for this timeslice."
<<
std
::
endl
;
}
}
template
void
CbmSeedFinderSlidingWindow
::
FillSeedTimes
(
const
std
::
vector
<
CbmMuchBeamTimeDigi
>
*
,
const
std
::
vector
<
CbmMatch
>*
);
...
...
reco/eventbuilder/digis/CbmSeedFinderSlidingWindow.h
View file @
a4a08463
...
...
@@ -24,6 +24,7 @@
#include <vector>
#include <stdint.h>
#include <stdio.h>
class
CbmMatch
;
...
...
@@ -61,6 +62,9 @@ public:
template
<
class
inType
>
void
FillSeedTimes
(
const
std
::
vector
<
inType
>*
vIn
,
const
std
::
vector
<
CbmMatch
>*
vDigiMatch
=
nullptr
);
/** @brief Returns number of seed times currently stored in buffer. */
size_t
GetNofSeeds
()
{
return
fvSeedTimes
->
size
();
}
private:
/** @brief Output of the algorithm. Stores seed times for current time slice. */
std
::
vector
<
double
>*
fvSeedTimes
=
nullptr
;
...
...
@@ -96,4 +100,4 @@ private:
*/
void
FillEventMatch
(
int32_t
WinStart
,
int32_t
WinEnd
,
const
std
::
vector
<
CbmMatch
>*
vDigiMatch
);
};
#endif //CbmSeedFinderSlidingWindow_
tmpl
#endif //CbmSeedFinderSlidingWindow_
h
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