Skip to content

Commit 8c845f6

Browse files
Merge pull request #66 from DUNE/feature/ingratta_add_shower_track_fields_and_link_recoparticle
added SRShower-related fields + unique id to link SRTrack/SRShower to SRRecoParticle obj
2 parents 9b507f4 + 8750d43 commit 8c845f6

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

duneanaobj/StandardRecord/SRRecoParticle.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ namespace caf
2222

2323
public:
2424
static constexpr int kPdgHadronicBlob = 2000000002; ///< Special PDG code used for a "hadronic blob" (usu. calorimetrically reconstructed), borrowed from GENIE
25-
25+
2626
bool primary = false; ///< Is this reco particle a "primary" one (i.e. emanates directly from the reconstructed vertex)?
2727

2828
int pdg = 0; ///< PDG code inferred for this particle.

duneanaobj/StandardRecord/SRShower.h

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,22 @@ namespace caf
1616
class SRShower
1717
{
1818
public:
19+
// less typing further below
20+
static constexpr float NaN = std::numeric_limits<float>::signaling_NaN();
21+
1922
SRVector3D start; ///< Shower 3D start point [cm]
20-
SRVector3D direction; ///< Shower 3D end point [cm]
23+
SRVector3D direction; ///< Shower direction (unit vector).
24+
25+
double time = NaN; ///< Time of shower formation [ns]
26+
2127
float Evis = -999.; ///< Visible energy in voxels corresponding to this shower
28+
29+
float qual = NaN; ///< Reco-specific quality metric (for istance trackScore value)
30+
31+
float len_cm = NaN; ///< Shower length [cm]. The definition is reco-dependent; consult the documentation of the specific reconstruction algorithm (e.g. Pandora, SPINE) for its exact meaning before use.
32+
33+
float initial_dEdx; ///< dE/dx value at the shower start
34+
float conversionGap; ///< Spatial distance between the photon creation and its conversion into e+e- pair [cm]
2235

2336
std::vector<TrueParticleID> truth; ///< Associated SRTrueParticle(s), if relevant (use SRTruthBranch::Particle() with these IDs to grab them)
2437
std::vector<float> truthOverlap; ///< Fractional overlap between this shower and true particle

0 commit comments

Comments
 (0)