| 1 | # Test Detector Group |
|---|
| 2 | |
|---|
| 3 | # Any MAPS file other than a calibration run can be used here. |
|---|
| 4 | # If copied across, the accompanying files may also need to be copied across to ensure grouping. |
|---|
| 5 | path = r"C:/Temp/" # Path name of folder containing input and output files |
|---|
| 6 | filename = 'MAPS17275.raw' # Name of calibration run |
|---|
| 7 | |
|---|
| 8 | # Get calibration raw file and integrate it |
|---|
| 9 | WS = Load(path+filename) #'raw' in 'rawCalibInstWS' means unintegrated. |
|---|
| 10 | |
|---|
| 11 | group = WS.getDetector(2) |
|---|
| 12 | IDs = group.getDetectorIDs() |
|---|
| 13 | names = group.getName() |
|---|
| 14 | fullNames = group.getFullName() |
|---|
| 15 | sep = group.getNameSeparator() |
|---|
| 16 | print "Detector IDs",IDs |
|---|
| 17 | print "Detector names",names |
|---|
| 18 | print "Detector full names",fullNames |
|---|
| 19 | print "The separator",sep,"should occur after each name in the detector names and full names." |
|---|