Skip to content

Commit 221407e

Browse files
committed
feat: also provide deprecated setters (which don't set anything)
1 parent a311943 commit 221407e

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

edm4eic.yaml

+44
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,17 @@ datatypes:
528528
[[deprecated(\"use getRec().getObjectID().index instead\")]]
529529
int getRecID() const { return getRec().getObjectID().index; }\n
530530
"
531+
MutableExtraCode:
532+
includes: "
533+
#include <edm4eic/ReconstructedParticle.h>\n
534+
#include <edm4hep/MCParticle.h>\n
535+
"
536+
declaration: "
537+
[[deprecated(\"use setSim() instead; this function does nothing\")]]
538+
void getSimID(int) { }\n
539+
[[deprecated(\"use setRec() instead; this function does nothing\")]]
540+
void getRecID(int) { }\n
541+
"
531542

532543
edm4eic::MCRecoClusterParticleAssociation:
533544
Description: "Association between a Cluster and a MCParticle"
@@ -548,6 +559,17 @@ datatypes:
548559
[[deprecated(\"use getRec().getObjectID().index instead\")]]
549560
int getRecID() const { return getRec().getObjectID().index; }\n
550561
"
562+
MutableExtraCode:
563+
includes: "
564+
#include <edm4eic/Cluster.h>\n
565+
#include <edm4hep/MCParticle.h>\n
566+
"
567+
declaration: "
568+
[[deprecated(\"use setSim() instead; this function does nothing\")]]
569+
void getSimID(int) { }\n
570+
[[deprecated(\"use setRec() instead; this function does nothing\")]]
571+
void getRecID(int) { }\n
572+
"
551573

552574
edm4eic::MCRecoTrackParticleAssociation:
553575
Description: "Association between a Track and a MCParticle"
@@ -568,6 +590,17 @@ datatypes:
568590
[[deprecated(\"use getRec().getObjectID().index instead\")]]
569591
int getRecID() const { return getRec().getObjectID().index; }\n
570592
"
593+
MutableExtraCode:
594+
includes: "
595+
#include <edm4eic/Track.h>\n
596+
#include <edm4hep/MCParticle.h>\n
597+
"
598+
declaration: "
599+
[[deprecated(\"use setSim() instead; this function does nothing\")]]
600+
void getSimID(int) { }\n
601+
[[deprecated(\"use setRec() instead; this function does nothing\")]]
602+
void getRecID(int) { }\n
603+
"
571604

572605
edm4eic::MCRecoVertexParticleAssociation:
573606
Description: "Association between a Vertex and a MCParticle"
@@ -588,6 +621,17 @@ datatypes:
588621
[[deprecated(\"use getRec().getObjectID().index instead\")]]
589622
int getRecID() const { return getRec().getObjectID().index; }\n
590623
"
624+
MutableExtraCode:
625+
includes: "
626+
#include <edm4eic/Vertex.h>\n
627+
#include <edm4hep/MCParticle.h>\n
628+
"
629+
declaration: "
630+
[[deprecated(\"use setSim() instead; this function does nothing\")]]
631+
void getSimID(int) { }\n
632+
[[deprecated(\"use setRec() instead; this function does nothing\")]]
633+
void getRecID(int) { }\n
634+
"
591635

592636
edm4eic::MCRecoTrackerHitAssociation:
593637
Description: "Association between a RawTrackerHit and a SimTrackerHit"

0 commit comments

Comments
 (0)