Skip to content

Commit 79155d5

Browse files
committed
Fixed the variables used to identify if the vertex was on the foil only for electrons and alphas, where was left untouched, and wrong, from issue SuperNEMO-DBD#26
1 parent 676cf36 commit 79155d5

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ filename_out : string[1] = "my_filename.root"
151151

152152
**reco.vertices_in_tracker** : Number of charged particle tracks with a vertex on the foil or on the wires (was `reco.vertices_on_foil`).
153153

154-
**reco.electrons_from_foil** : Vector of booleans corresponding to the electron candidates in descending order of energy. True if the electron candidate has a vertex on the source foil, false if not.
154+
**reco.electrons_from_foil** : Vector of booleans corresponding to the electron candidates in descending order of energy. True if the electron candidate has a vertex on the source foil (only), false if not.
155155

156156
**reco.electron_vertex_x(y,z)** : Vector of the x(y,z) position of the foilmost vertex of each electron candidate in descending order of energy. The x direction is Italy to France (foil is at x ~ 0). The y direction is horizontal, parallel to the foil, you can see it in top view (tunnel to mountain). The z direction is vertical (0 in the middle).
157157

@@ -201,7 +201,7 @@ reco.foil_projected_external_probability** : As internal and external probabilit
201201
**reco.delayed_cluster_hit_count** : Number of hits in the delayed cluster. Used to determine the correct
202202
metric for calculating the alpha track and alpha projected track lengths
203203

204-
**reco.foil_alpha_count** : Number of alphas with a vertex identified as being on the source foil
204+
**reco.foil_alpha_count** : Number of alphas with a vertex identified as being on the source foil (only)
205205

206206
**reco.alpha_track_length** : Length in mm of the delayed track. This length is calculated in different ways depending on the number of hits in the delayed cluster. This is due to the way < 3 hit tracks are treated by alpha finder. More detail is provided in code comments.
207207

SensitivityModule.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -443,8 +443,8 @@ SensitivityModule::process(datatools::things& workItem) {
443443
InsertAt(trackDetails,electronCandidateDetails,pos);
444444
// And we also want a vector of electron charges (they might be positrons)
445445
InsertAt(trackDetails.GetCharge(),electronCharges,pos);
446-
// And whether or not they are from the foil
447-
InsertAt(trackDetails.HasTrackerVertex(),electronsFromFoil,pos);
446+
// And whether or not they are from the foil only
447+
InsertAt(trackDetails.HasFoilVertex(),electronsFromFoil,pos);
448448
// Vertices, directions, and vertices if projected back to foil
449449
InsertAt(trackDetails.GetFoilmostVertex(),electronVertices,pos);
450450
InsertAt(trackDetails.GetProjectedVertex(),electronProjVertices,pos);
@@ -463,7 +463,7 @@ SensitivityModule::process(datatools::things& workItem) {
463463
alphaVertices.push_back(trackDetails.GetFoilmostVertex());
464464
alphaDirections.push_back(trackDetails.GetDirection());
465465
alphaProjVertices.push_back(trackDetails.GetProjectedVertex());
466-
if (trackDetails.HasTrackerVertex()) foilAlphaCount++;
466+
if (trackDetails.HasFoilVertex()) foilAlphaCount++;
467467
// Time of first delayed hit
468468
trajClDelayedTime.push_back(trackDetails.GetDelayTime());
469469
delayedClusterHitCount = trackDetails.GetTrackerHitCount(); // This will get overwritten if there are 2+ alphas, is that really what we want?

0 commit comments

Comments
 (0)