Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CEPCSW_OTE_development
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
yudian2002@sjtu.edu.cn
CEPCSW_OTE_development
Commits
d62ceeef
Commit
d62ceeef
authored
1 year ago
by
lintao@ihep.ac.cn
Browse files
Options
Downloads
Patches
Plain Diff
clean the code.
parent
c5e879e3
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
Generator/src/LCAscHepRdr.cc
+9
-8
9 additions, 8 deletions
Generator/src/LCAscHepRdr.cc
with
9 additions
and
8 deletions
Generator/src/LCAscHepRdr.cc
+
9
−
8
View file @
d62ceeef
...
...
@@ -65,7 +65,7 @@ namespace UTIL{
std
::
getline
(
inputFile
,
line
);
std
::
stringstream
ss_
(
line
);
ss_
>>
NHEP
>>
NOUT
>>
BRE
>>
WEIGHT
;
std
::
cout
<<
"NHEP: "
<<
NHEP
<<
std
::
endl
;
//
std::cout << "NHEP: " << NHEP << std::endl;
if
(
inputFile
.
eof
()
)
{
//
...
...
@@ -79,7 +79,7 @@ namespace UTIL{
// Create a Collection Vector
//
mcVec
=
new
IMPL
::
LCCollectionVec
(
LCIO
::
MCPARTICLE
);
std
::
cout
<<
"mc size: "
<<
mcVec
->
size
()
<<
std
::
endl
;
//
std::cout << "mc size: " << mcVec->size() << std::endl;
MCParticleImpl
*
p
;
MCParticleImpl
*
d
;
...
...
@@ -108,7 +108,10 @@ namespace UTIL{
for
(
int
IHEP
=
0
;
IHEP
<
NHEP
;
IHEP
++
)
{
std
::
getline
(
inputFile
,
line
);
std
::
cout
<<
"LINE: "
<<
line
<<
std
::
endl
;
if
(
inputFile
.
eof
())
return
nullptr
;
// std::cout << "LINE: " << line << std::endl;
std
::
stringstream
ss
(
line
);
if
(
theFileFormat
==
HEPEvt
)
...
...
@@ -123,10 +126,8 @@ namespace UTIL{
>>
VHEP1
>>
VHEP2
>>
VHEP3
>>
VHEP4
;
std
::
cout
<<
"ISTHEP: "
<<
ISTHEP
<<
std
::
endl
;
//
std::cout << "ISTHEP: " << ISTHEP << std::endl;
if
(
inputFile
.
eof
())
return
nullptr
;
//
// Create a MCParticle and fill it from stdhep info
//
...
...
@@ -135,7 +136,7 @@ namespace UTIL{
// PDGID
//
mcp
->
setPDG
(
IDHEP
);
std
::
cout
<<
"PDG: "
<<
IDHEP
<<
std
::
endl
;
//
std::cout << "PDG: " << IDHEP << std::endl;
//
// Momentum vector
//
...
...
@@ -233,7 +234,7 @@ namespace UTIL{
//
for
(
int
IHEP
=
0
;
IHEP
<
NHEP
;
IHEP
++
)
{
continue
;
//
continue;
//
// Get the MCParticle
//
...
...
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