Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Riccardo Longo
JZCaPA
Commits
1561c7e7
Commit
1561c7e7
authored
Apr 24, 2022
by
Chad Lantz
Browse files
Corrected nPhotons calculation
parent
76e85140
Changes
1
Hide whitespace changes
Inline
Side-by-side
Analysis/src/WFAnalysis.cpp
View file @
1561c7e7
...
...
@@ -207,7 +207,7 @@ void WFAnalysis::AnalyzeEvent( const std::vector< Channel* > vCh ){
for
(
int
hit
=
0
;
hit
<
Ch
->
nHits
;
hit
++
){
Ch
->
Charge
.
push_back
(
GetCharge
(
Ch
,
Ch
->
hit_window
.
first
[
hit
],
Ch
->
hit_window
.
second
[
hit
]
)
);
Ch
->
nPhotons
.
push_back
(
-
Ch
->
Charge
.
back
()
*
6.241e6
/
Ch
->
gain
);
//
6.241e6 is electrons per pC
Ch
->
nPhotons
.
push_back
(
-
Ch
->
Charge
.
back
()
/
(
1.60218e-7
*
Ch
->
gain
)
);
//
1.60218e-7 is pC per electron
//Get peak information from the waveform using the hit window
Ch
->
Peak_center
.
push_back
(
GetMaximumBin
(
hProcessed
,
Ch
->
hit_window
.
first
[
hit
],
Ch
->
hit_window
.
second
[
hit
]
)
);
...
...
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