1414import { switchCase } from '/js/src/index.js' ;
1515import { getRemoteData } from '../../utilities/fetch/getRemoteData.js' ;
1616import { ObservableData } from '../../utilities/ObservableData.js' ;
17- import { DetectorType , DATA_TAKING_DETECTOR_TYPES } from '../../domain/enums/DetectorTypes.js' ;
17+ import { DetectorType , DATA_TAKING_DETECTOR_TYPES , QC_DETECTORS } from '../../domain/enums/DetectorTypes.js' ;
1818
1919import { NonPhysicalDetector } from '../../domain/enums/detectorsNames.mjs' ;
2020
@@ -36,7 +36,7 @@ const getPhysicalDetectorsFromAllDetectors = (allDetectors) => allDetectors.filt
3636 * @return {Detector[] } QC detectors
3737 */
3838const getQcDetectorsFromAllDetectors = ( allDetectors ) => allDetectors
39- . filter ( ( { type, name } ) => [ DetectorType . PHYSICAL , DetectorType . QC_ONLY ] . includes ( type ) && ! DETECTORS_EXCLUDED_FROM_QC . includes ( name ) ) ;
39+ . filter ( ( { type, name } ) => QC_DETECTORS . includes ( type ) && ! DETECTORS_EXCLUDED_FROM_QC . includes ( name ) ) ;
4040
4141/**
4242 * Service class to fetch detectors from the backend
@@ -78,7 +78,10 @@ export class DetectorsProvider extends RemoteDataProvider {
7878 [ DetectorType . OTHER ] : 0 ,
7979 [ DetectorType . VIRTUAL ] : 1 ,
8080 [ DetectorType . PHYSICAL ] : 2 ,
81- [ DetectorType . QC_ONLY ] : 3 ,
81+ [ DetectorType . AOT_GLO ] : 3 ,
82+ [ DetectorType . AOT_EVENT ] : 4 ,
83+ [ DetectorType . MUON_GLO ] : 5 ,
84+ [ DetectorType . QC_ONLY ] : 6 ,
8285 } ) ;
8386 data . sort ( ( { name : name1 , type : type1 } , { name : name2 , type : type2 } ) =>
8487 - ( typeToOrderingKey ( type1 ) - typeToOrderingKey ( type2 ) ) * 10 + name1 . localeCompare ( name2 ) ) ;
0 commit comments