Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Corryvreckan
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
Fabian Simon Lex
Corryvreckan
Commits
ab0c90b3
Commit
ab0c90b3
authored
2 years ago
by
Paul Schuetze
Browse files
Options
Downloads
Patches
Plain Diff
BigPixel: add variable uncertainty depending on cluster position
parent
548129ee
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/core/detector/BigPixelDetector.cpp
+34
-0
34 additions, 0 deletions
src/core/detector/BigPixelDetector.cpp
src/core/detector/BigPixelDetector.hpp
+16
-0
16 additions, 0 deletions
src/core/detector/BigPixelDetector.hpp
with
50 additions
and
0 deletions
src/core/detector/BigPixelDetector.cpp
+
34
−
0
View file @
ab0c90b3
...
...
@@ -177,6 +177,40 @@ ROOT::Math::XYVector BigPixelDetector::getSize() const {
m_pitch
.
Y
()
*
(
m_nPixels
.
Y
()
+
static_cast
<
double
>
(
big_pixel_y
.
size
())));
}
XYVector
BigPixelDetector
::
getSpatialResolution
(
double
column
=
0
,
double
row
=
0
)
const
{
bool
is_big_x_pixel
=
0
;
bool
is_big_y_pixel
=
0
;
for
(
unsigned
int
i
=
0
;
i
<
big_pixel_x
.
size
();
i
++
)
{
if
(
fabs
(
column
-
big_pixel_x
[
i
])
<
0.5
)
{
is_big_x_pixel
=
true
;
break
;
}
}
for
(
unsigned
int
i
=
0
;
i
<
big_pixel_y
.
size
();
i
++
)
{
if
(
fabs
(
row
-
big_pixel_y
[
i
])
<
0.5
)
{
is_big_y_pixel
=
true
;
break
;
}
}
double
resolution_x
=
is_big_x_pixel
?
2
*
m_spatial_resolution
.
x
()
:
m_spatial_resolution
.
x
();
double
resolution_y
=
is_big_y_pixel
?
2
*
m_spatial_resolution
.
y
()
:
m_spatial_resolution
.
y
();
return
XYVector
(
resolution_x
,
resolution_y
);
}
TMatrixD
BigPixelDetector
::
getSpatialResolutionMatrixGlobal
(
double
column
=
0
,
double
row
=
0
)
const
{
TMatrixD
errorMatrix
(
3
,
3
);
TMatrixD
locToGlob
(
3
,
3
),
globToLoc
(
3
,
3
);
auto
spatial_resolution
=
getSpatialResolution
(
column
,
row
);
errorMatrix
(
0
,
0
)
=
spatial_resolution
.
x
()
*
spatial_resolution
.
x
();
errorMatrix
(
1
,
1
)
=
spatial_resolution
.
y
()
*
spatial_resolution
.
y
();
alignment_
->
local2global
().
Rotation
().
GetRotationMatrix
(
locToGlob
);
alignment_
->
global2local
().
Rotation
().
GetRotationMatrix
(
globToLoc
);
return
(
locToGlob
*
errorMatrix
*
globToLoc
);
}
Configuration
BigPixelDetector
::
getConfiguration
()
const
{
auto
config
=
PixelDetector
::
getConfiguration
();
...
...
This diff is collapsed.
Click to expand it.
src/core/detector/BigPixelDetector.hpp
+
16
−
0
View file @
ab0c90b3
...
...
@@ -42,6 +42,22 @@ namespace corryvreckan {
// Function to get local position from column (x) and row (y) coordinates
PositionVector3D
<
Cartesian3D
<
double
>>
getLocalPosition
(
double
column
,
double
row
)
const
override
;
/**
* @brief Get intrinsic spatial resolution of the detector
* @return Intrinsic spatial resolution in X and Y
*
* @note For a detector with variable pixel sizes this declaration could be changed to take column and row pixel
* indices to calculate the resolution for a specific pixel
*/
XYVector
getSpatialResolution
(
double
,
double
)
const
override
;
/**
* @brief Get intrinsic spatial resolution in global coordinates of the detector
* @return Intrinsic spatial resolution in global X and Y
*/
TMatrixD
getSpatialResolutionMatrixGlobal
(
double
,
double
)
const
override
;
ROOT
::
Math
::
XYVector
getSize
()
const
override
;
/**
...
...
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