Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CEPCSW
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
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
dhb112358@mail.ustc.edu.cn
CEPCSW
Commits
a5e5ad0e
Commit
a5e5ad0e
authored
7 months ago
by
lintao@ihep.ac.cn
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' into 'master'
Beam bkg charge added See merge request
!65
parents
2543b17c
c47eaf37
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+1
-1
1 addition, 1 deletion
.gitignore
Generator/src/BeamBackgroundFileParserV1.cpp
+1
-0
1 addition, 0 deletions
Generator/src/BeamBackgroundFileParserV1.cpp
Generator/src/BeamBackgroundFileParserV1.h
+1
-1
1 addition, 1 deletion
Generator/src/BeamBackgroundFileParserV1.h
with
3 additions
and
2 deletions
.gitignore
+
1
−
1
View file @
a5e5ad0e
...
...
@@ -4,4 +4,4 @@ spack*
./Generator/output/
./Generator/options/
InstallArea/
\ No newline at end of file
InstallArea/
This diff is collapsed.
Click to expand it.
Generator/src/BeamBackgroundFileParserV1.cpp
+
1
−
0
View file @
a5e5ad0e
...
...
@@ -51,6 +51,7 @@ bool BeamBackgroundFileParserV1::load(IBeamBackgroundFileParser::BeamBackgroundD
// Now, we get a almost valid data
const
double
m2mm
=
1e3
;
// convert from m to mm
result
.
pdgid
=
pid
;
result
.
charge
=
(
pid
==
11
)
?
-
1
:
(
pid
==
-
11
)
?
1
:
-
1
;
result
.
x
=
x
*
m2mm
;
result
.
y
=
y
*
m2mm
;
result
.
z
=
(
z
+
dz
)
*
m2mm
;
...
...
This diff is collapsed.
Click to expand it.
Generator/src/BeamBackgroundFileParserV1.h
+
1
−
1
View file @
a5e5ad0e
...
...
@@ -23,7 +23,7 @@ private:
double
m_timewindow
;
double
x
,
y
,
z
,
cosx
,
cosy
,
dz
,
dp
,
cosz
;
int
pid
;
int
pid
,
charge
;
};
...
...
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