Skip to content

Commit

Permalink
Immediately deprecate compatibility overloads
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Feb 13, 2024
1 parent b9b8c0f commit b7c29f4
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions edm4hep.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ datatypes:
int32_t set_bit(int32_t val, int num, bool bitval){ return (val & ~(1<<num)) | (bitval << num); }\n
void setOverlay(bool val) { setQuality( set_bit( getQuality() , BITOverlay , val ) ) ; }\n
void setProducedBySecondary(bool val) { setQuality( set_bit( getQuality() , BITProducedBySecondary , val ) ) ; }\n
[[deprecated("use setParticle instead")]]
void setMCParticle(edm4hep::MCParticle particle) { setParticle(std::move(particle)); }\n
"
ExtraCode:
Expand All @@ -248,6 +249,7 @@ datatypes:
double y() const {return getPosition()[1];}\n
double z() const {return getPosition()[2];}\n
double rho() const {return sqrt(x()*x() + y()*y());}\n
[[deprecated("use getParticle instead")]]
edm4hep::MCParticle getMCParticle() const { return getParticle(); }\n
"
Expand Down Expand Up @@ -537,11 +539,17 @@ datatypes:
#include <cmath>\n
#include <edm4hep/MCParticle.h>\n
"
declaration: "void setMCParticle(edm4hep::MCParticle particle) { setParticle(std::move(particle)); }\n"
declaration: "
[[deprecated("use setParticle instead")]]
void setMCParticle(edm4hep::MCParticle particle) { setParticle(std::move(particle)); }\n
"
ExtraCode:
includes: "#include <edm4hep/MCParticle.h>\n"
declaration: "edm4hep::MCParticle getMCParticle() const { return getParticle(); }\n"
declaration: "
[[deprecated("use getParticle instead")]]
edm4hep::MCParticle getMCParticle() const { return getParticle(); }\n
"
#---------- TrackerPulse
edm4hep::TrackerPulse:
Expand Down

0 comments on commit b7c29f4

Please sign in to comment.