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
8c308f63
Commit
8c308f63
authored
3 years ago
by
lintao@ihep.ac.cn
Browse files
Options
Downloads
Patches
Plain Diff
add the parser.
parent
5b696022
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Generator/src/GtBeamBackgroundTool.cpp
+1
-1
1 addition, 1 deletion
Generator/src/GtBeamBackgroundTool.cpp
Generator/src/IBeamBackgroundFileParser.h
+44
-0
44 additions, 0 deletions
Generator/src/IBeamBackgroundFileParser.h
with
45 additions
and
1 deletion
Generator/src/GtBeamBackgroundTool.cpp
+
1
−
1
View file @
8c308f63
#include
"GtBeamBackgroundTool.h"
#include
"IBeamBackgroundFileParser.h"
DECLARE_COMPONENT
(
GtBeamBackgroundTool
)
StatusCode
GtBeamBackgroundTool
::
initialize
()
{
...
...
This diff is collapsed.
Click to expand it.
Generator/src/IBeamBackgroundFileParser.h
0 → 100644
+
44
−
0
View file @
8c308f63
#ifndef IBeamBackgroundFileParser_h
#define IBeamBackgroundFileParser_h
/*
* Description:
* This interface is used to load the beam background information, such as:
* - pdgid (optional)
* About the pdgid, it will be e+/e- in most cases.
* - x/y/z
* - t (optional)
* - px/py/pz
* About the time, it could be set in the GtBeamBackgroundTool.
*
* Author:
* Tao Lin <lintao AT ihep.ac.cn>
*/
class
IBeamBackgroundFileParser
{
public:
// Internal used Data
struct
BeamBackgroundData
{
int
pdgid
;
double
x
;
// unit: mm
double
y
;
// unit: mm
double
z
;
// unit: mm
double
t
;
// unit: ns
double
px
;
// unit: GeV
double
py
;
// unit: GeV
double
pz
;
// unit: GeV
double
mass
;
// unit: GeV
BeamBackgroundData
()
:
pdgid
(
11
),
x
(
0
),
y
(
0
),
z
(
0
),
t
(
0
),
px
(
0
),
py
(
0
),
pz
(
0
),
mass
(
0
)
{}
};
// return false if failed to load the data
virtual
bool
load
(
BeamBackgroundData
&
)
=
0
;
};
#endif
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