Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
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
atlas
athena
Merge requests
!37769
Manual Sweep: improveVMMSpeed
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Manual Sweep: improveVMMSpeed
pscholer/athena:vmmCPUImprovements_master
into
master
Overview
2
Commits
1
Pipelines
1
Changes
3
Merged
Patrick Scholer
requested to merge
pscholer/athena:vmmCPUImprovements_master
into
master
4 years ago
Overview
2
Commits
1
Pipelines
1
Changes
3
Expand
Improve VMM CPU performance
See merge request
!37699 (merged)
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
18c5debf
1 commit,
4 years ago
3 files
+
125
−
64
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
MuonSpectrometer/MuonDigitization/MM_Digitization/MM_Digitization/VMM_Shaper.h
+
12
−
12
Options
@@ -5,40 +5,40 @@
#ifndef MM_DIGITIZATION_VMM_SHAPER_H
#define MM_DIGITIZATION_VMM_SHAPER_H
#include
<TH1F.h>
#include
<vector>
class
VMM_Shaper
{
public:
VMM_Shaper
(
float
peakTime
);
VMM_Shaper
(
const
float
peakTime
,
const
float
lowerTimeWindow
,
const
float
upperTimeWindow
);
virtual
~
VMM_Shaper
()
=
default
;
void
initialize
();
void
vmmPeakResponse
(
const
std
::
vector
<
float
>
effectiveCharge
,
const
std
::
vector
<
float
>
electronsTime
,
const
double
electronicsThreshold
,
double
&
amplitudeFirstPeak
,
double
&
timeFirstPeak
)
const
;
void
vmmThresholdResponse
(
const
std
::
vector
<
float
>
effectiveCharge
,
const
std
::
vector
<
float
>
electronsTime
,
const
double
electronicsThreshold
,
double
&
amplitudeAtFirstPeak
,
double
&
timeAtThreshold
)
const
;
void
vmmPeakResponse
(
const
std
::
vector
<
float
>
&
effectiveCharge
,
const
std
::
vector
<
float
>
&
electronsTime
,
const
double
electronicsThreshold
,
double
&
amplitudeFirstPeak
,
double
&
timeFirstPeak
)
const
;
void
vmmThresholdResponse
(
const
std
::
vector
<
float
>
&
effectiveCharge
,
const
std
::
vector
<
float
>
&
electronsTime
,
const
double
electronicsThreshold
,
double
&
amplitudeAtFirstPeak
,
double
&
timeAtThreshold
)
const
;
bool
hasChargeAboveThreshold
(
const
std
::
vector
<
float
>
&
effectiveCharge
,
const
std
::
vector
<
float
>
&
electronsTime
,
const
double
&
electronicsThreshold
)
const
;
bool
hasChargeAboveThreshold
(
const
std
::
vector
<
float
>
&
effectiveCharge
,
const
std
::
vector
<
float
>
&
electronsTime
,
const
double
electronicsThreshold
)
const
;
private:
double
m_peakTime
;
double
m_
timeStep
;
double
m_maxTime
;
double
m_
lowerTimeWindow
,
m_upperTimeWindow
;
double
m_timeStep
,
m_inverseTimeStep
;
double
m_preCalculationVMMShaper
;
// shaper parameters
double
m_a
,
m_pole0
,
m_re_pole1
,
m_im_pole1
,
m_pole1_square
,
m_k1_abs
,
m_argK1
;
int
m_nBins
;
double
m_peakTimeChargeScaling
;
void
vmmResponse
(
const
std
::
vector
<
float
>
&
effectiveCharge
,
const
std
::
vector
<
float
>
&
electronsTime
,
TH1F
&
respons
e
)
const
;
int
findPeak
(
const
TH1F
&
respons
e
,
const
double
&
electronicsThreshold
)
const
;
double
vmmResponse
(
const
std
::
vector
<
float
>
&
effectiveCharge
,
const
std
::
vector
<
float
>
&
electronsTime
,
double
tim
e
)
const
;
double
findPeak
(
const
std
::
vector
<
float
>
&
effectiveCharge
,
const
std
::
vector
<
float
>
&
electronsTim
e
,
const
double
electronicsThreshold
)
const
;
bool
aboveThresholdSimple
(
const
std
::
vector
<
float
>
&
effectiveCharge
,
const
std
::
vector
<
float
>
&
electronsTime
,
const
double
electronicsThreshold
)
const
;
};
#endif // MM_DIGITIZATION_VMM_SHAPER_H
\ No newline at end of file
#endif // MM_DIGITIZATION_VMM_SHAPER_H
Loading