Commit in projects/lcdd/branches/v05-00-00-dev/src/lcdd/detectors on MAIN | |||
DDSegmentationCalorimeterHitProcessor.cc | +5 | -4 | 3245 -> 3246 |
Checkin code that causes Seg Fault so it is repeatable by others.
--- projects/lcdd/branches/v05-00-00-dev/src/lcdd/detectors/DDSegmentationCalorimeterHitProcessor.cc 2014-08-11 19:00:16 UTC (rev 3245) +++ projects/lcdd/branches/v05-00-00-dev/src/lcdd/detectors/DDSegmentationCalorimeterHitProcessor.cc 2014-08-11 19:00:57 UTC (rev 3246) @@ -64,13 +64,14 @@
// Get the encoded 64-bit cell ID from the Segmentation. long cellId = segmentation->cellID(localPosition, globalPosition, volumeId);
+ G4cout << "fieldDescription = " << segmentation->decoder()->fieldDescription() << G4endl;
segmentation->decoder()->setValue(cellId);
- //int ix = segmentation->decoder()->index("x"); - //int iy = segmentation->decoder()->index("y");
+ int ix = segmentation->decoder()->index("x"); + int iy = segmentation->decoder()->index("y");
- //G4cout << "x = " << segmentation->decoder()[(int)ix] << G4endl; - //G4cout << "y = " << segmentation->decoder()[(int)iy] << G4endl;
+ G4cout << "x = " << segmentation->decoder()[ix] << G4endl; + G4cout << "y = " << segmentation->decoder()[iy] << G4endl;
// Check for an existing hit with this identifier. CalorimeterHit* hit = _calorimeter->getCalorimeterHitMap(getCollectionIndex())->get(cellId);
Use REPLY-ALL to reply to list
To unsubscribe from the LCDET-SVN list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=LCDET-SVN&A=1