ATLAS Offline Software
Loading...
Searching...
No Matches
doL1CaloHVCorrections.py File Reference

Go to the source code of this file.

Classes

class  doL1CaloHVCorrections.HVCorrectionCOOLReader
class  doL1CaloHVCorrections.HVCorrectionCalculator

Namespaces

namespace  doL1CaloHVCorrections

Functions

 doL1CaloHVCorrections.writeHVToSqlite (name, input_dict)

Variables

 doL1CaloHVCorrections.parser = OptionParser(add_help_option=False)
 configure options
 doL1CaloHVCorrections.action
 doL1CaloHVCorrections.type
 doL1CaloHVCorrections.dest
 doL1CaloHVCorrections.default
 doL1CaloHVCorrections.options
 doL1CaloHVCorrections.args
 doL1CaloHVCorrections.c1 = ROOT.TCanvas('c1','Example',200,10,700,500)
 doL1CaloHVCorrections.h_corrEmb_em = PlotCalibrationGains.L1CaloMap("Calculated HV corrections for EM (EMB in overlap) ","#eta bin","#phi bin")
 doL1CaloHVCorrections.h_corrFcalLowEta_had = PlotCalibrationGains.L1CaloMap("Calculated HV corrections for HAD (FCAL low #eta)","#eta bin","#phi bin")
 doL1CaloHVCorrections.h_corrEmec_em = PlotCalibrationGains.L1CaloMap("Calculated HV corrections for EM overlap (EMEC)","#eta bin","#phi bin")
 doL1CaloHVCorrections.h_corrFcalHighEta_had = PlotCalibrationGains.L1CaloMap("Calculated HV corrections for HAD FCAL (high #eta)","#eta bin","#phi bin")
 doL1CaloHVCorrections.h_RefcorrEmb_em = PlotCalibrationGains.L1CaloMap("Reference HV corrections for EM (EMB in overlap) ","#eta bin","#phi bin")
 doL1CaloHVCorrections.h_RefcorrFcalLowEta_had = PlotCalibrationGains.L1CaloMap("Reference HV corrections for HAD (FCAL low #eta)","#eta bin","#phi bin")
 doL1CaloHVCorrections.h_RefcorrEmec_em = PlotCalibrationGains.L1CaloMap("Reference HV corrections for EM overlap (EMEC)","#eta bin","#phi bin")
 doL1CaloHVCorrections.h_RefcorrFcalHighEta_had = PlotCalibrationGains.L1CaloMap("Reference HV corrections for HAD FCAL (high #eta)","#eta bin","#phi bin")
 doL1CaloHVCorrections.h_DiffcorrEmb_em = PlotCalibrationGains.L1CaloMap("(calculated-reference) HV corrections for EM (EMB in overlap) ","#eta bin","#phi bin")
 doL1CaloHVCorrections.h_DiffcorrFcalLowEta_had = PlotCalibrationGains.L1CaloMap("(calculated-reference) HV corrections for HAD (FCAL low #eta)","#eta bin","#phi bin")
 doL1CaloHVCorrections.h_DiffcorrEmec_em = PlotCalibrationGains.L1CaloMap("(calculated-reference) HV corrections for EM overlap (EMEC)","#eta bin","#phi bin")
 doL1CaloHVCorrections.h_DiffcorrFcalHighEta_had = PlotCalibrationGains.L1CaloMap("(calculated-reference) HV corrections for HAD FCAL (high #eta)","#eta bin","#phi bin")
 doL1CaloHVCorrections.hv_input = PlotCalibrationHV.L1CaloHVReader(options.hv_input)
 doL1CaloHVCorrections.referenceCorrectionReader = HVCorrectionCOOLReader()
 doL1CaloHVCorrections.geometry_convertor = PlotCalibrationGains.L1CaloGeometryConvertor()
 doL1CaloHVCorrections.correctionCalculator = HVCorrectionCalculator(geometry_convertor)
 doL1CaloHVCorrections.output_text = open(options.output_files+".txt","w")
 initialise output .txt file
 doL1CaloHVCorrections.channel_list = open(options.channel_list)
list doL1CaloHVCorrections.receiver_list = []
 doL1CaloHVCorrections.parts = channel.split()
dict doL1CaloHVCorrections.calculatedCorrections = {}
 check if channel list is empty
 doL1CaloHVCorrections.coolid = geometry_convertor.getPPMfromReceiver(receiver)
 doL1CaloHVCorrections.eta_bin = geometry_convertor.getEtaBin(coolid)
 doL1CaloHVCorrections.phi_bin = geometry_convertor.getPhiBin(coolid)
tuple doL1CaloHVCorrections.num_layers = (hv_input.GetNLayers())[receiver]
 retrieve num layers and layer names (from new or ref hv input)
list doL1CaloHVCorrections.layer_names = [-1,-1,-1,-1]
list doL1CaloHVCorrections.layer_corr = [1.,1.,1.,1.]
 retrieve hv corrections from new hv input
 doL1CaloHVCorrections.predictedCorrection = correctionCalculator.GetCorrection(receiver, layer_corr, layer_names)
 check if the channel has overall HV correction larger than the threshold
 doL1CaloHVCorrections.referenceCorrection = referenceCorrectionReader.getCorrection(receiver)
tuple doL1CaloHVCorrections.correctionDifference = (predictedCorrection-referenceCorrection)
 doL1CaloHVCorrections.file