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
Haoyu Shi
CEPCSW
Commits
c47eaf37
Commit
c47eaf37
authored
7 months ago
by
Zhan Li
Committed by
lintao@ihep.ac.cn
7 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Beam bkg charge added
parent
c5211f03
No related branches found
Branches containing commit
No related tags found
Tags containing commit
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 @
c47eaf37
...
@@ -4,4 +4,4 @@ spack*
...
@@ -4,4 +4,4 @@ spack*
./Generator/output/
./Generator/output/
./Generator/options/
./Generator/options/
InstallArea/
InstallArea/
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Generator/src/BeamBackgroundFileParserV1.cpp
+
1
−
0
View file @
c47eaf37
...
@@ -51,6 +51,7 @@ bool BeamBackgroundFileParserV1::load(IBeamBackgroundFileParser::BeamBackgroundD
...
@@ -51,6 +51,7 @@ bool BeamBackgroundFileParserV1::load(IBeamBackgroundFileParser::BeamBackgroundD
// Now, we get a almost valid data
// Now, we get a almost valid data
const
double
m2mm
=
1e3
;
// convert from m to mm
const
double
m2mm
=
1e3
;
// convert from m to mm
result
.
pdgid
=
pid
;
result
.
pdgid
=
pid
;
result
.
charge
=
(
pid
==
11
)
?
-
1
:
(
pid
==
-
11
)
?
1
:
-
1
;
result
.
x
=
x
*
m2mm
;
result
.
x
=
x
*
m2mm
;
result
.
y
=
y
*
m2mm
;
result
.
y
=
y
*
m2mm
;
result
.
z
=
(
z
+
dz
)
*
m2mm
;
result
.
z
=
(
z
+
dz
)
*
m2mm
;
...
...
This diff is collapsed.
Click to expand it.
Generator/src/BeamBackgroundFileParserV1.h
+
1
−
1
View file @
c47eaf37
...
@@ -23,7 +23,7 @@ private:
...
@@ -23,7 +23,7 @@ private:
double
m_timewindow
;
double
m_timewindow
;
double
x
,
y
,
z
,
cosx
,
cosy
,
dz
,
dp
,
cosz
;
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