Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Peter Sherwood
athena
Commits
7f914918
Commit
7f914918
authored
4 years ago
by
Andrii Verbytskyi
Committed by
Frank Winklmeier
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Migration of GenzModuleEvent to HepMC3
parent
48f16bae
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
Generators/GenzModuleEvent/GenzModuleEvent/KineHepMcmap.h
+1
-4
1 addition, 4 deletions
Generators/GenzModuleEvent/GenzModuleEvent/KineHepMcmap.h
Generators/GenzModuleEvent/src/KineHepMcmap.cxx
+6
-16
6 additions, 16 deletions
Generators/GenzModuleEvent/src/KineHepMcmap.cxx
with
7 additions
and
20 deletions
Generators/GenzModuleEvent/GenzModuleEvent/KineHepMcmap.h
+
1
−
4
View file @
7f914918
/*
Copyright (C) 2002-20
17
CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-20
20
CERN for the benefit of the ATLAS collaboration
*/
#ifndef KINEHEPMCMAP_H
...
...
@@ -17,10 +17,7 @@ public:
HepMC
::
GenParticlePtr
givekine_getParticle
(
const
int
ikine
)
const
;
private:
const
HepMC
::
GenEvent
*
m_evt
;
//const int m_vertex_offset;
const
int
m_kine_offset
;
//const int m_mbias_int_kine_offset;
//const int m_mbias_noint_kine_offset;
};
...
...
This diff is collapsed.
Click to expand it.
Generators/GenzModuleEvent/src/KineHepMcmap.cxx
+
6
−
16
View file @
7f914918
...
...
@@ -27,22 +27,12 @@ KineHepMcmap::giveParticle_getkine (HepMC::GenParticlePtr p ) const
HepMC
::
GenParticlePtr
KineHepMcmap
::
givekine_getParticle
(
const
int
kine
)
const
{
if
(
kine
<=
0
)
return
0
;
HepMC
::
GenParticlePtr
part
=
nullptr
;
bool
not_found
=
true
;
HepMC
::
GenEvent
::
particle_const_iterator
p
=
m_evt
->
particles_begin
();
do
if
(
kine
<=
0
)
return
nullptr
;
for
(
HepMC
::
GenParticlePtr
part
:
*
m_evt
)
{
int
pkine
=
giveParticle_getkine
(
*
p
);
if
(
pkine
==
kine
)
{
not_found
=
false
;
part
=
*
p
;
}
++
p
;
}
while
(
p
!=
m_evt
->
particles_end
()
&&
not_found
);
return
part
;
if
(
giveParticle_getkine
(
part
)
==
kine
)
return
part
;
}
return
nullptr
;
}
...
...
@@ -57,7 +47,7 @@ KineHepMcmap::givekine_getParticle ( const int kine ) const
// int kine = 120;
// HepMC::KineHepMcmap kinm(evt ) ;
// HepMC::GenParticle
*
myparticle = kinm.givekine_getParticle( kine);
// HepMC::GenParticle
Ptr
myparticle = kinm.givekine_getParticle( kine);
// int mykine = kinm.giveParticle_getkine( myparticle);
// cout << "KineHepMcmap geant particle 120 = " << mykine << endl;
// if (myparticle) myparticle->print();
...
...
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