Skip to content

Commit

Permalink
Add extra code for the old type
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Feb 22, 2024
1 parent 9a2dfb8 commit f477416
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions edm4hep.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -457,11 +457,15 @@ datatypes:
ExtraCode:
declaration: "
bool isCompound() const { return particles_size() > 0 ;}\n
[[deprecated(\"use setPDG instead\")]]\n
int32_t getType() const { return getPDG(); }\n
"
MutableExtraCode:
declaration: "
//vertex where the particle decays This method actually returns the start vertex from the first daughter particle found.\n
//TODO: edm4hep::Vertex getEndVertex() { return edm4hep::Vertex( (getParticles(0).isAvailable() ? getParticles(0).getStartVertex() : edm4hep::Vertex(0,0) ) ) ; }\n
[[deprecated(\"use setPDG instead\")]]\n
void setType(int32_t pdg) { setPDG(pdg); }\n
"

edm4hep::MCRecoParticleAssociation:
Expand Down

0 comments on commit f477416

Please sign in to comment.