Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Corryvreckan
Corryvreckan
Commits
f9150298
Commit
f9150298
authored
Apr 15, 2021
by
Jens Kroeger
Browse files
AnalysisDUT: new histograms for cluster charge and seed charge vs col/row
parent
3a335c4f
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/modules/AnalysisDUT/AnalysisDUT.cpp
View file @
f9150298
...
...
@@ -52,15 +52,15 @@ void AnalysisDUT::initialize() {
m_detector
->
nPixels
().
Y
()
-
0.5
,
0
,
100
);
hClusterSize
v
sColAssoc
=
new
TProfile
(
"clusterSize
v
sColAssoc"
,
hClusterSize
V
sColAssoc
=
new
TProfile
(
"clusterSize
V
sColAssoc"
,
"cluster size vs. column for assoc clusters;cluster row;mean cluster size"
,
m_detector
->
nPixels
().
X
(),
-
0.5
,
m_detector
->
nPixels
().
X
()
-
0.5
,
0
,
100
);
hClusterSize
v
sRowAssoc
=
new
TProfile
(
"clusterSize
v
sRowAssoc"
,
"cluster size vs. row for assoc clusters;luster row;mean cluster size"
,
hClusterSize
V
sRowAssoc
=
new
TProfile
(
"clusterSize
V
sRowAssoc"
,
"cluster size vs. row for assoc clusters;
c
luster row;mean cluster size"
,
m_detector
->
nPixels
().
Y
(),
-
0.5
,
m_detector
->
nPixels
().
Y
()
-
0.5
,
...
...
@@ -76,15 +76,15 @@ void AnalysisDUT::initialize() {
m_detector
->
nPixels
().
Y
()
-
0.5
,
0
,
500
);
hClusterCharge
v
sColAssoc
=
new
TProfile
(
"clusterCharge
v
sColAssoc"
,
hClusterCharge
V
sColAssoc
=
new
TProfile
(
"clusterCharge
V
sColAssoc"
,
"cluster charge vs. column for assoc clusters;cluster row;mean cluster charge [e]"
,
m_detector
->
nPixels
().
X
(),
-
0.5
,
m_detector
->
nPixels
().
X
()
-
0.5
,
0
,
100
);
hClusterCharge
v
sRowAssoc
=
new
TProfile
(
"clusterCharge
v
sRowAssoc"
,
hClusterCharge
V
sRowAssoc
=
new
TProfile
(
"clusterCharge
V
sRowAssoc"
,
"cluster charge vs. row for assoc clusters;cluster row;mean cluster charge [e]"
,
m_detector
->
nPixels
().
Y
(),
-
0.5
,
...
...
@@ -92,6 +92,23 @@ void AnalysisDUT::initialize() {
0
,
100
);
hSeedChargeVsColAssoc
=
new
TProfile
(
"seedChargeVsColAssoc"
,
"seed pixel charge vs. column for assoc clusters;cluster row;mean seed pixel charge [e]"
,
m_detector
->
nPixels
().
X
(),
-
0.5
,
m_detector
->
nPixels
().
X
()
-
0.5
,
0
,
100
);
hSeedChargeVsRowAssoc
=
new
TProfile
(
"seedChargeVsRowAssoc"
,
"seed pixel charge vs. row for assoc clusters;cluster row;mean seed pixel charge [e]"
,
m_detector
->
nPixels
().
Y
(),
-
0.5
,
m_detector
->
nPixels
().
Y
()
-
0.5
,
0
,
100
);
hTrackZPosDUT
=
new
TH1F
(
"globalTrackZPosOnDUT"
,
"Global z-position of track on the DUT; global z of track intersection [mm]; #entries "
,
400
,
...
...
@@ -164,12 +181,11 @@ void AnalysisDUT::initialize() {
10000
,
0
,
10000
);
clusterSeedChargeAssoc
=
new
TH1F
(
"clusterSeedChargeAssociated"
,
"Charge distribution of seed pixels for associated clusters;seed pixel charge [e];# entries"
,
10000
,
0
,
10000
);
seedChargeAssoc
=
new
TH1F
(
"seedChargeAssociated"
,
"Charge distribution of seed pixels for associated clusters;seed pixel charge [e];# entries"
,
10000
,
0
,
10000
);
clusterSizeAssoc
=
new
TH1F
(
"clusterSizeAssociated"
,
"Size distribution of associated clusters;cluster size; # entries"
,
30
,
-
0.5
,
29.5
);
clusterSizeAssocNorm
=
...
...
@@ -528,8 +544,8 @@ StatusCode AnalysisDUT::run(const std::shared_ptr<Clipboard>& clipboard) {
hClusterMapAssoc
->
Fill
(
assoc_cluster
->
column
(),
assoc_cluster
->
row
());
hClusterSizeMapAssoc
->
Fill
(
assoc_cluster
->
column
(),
assoc_cluster
->
row
(),
static_cast
<
double
>
(
assoc_cluster
->
size
()));
hClusterSize
v
sColAssoc
->
Fill
(
assoc_cluster
->
column
(),
static_cast
<
double
>
(
assoc_cluster
->
size
()));
hClusterSize
v
sRowAssoc
->
Fill
(
assoc_cluster
->
row
(),
static_cast
<
double
>
(
assoc_cluster
->
size
()));
hClusterSize
V
sColAssoc
->
Fill
(
assoc_cluster
->
column
(),
static_cast
<
double
>
(
assoc_cluster
->
size
()));
hClusterSize
V
sRowAssoc
->
Fill
(
assoc_cluster
->
row
(),
static_cast
<
double
>
(
assoc_cluster
->
size
()));
// Cluster charge normalized to path length in sensor:
double
norm
=
1
;
// FIXME fabs(cos( turn*wt )) * fabs(cos( tilt*wt ));
...
...
@@ -539,10 +555,12 @@ StatusCode AnalysisDUT::run(const std::shared_ptr<Clipboard>& clipboard) {
// clusterChargeAssoc->Fill(normalized_charge);
clusterChargeAssoc
->
Fill
(
cluster_charge
);
clusterS
eedChargeAssoc
->
Fill
(
assoc_cluster
->
getSeedPixel
()
->
charge
());
s
eedChargeAssoc
->
Fill
(
assoc_cluster
->
getSeedPixel
()
->
charge
());
hClusterChargeMapAssoc
->
Fill
(
assoc_cluster
->
column
(),
assoc_cluster
->
row
(),
cluster_charge
);
hClusterChargevsColAssoc
->
Fill
(
assoc_cluster
->
column
(),
cluster_charge
);
hClusterChargevsRowAssoc
->
Fill
(
assoc_cluster
->
row
(),
cluster_charge
);
hClusterChargeVsColAssoc
->
Fill
(
assoc_cluster
->
column
(),
cluster_charge
);
hClusterChargeVsRowAssoc
->
Fill
(
assoc_cluster
->
row
(),
cluster_charge
);
hSeedChargeVsColAssoc
->
Fill
(
assoc_cluster
->
column
(),
assoc_cluster
->
getSeedPixel
()
->
charge
());
hSeedChargeVsRowAssoc
->
Fill
(
assoc_cluster
->
row
(),
assoc_cluster
->
getSeedPixel
()
->
charge
());
// Fill per-pixel histograms
for
(
auto
&
pixel
:
assoc_cluster
->
pixels
())
{
...
...
src/modules/AnalysisDUT/AnalysisDUT.h
View file @
f9150298
...
...
@@ -14,6 +14,7 @@
#include <TCanvas.h>
#include <TH1F.h>
#include <TH2F.h>
#include <TProfile.h>
#include <TProfile2D.h>
#include <iostream>
#include "core/module/Module.hpp"
...
...
@@ -39,8 +40,9 @@ namespace corryvreckan {
// Histograms
TH2F
*
hClusterMapAssoc
,
*
hHitMapAssoc
;
TProfile2D
*
hClusterSizeMapAssoc
,
*
hClusterChargeMapAssoc
;
TProfile
*
hClusterSizevsColAssoc
,
*
hClusterSizevsRowAssoc
;
TProfile
*
hClusterChargevsColAssoc
,
*
hClusterChargevsRowAssoc
;
TProfile
*
hClusterSizeVsColAssoc
,
*
hClusterSizeVsRowAssoc
;
TProfile
*
hClusterChargeVsColAssoc
,
*
hClusterChargeVsRowAssoc
;
TProfile
*
hSeedChargeVsColAssoc
,
*
hSeedChargeVsRowAssoc
;
TH1F
*
hPixelRawValueAssoc
;
TProfile2D
*
hPixelRawValueMapAssoc
;
...
...
@@ -56,7 +58,7 @@ namespace corryvreckan {
TH1F
*
residualsXatLeast5pix
,
*
residualsYatLeast5pix
;
TH1F
*
clusterChargeAssoc
;
TH1F
*
clusterS
eedChargeAssoc
;
TH1F
*
s
eedChargeAssoc
;
TH1F
*
clusterSizeAssoc
;
TH1F
*
clusterSizeAssocNorm
;
TH1F
*
clusterWidthRowAssoc
;
...
...
Write
Preview
Supports
Markdown
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