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 19, 2024
1 parent 8ab818c commit d18228d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions edm4hep.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,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")]]
[[deprecated(\"use setParticle instead\")]]
void setMCParticle(edm4hep::MCParticle particle) { setParticle(std::move(particle)); }\n
"
ExtraCode:
Expand All @@ -257,7 +257,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")]]
[[deprecated(\"use getParticle instead\")]]
edm4hep::MCParticle getMCParticle() const { return getParticle(); }\n
"

Expand Down Expand Up @@ -555,14 +555,14 @@ datatypes:
#include <edm4hep/MCParticle.h>\n
"
declaration: "
[[deprecated("use setParticle instead")]]
[[deprecated(\"use setParticle instead\")]]\n
void setMCParticle(edm4hep::MCParticle particle) { setParticle(std::move(particle)); }\n
"

ExtraCode:
includes: "#include <edm4hep/MCParticle.h>\n"
declaration: "
[[deprecated("use getParticle instead")]]
[[deprecated(\"use getParticle instead\")]]
edm4hep::MCParticle getMCParticle() const { return getParticle(); }\n
"

Expand Down

0 comments on commit d18228d

Please sign in to comment.