Exemplo n.º 1
0
              'e24_lhmedium_L1EM20VH_L2Calo_ringer_pd',
              'e24_lhmedium_L1EM20VH_ringer_sp',
              'e24_lhtight_L1EM20VH_L2EFCalo_ringer_pd',
              'e24_lhtight_L1EM20VH_L2Calo_ringer_pd',
            ]
tc=0

for key in ['Medium_LH_EFCalo_Pd', 'Medium_LH_L2Calo_Pd','Medium_LH_MaxSP','Tight_LH_EFCalo_Pd','Tight_LH_L2Calo_Pd']:

  netBins=dict()
  for nEta in [0,1,2,3]:  
    for nEt in [0,1,2]:

      crossValSummary = load((crossValBasepath+'/'+crossValName)%(nEta,nEt))
      stat = CrossValidStatAnalysis( basepath+'/'+fileList[nEta][nEt], level = LoggingLevel.DEBUG )
      # Add them to a list:
      data  = CrossValidStatAnalysis.exportDiscrFiles(crossValSummary, RingerOperation.L2,
                                                      refBenchmarkNameList=[key],
                                                      configList=[config[key][nEta][nEt]])

      network = data['tunedDiscr']
      network['etaBin']=[etaBins[nEta],etaBins[nEta+1]] 
      network['etBin'] =[etBins[nEt]  ,etBins[nEt+1]  ] 
      netBins[('eta%d_et%d')%(nEta,nEt)]=network

  output.write(('  signatures["%s"]=%s\n')%(triggerList[tc],str(netBins)))
  tc+=1

output.write('  return signatures')
output.close()
Exemplo n.º 2
0
                    ["Medium_LH_EFCalo_Pf"]],
                      # Et 2, Eta 0
                    [["Medium_LH_EFCalo_Pf"],
                      # Et 2, Eta 1
                    ["Medium_LH_EFCalo_Pf"],
                      # Et 2, Eta 2
                    ["Medium_LH_EFCalo_Pd"],
                      # Et 2, Eta 3
                    ["Medium_LH_EFCalo_Pd"]],
                      # Et 3, Eta 0
                    [["Medium_LH_EFCalo_Pf"],
                      # Et 3, Eta 1
                    ["Medium_LH_EFCalo_Pf"],
                      # Et 3, Eta 2
                    ["Medium_LH_EFCalo_Pd"],
                      # Et 3, Eta 3
                    ["Medium_LH_EFCalo_Pf"]],
                    ]


chainNames=['e24_lhmedium_EFCalo']

CrossValidStatAnalysis.exportDiscrFiles(crossValGrid,
                                        RingerOperation.L2,
                                        refBenchCol=refBenchmarkList,
                                        configCol=configList,
                                        triggerChains=chainNames
                                        )


Exemplo n.º 3
0
    ],
    # Et 2, Eta 0
    [
        ["Medium_LH_EFCalo_Pf"],
        # Et 2, Eta 1
        ["Medium_LH_EFCalo_Pf"],
        # Et 2, Eta 2
        ["Medium_LH_EFCalo_Pd"],
        # Et 2, Eta 3
        ["Medium_LH_EFCalo_Pd"]
    ],
    # Et 3, Eta 0
    [
        ["Medium_LH_EFCalo_Pf"],
        # Et 3, Eta 1
        ["Medium_LH_EFCalo_Pf"],
        # Et 3, Eta 2
        ["Medium_LH_EFCalo_Pd"],
        # Et 3, Eta 3
        ["Medium_LH_EFCalo_Pf"]
    ],
]

chainNames = ['e24_lhmedium_EFCalo']

CrossValidStatAnalysis.exportDiscrFiles(crossValGrid,
                                        RingerOperation.L2,
                                        refBenchCol=refBenchmarkList,
                                        configCol=configList,
                                        triggerChains=chainNames)