Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
JZCaPA
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Riccardo Longo
JZCaPA
Commits
1561c7e7
Commit
1561c7e7
authored
3 years ago
by
Chad Lantz
Browse files
Options
Downloads
Patches
Plain Diff
Corrected nPhotons calculation
parent
76e85140
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Analysis/src/WFAnalysis.cpp
+1
-1
1 addition, 1 deletion
Analysis/src/WFAnalysis.cpp
with
1 addition
and
1 deletion
Analysis/src/WFAnalysis.cpp
+
1
−
1
View file @
1561c7e7
...
@@ -207,7 +207,7 @@ void WFAnalysis::AnalyzeEvent( const std::vector< Channel* > vCh ){
...
@@ -207,7 +207,7 @@ void WFAnalysis::AnalyzeEvent( const std::vector< Channel* > vCh ){
for
(
int
hit
=
0
;
hit
<
Ch
->
nHits
;
hit
++
){
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
->
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
//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
]
)
);
Ch
->
Peak_center
.
push_back
(
GetMaximumBin
(
hProcessed
,
Ch
->
hit_window
.
first
[
hit
],
Ch
->
hit_window
.
second
[
hit
]
)
);
...
...
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