2 from AthenaCommon.Logging
import logging
3 log = logging.getLogger( __name__ )
4 log.debug(
"Importing %s",__name__)
6 from copy
import deepcopy
24 'Streaming' :
'streamer',
26 'Beamspot' :
'beamspot',
27 'EnhancedBias' :
'eb',
28 'UnconventionalTracking' : [
'isotrk',
'fslrt',
'dedxtrk',
'hitdvjet',
'fsvsi',
'distrk',
'dispjet',
'dispvtx'],
33 """Class to hold list of chains for each signature (dictionary with fixed set of keys)"""
34 _allowedSignatures = [
'Egamma',
'Muon',
'Jet',
'Bjet',
'Bphysics',
'MET',
'Tau',
35 'HeavyIon',
'Beamspot',
'Cosmic',
'EnhancedBias',
36 'Monitor',
'Calib',
'Streaming',
'Combined',
'MinBias',
37 'UnconventionalTracking',
'Test']
45 raise RuntimeError(f
"'{key}' is not in the list of allowed signatures: {self._allowedSignatures}")
47 dict.__setitem__(self, key, value)
60 'alignmentGroups' : [],
68 'extraComboHypos' : []
77 'signature' : [
'Test'],
78 'alignmentGroup' : [
'Test'],
81 'extra' : [
'mv1',
'mv1step',
'mv2',
'ev1',
'ev2',
'ev3',
'gv1',
'mEmpty1',
'mEmpty2',
'mEmpty3',
'ev1dr',
'mv1dr',
'merge'],
82 'trigType' : [
'TestChain'],
85 'sigFolder' : [
'Test'],
91 TestChainParts_Default = {
92 'signature' : [
'Test'],
93 'alignmentGroup' : [
'Test'],
99 'sigFolder' : [
'Test'],
100 'subSigs' : [
'Test'],
107 AllowedTopos_jet = []
110 JetRecoKeys = [
'recoAlg',
'constitType',
'clusterCalib',
'constitMod',
'jetCalib',
'trkopt',
'ionopt']
114 'signature' : [
'Jet'],
115 'alignmentGroup': [
'Jet',
'JetMET'],
117 'chainPartName' :
'',
121 'topo' : AllowedTopos_jet,
123 'addInfo' : [
'perf'],
124 'sigFolder' : [
'Jet'],
130 [
'a2',
'a4',
'a10',
'a10r',
'a10t',
'a10sd'],
138 [
'jes',
'subjes',
'subjesIS',
'subjesgscIS',
'subresjesgscIS',
'subjesgsc',
'subresjesgsc',
'nojcalib'],
144 [
'notrk',
'ftf',
'roiftf'],
208 'preselc60XXc45XXc25XXc20',
209 'preselc60XXj45XXf40',
210 'preselj60XXj45XXf40',
211 'presela60XXa40XX2a25',
223 'presel2c20XX2c20b85',
224 'presel2c20XX2c20b82',
225 'presel2c20XX2c20b80',
226 'presel2c20XX2c20bgtwo85',
227 'presel2c20XX2c20bg85',
228 'presel2c20XX2c20bg82',
229 'presel2c20XX2c20bg80',
230 'presel2c20XX2c20b90',
231 'presel3c20XX1c20b85',
232 'presel3c20XX1c20bg85',
235 'presel3c20XX1c20bgtwo85',
236 'presel2c20XX1c20bgtwo85XX1c20gntau90',
237 'presel2c20XX1c20bgtwo85XX1c20gntau85',
238 'presel2c20XX1c20bgtwo82XX1c20gntau85',
239 'presel2c20XX1c20bgtwo82XX1c20gntau80',
240 'presel2c20XX1c20bgtwo80XX1c20gntau80',
241 'presel5c25XXc25bgtwo85',
244 'presel2j25XX2j25bgtwo85',
245 'presel3j25XX2j25bgtwo85',
246 'preselj50bgtwo85XX3j50',
247 'preselj80XX2j45bgtwo90',
248 'preselj140bgtwo85XXj45bgtwo85',
249 'presel2a20bgtwo90XX2a20',
250 'presela20bgtwo85XX3a20',
251 'presel3c20XX1c20gntau90',
252 'presel3c20XX1c20gntau85',
258 'presel2j25XX2j25b85',
259 'presel3j25XX2j25b85',
260 'preselj50b85XX3j50',
261 'preselj80XX2j45b90',
262 'preselj140b85XXj45b85',
263 'presel5c25XXc25b85',
264 'presel2a20b90XX2a20',
265 'presela20b85XX3a20',
272 'preselZ167MAXMULT5cXX4c20',
273 'preselZ138MAXMULT5cXX4c20',
274 'preselZ126MAXMULT5cXX4c20',
275 'preselZ120MAXMULT20cXX4c85',
279 'preselZ120XX2c20XX2c20b85',
280 'preselZ138MAXMULT5cXX2c20XX2c20b85',
281 'preselZ84XX1c20XX2c20b85',
285 'preselZ120MAXMULT20cXX4c20',
286 'preselZ84MAXMULT20cXX3c20',
287 'preselZ116MAXMULT5cXX4c20',
288 'preselZ116MAXMULT20cXX4c20',
289 'preselZ84XX1c20XX2c20b85',
290 'preselZ128XX2c20XX2c20b85',
291 'preselZ128MAXMULT20cXX4c85',
292 'preselZ128XX4c20XX1j20',
293 'preselZ128XX3c20XX1c20bg85',
294 'preselZ116XX3c20XX1c20bg85',
308 'hypoScenario' : [
'simple',
312 'FBDJNOSHARED10etXX20etXX34massXX50fbet',
331 'DJMASS1000j50dphi240',
332 'DJMASS1000j50dphi200x400deta',
333 'DJMASS900j50dphi200x400deta',
334 'DJMASS1000j50dphi260x200deta',
335 'DJMASS900j50dphi260x200deta' ,
336 'DJMASS1000j50dphi260',
337 'DJMASS900j50dphi260',
338 'DJMASS1000j50x200deta',
339 'DJMASS900j50x200deta',
340 'DJMASS1000j30dphi260x200deta',
341 'DJMASS900j30dphi260x200deta',
342 'DIJET70j12etXX1000djmassXXdjdphi200XX400djdeta',
343 'DIJET80j12etXX0j12eta240XX700djmass',
353 'HT300XX10ptXX0eta490',
354 'HT300XX10ptXX0eta490XXveto',
355 'HT300XX15ptXX0eta490',
356 'HT300XX15ptXX0eta490XXveto',
357 'HT400XX15ptXX0eta490',
358 'HT400XX15ptXX0eta490XXveto',
364 'HT940XX0eta240XX020jvt',
367 'HT1000XX0eta240XX020jvt',
368 'HT50XX10etXX0eta320',
384 'MULT0mult11XX10ptXX0eta490',
385 'MULT0mult11XX15ptXX0eta490',
387 'exotHypo' : [
'emergingPTF0p2dR1p2',
'emergingPTF0p1dR1p2',
'emergingPTF0p09dR1p2',
'emergingPTF0p08dR1p2',
'emergingPTF0p075dR1p2',
'emergingPTF0p07dR1p2',
'emergingPTF0p0dR1p2',
388 'emergingPTF0p2dR0p4',
'emergingPTF0p1dR0p4',
'emergingPTF0p09dR0p4',
'emergingPTF0p08dR0p4',
'emergingPTF0p075dR0p4',
'emergingPTF0p07dR0p4',
'emergingPTF0p0dR0p4',
389 'tracklessdR1p2',
'tracklessdR0p4',
390 'calratio',
'calratiormbib',
'calratiovar',
'calratiovarrmbib',
391 'calratiovar103',
'calratiovar82',
'calratiovar59',
'calratiovar186',
'calratiovar150',
'calratiovar165'
399 [
'0eta290',
'0eta200',
'0eta180',
'0eta160',
'0eta140']
402 [
'010jvt',
'011jvt',
'015jvt',
'020jvt',
'050jvt',
'059jvt'],
404 [
'050momemfrac100',
'momemfrac006',
'momemfrac024',
'momemfrac012',
'momhecfrac010',
'050momemfrac100XXmomhecfrac010',
'momemfrac072',
'momemfrac048' ],
406 [
'2timing',
'2timing15'],
408 [
'1timeSig',
'1p5timeSig',
'2timeSig',
'3timeSig',
'2timeSig15',
'3timeSig15'],
410 [
'CLEANlb',
'CLEANllp',
'MASK300ceta210XX300nphi10',
417 'bsel': [
'95bdips',
'90bdips',
'85bdips',
'80bdips',
'77bdips',
'95bgnone',
'90bgnone',
'85bgnone',
'80bgnone',
'77bgnone',
'60bgntwox',
'70bgntwox',
'80bgntwox',
'90bgntwox',
'95bgntwo',
'90bgntwo',
'85bgntwo',
'80bgntwo',
'82bgntwo',
'77bgntwo',
'75bgntwo',
'60bgntwo'],
418 'tausel': [
'75gntau' ,
'80gntau',
'85gntau' ,
'90gntau' ],
420 [
'30smcINF',
'35smcINF',
'40smcINF',
'50smcINF',
'60smcINF',
'nosmc'],
423 'bTag' : [
'boffperf' ,
424 'bdl1r60',
'bdl1r70',
'bdl1r77',
'bdl1r85',
425 'bdl1d60',
'bdl1d65',
'bdl1d70',
'bdl1d72',
426 'bdl1d75',
'bdl1d77',
'bdl1d80',
'bdl1d82',
428 'bgn160',
'bgn165',
'bgn170',
'bgn172',
429 'bgn175',
'bgn177',
'bgn180',
'bgn182',
431 'bgn182bb96',
'bgn177bb96',
'bgn175bb90',
432 'bgn260',
'bgn265',
'bgn270',
'bgn272',
433 'bgn275',
'bgn277',
'bgn280',
'bgn282',
436 'bConfig' : [
'split',],
437 'bMatching' : [
'antimatchdr05mu'],
438 'tboundary' : [
'SHARED'],
441 'beamspotChain' : [
'beamspotVtx'],
443 [
'n041pileuprmn015' ],
447 JetChainParts_Default = {
448 'signature' : [
'Jet'],
449 'alignmentGroup': [
'Jet'],
457 'sigFolder' : [
'Jet'],
463 'clusterCalib' :
'em',
465 'jetCalib' :
'default',
469 'trkpresel' :
'nopresel',
471 'etaRange' :
'0eta320',
479 'hypoScenario' :
'simple',
490 'beamspotChain' :
'',
495 bJetChainParts_Default = {
496 'etaRange' :
'0eta290',
497 'sigFolder' : [
'Bjet'],
498 'subSigs' : [
'Bjet'],
502 BeamspotJetChainParts_Default = {
503 'signature' :
'Beamspot',
504 'alignmentGroup' : [
'Beamspot'],
505 'sigFolder' : [
'CalibCosmicMon'],
506 'subSigs' : [
'Beamspot'],
507 'beamspotChain' :
'',
515 'b7invmAB9vtx20',
'b11invmAB60vtx20',
'b11invmAB24vtx20',
'b24invmAB60vtx20',
521 'signature' : [
'Muon'],
522 'alignmentGroup' : [
'Muon',
'MuonnoL1'],
524 'chainPartName' : [],
527 'etaRange' : [
'0eta105'],
529 'tnpInfo' : [
'probe'],
530 'extra' : [
'noL1',
'lateMu',
"muoncalib" ,
'noL2Comb',
'vtx',
'mucombTag'],
532 'isoInfo' : [
'ivarloose',
'ivarmedium',
'ivarperf',
'iloosems'],
533 'l2AlgInfo' : [
'l2io',
'l2mt'],
534 'lrtInfo' : [
'd0loose',
'd0medium',
'd0tight'],
535 'invMassInfo' : [
'invmJPsiOS',
'invmDimu'],
536 'msonlyInfo' : [
'msonly'],
537 'addInfo' : [
'idperf',
'LRT',
'3layersEC',
'cosmic',
"muonqual",
"nscan",
"nscan10",
"nscan20",
"nscan30",
"nscan40",
'idtp',
'fT'],
538 'topo' : AllowedTopos_mu,
540 'sigFolder' : [
'Muon'],
541 'subSigs' : [
'Muon'],
545 MuonChainParts_Default = {
546 'signature' : [
'Muon'],
547 'alignmentGroup' : [
'Muon'],
551 'etaRange' :
'0eta250',
564 'sigFolder' : [
'Muon'],
565 'subSigs' : [
'Muon'],
572 AllowedTopos_Bphysics = [
573 'bJpsimumu',
'bJpsi',
'bJpsimutrk',
'bUpsimumu',
'bUpsi',
'bBmumu',
'bDimu',
'bDimu2700',
'bDimu6000',
'bPhi',
'bTau',
'b3mu',
574 'bBmumux',
'bBmux',
'b0dRAB12vtx20',
'b0dRAB127invmAB22vtx20',
'b0dRAB207invmAB22vtx20',
'b7invmAB22vtx20',
578 'Bidperf',
'BsmumuPhi',
'BpmumuKp',
'BcmumuPi',
'BdmumuKst',
'LbPqKm',
'BcmumuDsloose',
'BcmumuDploose',
'BcmumuD0Xloose',
'BcmumuDstarloose',
579 'BpmuD0X',
'BdmuDpX',
'BdmuDstarX',
'BsmuDsX',
'LbmuLcX',
581 'Lxy0',
'sigmaLxy3',
'noos',
'nocut',
'lowpt'
585 AllowedTopos_Bphysics_topoVariant = [
586 'Bidperf',
'BsmumuPhi',
'BpmumuKp',
'BcmumuPi',
'BdmumuKst',
'LbPqKm',
'BcmumuDsloose',
'BcmumuDploose',
'BcmumuD0Xloose',
'BcmumuDstarloose',
587 'BpmuD0X',
'BdmuDpX',
'BdmuDstarX',
'BsmuDsX',
'LbmuLcX'
589 AllowedTopos_Bphysics_topoExtra = [
'Lxy0',
'noos',
'nocut',
'lowpt']
590 AllAllowedTopos_Bphysics = AllowedTopos_Bphysics_topoVariant+AllowedTopos_Bphysics_topoExtra+AllowedTopos_Bphysics
593 BphysicsChainParts = deepcopy(MuonChainParts)
594 BphysicsChainParts[
'signature'] = [
'Bphysics']
595 BphysicsChainParts[
'sigFolder'] = [
'Bphysics']
596 BphysicsChainParts[
'subSigs'] = [
'Bphysics']
597 BphysicsChainParts[
'topo'] = AllowedTopos_Bphysics
600 BphysicsChainParts_Default = deepcopy(MuonChainParts_Default)
601 BphysicsChainParts_Default[
'signature'] = [
'Bphysics']
602 BphysicsChainParts_Default[
'sigFolder'] = [
'Bphysics']
603 BphysicsChainParts_Default[
'subSigs'] = [
'Bphysics']
604 BphysicsChainParts_Default[
'topo'] = []
610 AllowedTopos_tau = []
614 'signature' : [
'Tau'],
615 'alignmentGroup': [
'Tau'],
618 'chainPartName' :
'',
634 'jet' : [
'lc',
'pf'],
641 'looseRNN',
'mediumRNN',
'tightRNN',
644 'kaonpi1',
'kaonpi2',
'dipion1',
'dipion2',
'dipion3',
'dipion4',
'dikaonmass',
'singlepion',
647 'trigType' : [
'tau'],
648 'tnpInfo' : [
'probe'],
649 'topo' : AllowedTopos_tau,
650 'sigFolder' : [
'Tau'],
654 TauChainParts_Default = {
655 'signature' : [
'Tau'],
656 'alignmentGroup': [
'Tau'],
659 'chainPartName' :
'',
661 'reconstruction':
'',
669 'sigFolder' : [
'Tau'],
681 'signature' : [
'MET'],
682 'alignmentGroup' : [
'MET',
'JetMET'],
684 'chainPartName' :
'',
687 'topo' : AllowedTopos_xe,
690 'calib' : [
'lcw',
'em'],
691 'jetCalib' : JetChainParts[
'jetCalib'],
693 'EFrecoAlg' : [
'cell',
'tc',
'tcpufit',
'mht',
'trkmht',
'pfsum',
'cvfpufit',
'pfopufit',
'mhtpufit',
'nn'],
694 'constitType' : JetChainParts[
'constitType'],
695 'nSigma' : [
"default",
"sig30",
"sig35",
"sig40",
"sig45",
"sig50",
"sig55",
"sig60"],
698 'addInfo' : [
'FStracks'],
699 'sigFolder' : [
'MET'],
701 'constitmod' : [
'cssk',
'vssk'],
705 METChainParts_Default = {
706 'signature' : [
'MET'],
707 'alignmentGroup' : [
'MET'],
713 'jetCalib' : JetChainParts_Default[
'jetCalib'],
714 'nSigma' :
"default",
720 'constitType' :
'tc',
722 'sigFolder' : [
'MET'],
731 XSChainParts = METChainParts
732 XSChainParts[
'signature'] = [
'XS']
733 XSChainParts[
'trigType'] = [
'xs']
736 XSChainParts_Default = METChainParts_Default
737 XSChainParts_Default[
'signature'] = [
'XS']
738 XSChainParts_Default[
'trigType'] =
''
744 TEChainParts = METChainParts
745 TEChainParts[
'signature'] = [
'TE']
746 TEChainParts[
'trigType'] = [
'te']
749 TEChainParts_Default = METChainParts_Default
750 TEChainParts_Default[
'signature'] = [
'TE']
751 TEChainParts_Default[
'trigType'] =
''
756 AllowedTopos_e = [
'Jpsiee',
'Zeg',
'Zee',
'Heg',
'bBeeM6000']
758 ElectronChainParts = {
759 'signature' : [
'Electron'],
760 'alignmentGroup' : [
'Electron',
'Egamma'],
761 'chainPartName' :
'',
763 'tnpInfo' : [
'probe'],
769 'IDinfo' : [
'dnnloose',
'dnnmedium',
'dnntight',
'lhvloose',
'lhloose',
'lhmedium',
'lhtight',
'vloose',
'loose',
'medium',
'tight',
'mergedtight'],
770 'isoInfo' : [
'ivarloose',
'ivarmedium',
'ivartight'],
771 'idperfInfo' : [
'idperf'],
772 'gsfInfo' : [
'nogsf'],
773 'lrtInfo' : [
'lrtloose',
'lrtmedium',
'lrttight',
'lrtxtight',
'lrtvxtight'],
775 'lhInfo' : [
'nod0',
'nopix'],
776 'L2IDAlg' : [
'noringer'],
777 'addInfo' : [
'etcut',
'etcut1step',
"fwd",
'nopid'],
778 'sigFolder' : [
'Egamma'],
779 'subSigs' : [
'Electron'],
780 'topo' : AllowedTopos_e,
785 ElectronChainParts_Default = {
786 'signature' : [
'Electron'],
787 'alignmentGroup' : [
'Electron'],
792 'etaRange' :
'0eta250',
809 'sigFolder' : [
'Egamma'],
810 'subSigs' : [
'Electron'],
819 AllowedTopos_g = [
'dPhi25',
'm80']
822 'signature' : [
'Photon'],
823 'alignmentGroup' : [
'Photon',
'Egamma'],
824 'chainPartName' :
'',
828 'tnpInfo' : [
'probe'],
829 'extra' : [
'hiptrt',
'ion'],
830 'IDinfo' : [
'etcut',
'loose',
'medium',
'tight'],
831 'isoInfo' : [
'noiso',
'icaloloose',
'icalomedium',
'icalotight'],
835 'L2IDAlg' : [
'ringer'],
839 'addInfo' : [
'etcut',
'nopid'],
840 'sigFolder' : [
'Egamma'],
841 'subSigs' : [
'Photon'],
842 'topo' : AllowedTopos_g,
847 PhotonChainParts_Default = {
848 'signature' : [
'Photon'],
849 'alignmentGroup' : [
'Photon'],
866 'sigFolder' : [
'Egamma'],
867 'subSigs' : [
'Photon'],
876 MinBiasChainParts = {
877 'signature' : [
'MinBias'],
878 'alignmentGroup' : [
'MinBias'],
880 'chainPartName' :
'',
884 'extra' : [
'noisesup',
'vetombts2in',
'vetombts1side2in',
'vetospmbts2in',
"vetosp" ,
'ion',
'ncb',
'blayer',
'dijet',
'all',
'q2'],
886 'ZDCinfo' : [
'lg',
'hg'],
887 'trkInfo' : [
'hlttr',
'ftk',
'costr'],
888 'hypoSPInfo' : [
'sp2',
'sp3',
'sp5',
'sp10',
'sp15',
'sp50',
'sp100',
'sp300',
'sp400',
'sp500',
'sp600',
'sp700',
'sp800',
'sp900',
889 'sp1000',
'sp1100',
'sp1200',
'sp1300',
'sp1400',
'sp1500',
'sp1600',
'sp1700',
'sp1800',
890 'sp2000',
'sp2100',
'sp2200',
'sp2300',
'sp2400',
'sp2500',
'sp2700',
'sp2800',
'sp2900',
'sp3000',
891 'sp3100',
'sp3500',
'sp4100',
'sp4500',
'sp4800',
'sp5000',
'sp5200',
892 'vpix15',
'vpix30',
'vpix35',
'vpix40',
'vpix45',
'vpix50',
'vpix55',
'vpix60',
893 'pix20',
'pix50',
'pix100',
'pix200',
'pix500',
'pix1000',
894 'nototpix20',
'nototpix30',
'nototpix50',
'nototpix70',
'nototpix100',
'nototpix200',
'nototpix500'],
895 'pileupInfo' : [
'pusup0',
'pusup7',
'pusup10',
'pusup15',
'pusup20',
'pusup30',
'pusup40',
'pusup50',
'pusup60',
'pusup70',
'pusup80',
'pusup90',
'pusup100',
'pusup110',
'pusup120',
'pusup130',
'pusup150',
'pusup180',
'pusup190',
896 'pusup200',
'pusup220',
'pusup240',
'pusup250',
'pusup260',
'pusup270',
'pusup280',
'pusup290',
'pusup300'],
897 'hypoTrkInfo' : [
'trk3',
'trk5',
'trk10',
'trk15',
'trk20',
'trk25',
'trk30',
'trk35',
'trk40',
'trk45',
'trk50',
'trk55',
'trk60',
'trk65',
'trk70',
'trk75',
'trk80',
'trk90',
898 'trk100',
'trk110',
'trk120',
'trk130',
'trk140',
'trk150',
'trk160',
'trk180',
'trk200',
'trk220',
'trk240',
'trk260',
'trk280',
'trk290',
899 '2trk6',
'1trk4',
'1trk5',
'1trk2',
'0trk2'],
900 'hypoPtInfo' : [
'pt0p2',
'pt0p5',
'pt1',
'pt2',
'pt4',
'pt6',
'pt8',
'pt10' ],
901 'recoAlg' : [
'mbts',
'sptrk',
'sp',
'noalg',
'perf',
'hmt',
'hmtperf',
'idperf',
'zdcperf',
'afprec',
'afptof',
'afpdz5',
'afpdz10',
'excl',
'pixsptrk'],
902 'addInfo' : [
'peb',
'pc'],
903 'sigFolder' : [
'MinBias'],
904 'subSigs' : [
'MinBias'],
908 MinBiasChainParts_Default = {
909 'signature' : [
'MinBias'],
910 'alignmentGroup' : [
'MinBias'],
912 'chainPartName' :
'',
927 'sigFolder' : [
'MinBias'],
928 'subSigs' : [
'MinBias'],
936 HeavyIonChainParts = {
937 'signature' : [
'HeavyIon'],
938 'alignmentGroup' : [
'HeavyIon'],
940 'chainPartName' :
'',
948 'eventShapeVeto' : [],
952 'hypoEFsumEtInfo': [],
953 'hypoFgapInfo' : [
'FgapAC3',
'FgapAC5',
'FgapAC10',
'FgapA3',
'FgapA5',
'FgapA10',
'FgapC3',
'FgapC5',
'FgapC10'],
954 'hypoUCCInfo' : [
'uccTh1',
'uccTh2',
'uccTh3'],
957 'sigFolder' : [
'HeavyIon'],
958 'subSigs' : [
'HeavyIon'],
963 HeavyIonChainParts_Default = {
964 'signature' : [
'HeavyIon'],
965 'alignmentGroup' : [
'HeavyIon'],
967 'chainPartName' :
'',
975 'eventShapeVeto' :
'',
979 'hypoEFsumEtInfo':
'',
984 'sigFolder' : [
'HeavyIon'],
985 'subSigs' : [
'HeavyIon'],
992 AllowedCosmicChainIdentifiers = [
'larps',
'larhec',
997 'signature' : [
'Cosmic'],
998 'alignmentGroup' : [
'Cosmic'],
999 'chainPartName' :
'',
1001 'purpose' : AllowedCosmicChainIdentifiers,
1002 'addInfo' : [
'cosmicid',
'noise',
'beam',
'laser',
'AllTE',
'central',
'ds',
'CIS'],
1003 'trackingAlg' : [
'idscan',
'sitrack',
'trtxk'],
1006 'multiplicity' :
'',
1007 'trigType' :
'cosmic',
1009 'sigFolder' : [
'CalibCosmicMon'],
1010 'subSigs' : [
'Cosmic'],
1015 CosmicChainParts_Default = {
1016 'signature' : [
'Cosmic'],
1017 'alignmentGroup' : [
'Cosmic'],
1018 'chainPartName' :
'',
1025 'multiplicity' :
'',
1028 'sigFolder' : [
'CalibCosmicMon'],
1029 'subSigs' : [
'Cosmic'],
1036 AllowedStreamingChainIdentifiers = [
'noalg']
1039 StreamingChainParts = {
1040 'signature' : [
'Streaming'],
1041 'alignmentGroup' : [
'Streaming'],
1042 'chainPartName' :
'',
1045 'multiplicity' :
'',
1050 'streamingInfo' : [
'laser',
'CIS',
'idmon',
'mb',
'l1calo',
'cosmicmuons',
'bkg',
'vdm',
'zb',
'eb'],
1051 'trigType' :
'streamer',
1053 'streamType' : AllowedStreamingChainIdentifiers,
1055 'sigFolder' : [
'CalibCosmicMon'],
1056 'subSigs' : [
'Streaming'],
1061 StreamingChainParts_Default = {
1062 'signature' : [
'Streaming'],
1063 'alignmentGroup' : [
'Streaming'],
1064 'chainPartName' :
'',
1067 'multiplicity' :
'',
1068 'streamingInfo' :
'',
1073 'sigFolder' : [
'CalibCosmicMon'],
1074 'subSigs' : [
'Streaming'],
1081 AllowedCalibChainIdentifiers = [
'csccalib',
'larcalib',
1082 'idcalib',
'l1calocalib',
1084 'larnoiseburst',
'ibllumi',
1085 'l1satmon',
'zdcpeb',
1086 'calibAFP',
'larpsallem',
'larpsall',
1087 'acceptedevts',
'metcalo',
'mettrk',
1094 'signature' : [
'Calib'],
1095 'alignmentGroup' : [
'Calib'],
1096 'chainPartName' :
'',
1098 'purpose' : AllowedCalibChainIdentifiers,
1099 'location' : [
'central',
'fwd'],
1100 'addInfo' : [
'loose',
'noise',
'beam'],
1101 'hypo' : [
'trk4',
'trk9',
'trk16',
'trk29',
'conej40',
'conej165',
'conej75_320eta490',
'conej140_320eta490',
'satu20em'],
1102 'streamingInfo' : [
'vdm',],
1104 'multiplicity' :
'',
1105 'trigType' : [
'trk'],
1106 'extra' : [
'bs',
''],
1107 'sigFolder' : [
'CalibCosmicMon'],
1108 'subSigs' : [
'Calib'],
1114 CalibChainParts_Default = {
1115 'signature' : [
'Calib'],
1116 'alignmentGroup' : [
'Calib'],
1117 'chainPartName' :
'',
1123 'streamingInfo' : [],
1125 'multiplicity' :
'',
1129 'sigFolder' : [
'CalibCosmicMon'],
1130 'subSigs' : [
'Calib'],
1137 AllowedMonitorChainIdentifiers = [
'robrequest',
'timeburner',
1138 'idmon',
'larsupercellmon',
1139 'l1calooverflow',
'l1topoPh1debug',
1140 'mistimemonl1bccorr',
'mistimemonl1bccorrnomu',
1141 'mistimemoncaltimenomu',
'mistimemoncaltime',
1145 MonitorChainParts = {
1146 'signature' : [
'Monitor'],
1147 'alignmentGroup' : [
'Monitor'],
1148 'chainPartName' :
'',
1150 'monType' : AllowedMonitorChainIdentifiers,
1151 'hypo' : [
'trkFS',],
1153 'multiplicity' :
'',
1154 'isLegacyL1' : [
'legacy'],
1157 'sigFolder' : [
'CalibCosmicMon'],
1158 'subSigs' : [
'Monitor'],
1163 MonitorChainParts_Default = {
1164 'signature' : [
'Monitor'],
1165 'alignmentGroup' : [
'Monitor'],
1166 'chainPartName' :
'',
1171 'multiplicity' :
'',
1175 'sigFolder' : [
'CalibCosmicMon'],
1176 'subSigs' : [
'Monitor'],
1183 AllowedEBChainIdentifiers = [
'eb']
1186 EnhancedBiasChainParts = {
1187 'signature' : [
'EnhancedBias'],
1188 'alignmentGroup' : [
'EnhancedBias'],
1189 'chainPartName' :
'',
1191 'algType' : [
'medium',
'firstempty',
'empty',
'unpairediso',
'unpairednoniso',
'low'],
1193 'multiplicity' :
'',
1196 'sigFolder' : [
'CalibCosmicMon'],
1197 'subSigs' : [
'EnhancedBias'],
1202 EnhancedBiasChainParts_Default = {
1203 'signature' : [
'EnhancedBias'],
1204 'alignmentGroup' : [
'EnhancedBias'],
1205 'chainPartName' :
'',
1207 'algType' :
'physics',
1209 'multiplicity' :
'',
1212 'sigFolder' : [
'CalibCosmicMon'],
1213 'subSigs' : [
'EnhancedBias'],
1220 AllowedBeamspotChainIdentifiers = [
'beamspot',]
1221 BeamspotChainParts = {
1222 'signature' : [
'Beamspot'],
1223 'alignmentGroup' : [
'Beamspot'],
1224 'chainPartName' :
'',
1226 'monType' : AllowedBeamspotChainIdentifiers,
1227 'location' : [
'vtx'],
1228 'addInfo' : [
'trkFS',
'allTE',
'activeTE',
'idperf'],
1230 'l2IDAlg' : [
'trkfast'],
1232 'multiplicity' :
'',
1233 'trigType' :
'beamspot',
1235 'sigFolder' : [
'CalibCosmicMon'],
1236 'subSigs' : [
'Beamspot'],
1238 'beamspotChain' : [],
1242 BeamspotChainParts_Default = {
1243 'signature' : [
'Beamspot'],
1244 'alignmentGroup' : [
'Beamspot'],
1245 'chainPartName' :
'',
1252 'multiplicity' :
'',
1256 'sigFolder' : [
'CalibCosmicMon'],
1257 'subSigs' : [
'Beamspot'],
1258 'chainPartIndex' : 0,
1259 'beamspotChain' :
'',
1266 UnconventionalTrackingChainParts = {
1267 'signature' : [
'UnconventionalTracking'],
1268 'alignmentGroup' : [
'UnconventionalTracking'],
1270 'chainPartName' : [],
1271 'multiplicity' :
'',
1272 'trigType' : [
'isotrk',
'fslrt',
'dedxtrk',
'hitdvjet',
'fsvsi',
'distrk',
'dispjet',
'dispvtx'],
1274 'IDinfo' : [
'loose',
'medium',
'tight',
'vloose'],
1275 'isoInfo' : [
'iaggrmedium',
'iaggrloose',
'imedium',
'iloose'],
1277 'addInfo' : [
'perf'],
1278 'dispjetConfig' : [
'3d2p',
'1p',
'x3d1p',
'2p'],
1279 'sigFolder' : [
'UnconventionalTracking'],
1280 'subSigs' : [
'UnconventionalTracking'],
1284 UnconventionalTrackingChainParts_Default = {
1285 'signature' : [
'UnconventionalTracking'],
1286 'alignmentGroup' : [
'UnconventionalTracking'],
1288 'chainPartName' : [],
1289 'multiplicity' :
'',
1296 'dispjetConfig' :
'',
1297 'sigFolder' : [
'UnconventionalTracking'],
1298 'subSigs' : [
'UnconventionalTracking'],
1305 AllowedTopos_comb = [
1306 'idZmumu',
'idJpsimumu',
1307 'dRAA12',
'dRAB15',
'03dRAB',
'02dRAB10',
'03dRAB10',
'03dRAB30',
'03dRAB35',
'dRAB03',
'dRAB04',
'dRAB05',
'02dRAB',
'02dRAC',
'03dRAC30',
'03dRAC35',
'02dRBC',
'15dRBC45',
'50invmAB',
'60invmAB',
'afpdijet',
'18dphiAB',
'18dphiAC',
'80mTAC',
'80mTAD',
1309 '1invmAB5',
'50invmAB130',
'50invmBC130',
1310 '25dphiAA',
'25dphiBB',
'25dphiCC',
'invmAA80',
1312 'invmAB10',
'10invmAB70',
1313 '7invmAB9',
'11invmAB60',
'11invmAB24',
'24invmAB60',
'7invmAA9',
'11invmAA60',
'11invmAA24',
'24invmAA60',
1318 CombinedChainParts = deepcopy(PhotonChainParts)
1319 CombinedChainParts[
'signature'] = [
'Photon',
'Muon']
1320 CombinedChainParts[
'chainParts'] = [
'g',
'mu'],
1321 CombinedChainParts[
'topo'] = AllowedTopos_comb
1323 CombinedChainParts_Default = deepcopy(PhotonChainParts_Default)
1324 CombinedChainParts_Default[
'signature'] = [
'Photon',
'Muon']
1325 CombinedChainParts_Default[
'chainParts'] = [
'g',
'mu'],
1326 CombinedChainParts_Default[
'trigType'] =
''
1327 CombinedChainParts_Default[
'topo'] = []
1333 AllowedTopos = AllowedTopos_e + AllowedTopos_g + AllowedTopos_mu + AllowedTopos_Bphysics + AllowedTopos_xe + AllowedTopos_tau + AllowedTopos_comb
1340 theMatchingTokens = []
1341 reverseSliceIDDict = { subvalue: key
for key, value
in SliceIDDict.items()
for subvalue
in ([value]
if not isinstance(value, list)
else value) }
1342 for sig,token
in SliceIDDict.items():
1343 token = token
if isinstance(token, list)
else [token]
1344 for subtoken
in token:
1345 if re.match(
r'^\d*'+subtoken+
r'\d*\w*$', chainpart):
1346 theMatchingTokens += [subtoken]
1347 if len(theMatchingTokens) > 0:
1348 return reverseSliceIDDict[
sorted(theMatchingTokens, key=
lambda x: len(x), reverse=
True)[0]]
1350 log.error(
'No signature matching chain part %s was found.', chainpart)
1352 raise Exception(
'[getSignatureNameFromToken] Cannot find signature from chain name, exiting.')
1361 if signature ==
'Electron':
1362 return [ElectronChainParts_Default, ElectronChainParts]
1363 if signature ==
'Photon':
1364 return [PhotonChainParts_Default, PhotonChainParts]
1365 if signature ==
"Jet":
1366 return [JetChainParts_Default, JetChainParts]
1367 if signature ==
"Bjet":
1368 return [bJetChainParts_Default, JetChainParts]
1369 if signature ==
"Beamspot_Jet":
1370 return [BeamspotJetChainParts_Default, JetChainParts]
1371 if signature ==
"Tau":
1372 return [TauChainParts_Default, TauChainParts]
1373 if (signature ==
"Muon"):
1374 return [MuonChainParts_Default, MuonChainParts]
1375 if (signature ==
"Bphysics"):
1376 return [BphysicsChainParts_Default, BphysicsChainParts]
1377 if (signature ==
"Combined"):
1378 return [CombinedChainParts_Default, CombinedChainParts]
1379 if signature ==
"MET":
1380 return [METChainParts_Default, METChainParts]
1381 if signature ==
"XS":
1382 return [XSChainParts_Default, XSChainParts]
1383 if signature ==
"TE":
1384 return [TEChainParts_Default, TEChainParts]
1385 if signature ==
"MinBias":
1386 return [MinBiasChainParts_Default, MinBiasChainParts]
1387 if signature ==
"HeavyIon":
1388 return [HeavyIonChainParts_Default, HeavyIonChainParts]
1389 if signature ==
"Cosmic":
1390 return [CosmicChainParts_Default, CosmicChainParts]
1391 if signature ==
"Calib":
1392 return [CalibChainParts_Default, CalibChainParts]
1393 if signature ==
"Streaming":
1394 return [StreamingChainParts_Default, StreamingChainParts]
1395 if signature ==
"Monitor":
1396 return [MonitorChainParts_Default, MonitorChainParts]
1397 if signature ==
"Beamspot":
1398 return [BeamspotChainParts_Default, BeamspotChainParts]
1399 if signature ==
"EnhancedBias":
1400 return [EnhancedBiasChainParts_Default, EnhancedBiasChainParts]
1401 if signature ==
"UnconventionalTracking":
1402 return [UnconventionalTrackingChainParts_Default, UnconventionalTrackingChainParts]
1403 if signature ==
"Test":
1404 return [TestChainParts_Default, TestChainParts]
1406 raise RuntimeError(
"ERROR Cannot find corresponding dictionary for signature", signature)
1414 for v
in SliceIDDict.values():
1415 if isinstance(v, list):
1418 allTrigTypes.append(v)
1420 possibleTT =
'|'.
join(allTrigTypes)
1421 pattern = re.compile(
r"(?P<multiplicity>\d*)(?P<trigType>(%s))(?P<threshold>\d+)(?P<extra>\w*)" % (possibleTT))