Skip to content

Commit 6269ef9

Browse files
authored
Merge pull request #61 from DUNE/reco_parent
Adding parent/children info for reco particles
2 parents dc36563 + f9983b2 commit 6269ef9

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

duneanaobj/StandardRecord/SRRecoParticle.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ namespace caf
4444

4545
RecoObjType origRecoObjType = RecoObjType::kUnknownRecoObj; ///< Is this a track or a shower?
4646

47+
int parent = -1; ///< Index of parent SRRecoParticle in the same branch, defaults to -1 if no parent
48+
std::vector<unsigned int> daughters; ///< Indices of daughters SRRecoParticles in the same branch
49+
4750
std::vector<TrueParticleID> truth; ///< Associated SRTrueParticle(s), if relevant (use SRTruthBranch::Particle() with these IDs to grab them)
4851
std::vector<float> truthOverlap; ///< Fractional overlap between this reco particle and true particle
4952
};

duneanaobj/StandardRecord/classes_def.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@
9999
<version ClassVersion="10" checksum="684361603"/>
100100
</class>
101101

102-
<class name="caf::SRRecoParticle" ClassVersion="15">
102+
<class name="caf::SRRecoParticle" ClassVersion="16">
103+
<version ClassVersion="16" checksum="4230274279"/>
103104
<version ClassVersion="15" checksum="4130745478"/>
104105
<version ClassVersion="14" checksum="621972464"/>
105106
<version ClassVersion="13" checksum="2634132066"/>

0 commit comments

Comments
 (0)