Commit ffcf6f7
Truth Matching (JeffersonLab#649)
* truth matching. first commit
* fix acceptance cuts
* switch level for debug printouts
* Merged with the development
* Added a note reminding that Truth matching engine should be added
* The MC Truth Matching engine is added in the EngineProcessor.java
* The EngineProcessor.java is updated to process Truth matching
* All stylish modifications. Just need to switchth beanch, that is way commiting
* some imports are not used, so they are commented
* Printout changes only
* Temporarily changing the maximum Evio even size from 500kb to 2500Kb, to perform reconstruction for Truth Matching at JLab. So I need to push to git
* evio2hipo: patch to get corrected pointers from MC::true to ECAL ADC/TDC banks
* In the ECAL::hits bank now it fills the variale id, which points to the row number of the corresponding hit in the ADC bank
* Added the variable clusterId in the ECAL::hits bank
* Just small change in the info field of the clusterId
* this.peakStrips exists, but there is not getter method. Adding a getter method for it
* added the clusterId, and getter and setter methods for it intto the ECStrip class
* When cluster gets defined. we fill cluster Ids for strips that the given cluster belongs to
* Added to filling the bank ECAL::hits with the variable clusterId
* Looping over clusters and then filling clusterid for it
* Formating changes were undone in ECEngine.java, and necesarry additions were added. This way it should be easier to compare in pull request
* Travis build failed, Rafaella suggested to add this lines in the mc/pom that could fix it
* Following lines are added to make the Travis build to not fail
* In EngineProcessor commenting the Original TruthMarching Engine, and addinf the new 'TruthMatch' for tests
* Still incmplete version, but Need to commit it before I can sync my version with the development version
* a comma was missing in a previous commiit in the EngineProcessor.java file
* Not a final working version yet, but before concluding the work for today, committing all changes
* The p-index variable is added in the MC::IsParticleMatched bank, which points to the p-index of the recon particle
* TruthMatch.java has the initial version of Matching for photons in PCal/ECal. Note at this moment there is still an issue with some events, when we find a cluster which is not assiciated to any Rec Hit in the PCal/ECal
* reconstruction/mc/pom.xml version is updated to be the same as the one in the development
* version change in the reconstruction/mc/pom.xml to be the same as in the development branch
* Some printout are cleaned, and in the map matched_PCalcounts.get(match.pindex), before accessing an entry with a given key, we checked whether they key exist. Without it it was causing Null ptr exception
* TruthMatch.java: in the getECalHits, one more argument is added, which is Map of MC hits for ECal detector. and before adding the RecHit to the return list, it checks if the hit is associated to any MC::Hit, if not then the hit is not added. The reason is that this hit will not be processed later. So removing them
* The Matching of neutrals in FTCal is added. Not tested yet. Next steps are tests
* Added a condition, to check if the FTCal cluster is associated to any recon particle, to prevent exceptions, as in FTCal any single hit is a cluster, but not necesairly a recon particle. Also some printouts re commented
* The CND part of TruthMatch is added. Not tested yet, next step is testing
* In the if statement for matching of neutrals it is also added an additionanal *or* to check if the mcp is neutron.
* CTOF matching is added
* CND and CTOF cluster banke names were missspelled. This commit is a fix of those.
* intermediat printouts. Need to change the branch, thus committing
* Some fiagnostic printouts are cleaned
* In the reconstruction/mc/pom.xml, 6.5.9-SNAPSHOT changed to 6.5.11-SNAPSHOT, Not sure why it was not committed before
* Some printout were commented, which were there for diagnostic purposes
* the link between the CND(CTOF)::hits hits, and the MC::True hit is fixed, i.e. id is replaced by indexLtdc/2 for CND, and tdc_idx1/2
* The pom for MC is updated
* An additional getMCHits, and additional check is added to make sure the map has the given key
* CTOF hitID was wrong, unlike to CND, we should not have devided it by 2
* Work in progress, just need to change branch
* In the pom the version is updated
* Work in progress, just need to change the branch
* Just some comments are modified/added, Work in progress
* Cleaned up the TruthMatching bank, and also added a *LayersTrkMC* variable which encodes which layer of the detector the given MCParticle hit
* Work in progress, just need to push into github
* The variable name *LayersTrkMC* is changed to *MCLayersTrk*
* BST MC hits are added into MCLayersTrk
* RecLayersTrk variable is added in the IsParticleMatched bank
* Now matching is reading the REC::Particle bank, and also for each MCPartilce it fills the variable RecLayersTrk, representing which layers contributed to the given RecParticle
* Cosmetic change
* the MC pom file is changed to reflect new changes
* WIP need to change the branch
* the trkID interpretation was wrong. It was fixed, now going from the RecHit to p-index is correct for BST and BMT
* In the MCRecMatch RecLayersTrk is now note solely depends o the RecPartilce, but instead on the combination of MC::Particle and Rec::Particle, i.e. it represents hit layers of MC::Particle that are matched only to the corresponding Rec Particle. Before in cases, when more than one MC particle is matched to the given Rec::particle, then that potentially would represent hits from all MC::particles
* MCLayersNeut and RecLayersNeut are added, though
* Some printouts which were useed for debugging were commented
* Two methods are added CountNSetBits and CheckDCAcceptance, to count set bits in a certain range and also to check whether the track is in DC acceptance
* The file has not beed saved in the previous commit, so saved again
* This file was the one developed by Franchesco, so in otder to avoid accidental use of it, it will be removed in this branch, and hence will not go into the development branch
* A commented line was removed, for the code to look more clean
* jsut a space is added
* Two lines are commented, that will not print WARNING message for every event, which doesn't have MC::Trur or MC::Particle bank
* In bin/hipo-utils it was /bin/bash instead of /bin/sh. Don't exactly remember why. It is changed bac to sh. Thanks to Nathan for noticing
* The hipo3 json file was changed, i.e. truth matching bank to be same variables as the hipo4 bank
* MC::MatchedClusters was a bank whcih was used in the initial version of the Truth Matching to be used for debugging ( I think), and was introduced by Francesco, however we are not filling this bank anymore, so we just drop it
* During the SWO meeting it was decided to change Event size requiremet from 2500kB to 500kB as soon we expect gemc will output into hipo. Then someone who wants to use it, can manualy change to 2500 kB as a temporary solution
Co-authored-by: fbossu <[email protected]>
Co-authored-by: Raffaella De Vita <[email protected]>1 parent d8d906e commit ffcf6f7
File tree
13 files changed
+1902
-12
lines changed- common-tools/clas-reco/src/main/java/org/jlab/clas/reco
- io
- etc/bankdefs
- hipo4
- hipo
- reconstruction
- ec/src/main/java/org/jlab/service/ec
- mc
- src/main/java/org/jlab/service/mc
13 files changed
+1902
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
103 | 104 | | |
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
| 104 | + | |
104 | 105 | | |
105 | 106 | | |
106 | 107 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
573 | 573 | | |
574 | 574 | | |
575 | 575 | | |
| 576 | + | |
| 577 | + | |
576 | 578 | | |
577 | 579 | | |
578 | 580 | | |
| |||
601 | 603 | | |
602 | 604 | | |
603 | 605 | | |
604 | | - | |
| 606 | + | |
605 | 607 | | |
606 | 608 | | |
607 | 609 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
98 | 111 | | |
| 112 | + | |
99 | 113 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
103 | 117 | | |
| 118 | + | |
104 | 119 | | |
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
| 228 | + | |
228 | 229 | | |
229 | 230 | | |
230 | 231 | | |
| |||
379 | 380 | | |
380 | 381 | | |
381 | 382 | | |
382 | | - | |
| 383 | + | |
383 | 384 | | |
384 | 385 | | |
385 | 386 | | |
| |||
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
61 | 78 | | |
62 | 79 | | |
63 | 80 | | |
| |||
102 | 119 | | |
103 | 120 | | |
104 | 121 | | |
| 122 | + | |
| 123 | + | |
105 | 124 | | |
106 | 125 | | |
107 | 126 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
105 | 109 | | |
106 | 110 | | |
107 | 111 | | |
| |||
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
| |||
167 | 169 | | |
168 | 170 | | |
169 | 171 | | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
170 | 189 | | |
171 | 190 | | |
172 | 191 | | |
| |||
0 commit comments