ATLAS Offline Software
Loading...
Searching...
No Matches
checkHVCorrections Namespace Reference

Variables

 parser = OptionParser()
 action
 type
 dest
 help
 options
 args
 geometry_convertor = PlotCalibrationGains.L1CaloGeometryConvertor()
 receiver_gains = PlotCalibrationGains.GainReader()
 c1 = ROOT.TCanvas('c1','Example',200,10,700,500)
 c2 = ROOT.TCanvas('c2','Example Partitions',200,10,700,500)
 h_gains_em = PlotCalibrationGains.L1CaloMap("Eta-phi map of EM gains","#eta bin","#phi bin")
 h_gains_had = PlotCalibrationGains.L1CaloMap("Eta-phi map of HAD gains","#eta bin","#phi bin")
 h_gains_em_noHV = PlotCalibrationGains.L1CaloMap("Eta-phi map of EM gains without HV corrections","#eta bin","#phi bin")
 h_gains_had_noHV = PlotCalibrationGains.L1CaloMap("Eta-phi map of HAD gains without HV corrections","#eta bin","#phi bin")
 h_gains_em_ratio = PlotCalibrationGains.L1CaloMap("ratio of EM gains with and without HV corrections","#eta bin","#phi bin")
 h_gains_had_ratio = PlotCalibrationGains.L1CaloMap("ratio of HAD gains with and without HV corrections","#eta bin","#phi bin")
 h1D_gains_em_ratio = PlotCalibrationGains.EmPartitionPlots("ratio of EM gains with and without HV corrections",40,0.,2.5,"gain/gain(no HV)","N")
 h1D_gains_had_ratio = PlotCalibrationGains.HadPartitionPlots("ratio of HAD gains with and without HV corrections",40,0.,2.5,"gain/gain(no HV)","N")
 h_corr_em = PlotCalibrationGains.L1CaloMap("Eta-phi map of mean HV corrections in EM layer","#eta bin","#phi bin")
 h_corr_had = PlotCalibrationGains.L1CaloMap("Eta-phi map of mean HV corrections in HAD layer","#eta bin","#phi bin")
 h_corrGainPredictor_em = PlotCalibrationGains.L1CaloMap("Eta-phi map of HV corrections from Gain Predictor in EM layer","#eta bin","#phi bin")
 h_corrGainPredictor_had = PlotCalibrationGains.L1CaloMap("Eta-phi map of HV corrections from Gain Predictor in HAD layer","#eta bin","#phi bin")
 h1D_corr_em = PlotCalibrationGains.EmPartitionPlots("mean HV corrections in EM layer",40,0.,2.5,"mean HV correction","N")
 h1D_corr_had = PlotCalibrationGains.HadPartitionPlots("mean HV corrections in HAD layer",40,0.,2.5,"mean HV correction","N")
 h_corrHVdiff_em = PlotCalibrationGains.L1CaloMap("(ratio-meanHV)/meanHV in EM layer","#eta bin","#phi bin")
 h_corrHVdiff_had = PlotCalibrationGains.L1CaloMap("(ratio-meanHV)/meanHV in HAD layer","#eta bin","#phi bin")
 h1D_corrHVdiff_em = PlotCalibrationGains.EmPartitionPlots("(ratio-meanHV)/meanHV in EM layer",40,-0.1,0.1,"(ratio-meanHV)/meanHV","N")
 h1D_corrHVdiff_had = PlotCalibrationGains.HadPartitionPlots("(ratio-meanHV)/meanHV in HAD layer",40,-0.1,0.1,"(ratio-meanHV)/meanHV","N")
 h_corrHVdiffGainPredictor_em = PlotCalibrationGains.L1CaloMap("(ratio-GainPredictor)/GainPredictor in EM layer","#eta bin","#phi bin")
 h_corrHVdiffGainPredictor_had = PlotCalibrationGains.L1CaloMap("(ratio-GainPredictor)/GainPredictor in HAD layer","#eta bin","#phi bin")
str fileDefault = '/afs/cern.ch/work/j/juraj/public/testarea/21.0.18/CalibrationProcessing/326189_HV/energyscanresults.sqlite'
str fileNoHV = '/afs/cern.ch/work/j/juraj/public/testarea/21.0.18/CalibrationProcessing/326189/energyscanresults.sqlite'
str hvCorrFile = '/afs/cern.ch/work/j/juraj/public/testarea/20.7.8.3/HVDumps/hvcorrections_9jun17.sqlite'
str hvGainPredictor = '/afs/cern.ch/work/j/juraj/public/testarea/20.7.8.3/HVDumps/hvUpdate_9jun17_0p.txt'
str strategyString = 'GainOneOvEmecFcalLowEta'
 hv_status = PlotCalibrationHV.L1CaloHVReader(hvCorrFile)
 strange_channel_file = open('checkHVCorrections.txt','w')
 gpReceiver
 gpCool
 gpEta
 gpPhi
 gpCorrection
 unpack
 True
 dtype
dict gainPredictorCorrections = {}
 coolEm = geometry_convertor.getCoolEm(i_eta,i_phi)
 coolHad = geometry_convertor.getCoolHad(i_eta,i_phi)
 gain = receiver_gains.getGain(coolEm)
 reference_gain = receiver_gains.getReferenceGain(coolEm)
 receiverEm = geometry_convertor.getReceiverfromPPM(coolEm,strategyString)
tuple meanEmHVCorrection = (hv_status.GetMeanCorections())[receiverEm]
dict gainPredictorEmHVCorrection = gainPredictorCorrections[receiverEm]
tuple relDifference = (gain/reference_gain - gainPredictorEmHVCorrection)/gainPredictorEmHVCorrection
 receiverHad = geometry_convertor.getReceiverfromPPM(coolHad,strategyString)
tuple meanHadHVCorrection = (hv_status.GetMeanCorections())[receiverHad]
dict gainPredictorHadHVCorrection = gainPredictorCorrections[receiverHad]

Variable Documentation

◆ action

checkHVCorrections.action

Definition at line 27 of file checkHVCorrections.py.

◆ args

checkHVCorrections.args

Definition at line 28 of file checkHVCorrections.py.

◆ c1

checkHVCorrections.c1 = ROOT.TCanvas('c1','Example',200,10,700,500)

Definition at line 39 of file checkHVCorrections.py.

◆ c2

checkHVCorrections.c2 = ROOT.TCanvas('c2','Example Partitions',200,10,700,500)

Definition at line 40 of file checkHVCorrections.py.

◆ coolEm

checkHVCorrections.coolEm = geometry_convertor.getCoolEm(i_eta,i_phi)

Definition at line 107 of file checkHVCorrections.py.

◆ coolHad

checkHVCorrections.coolHad = geometry_convertor.getCoolHad(i_eta,i_phi)

Definition at line 108 of file checkHVCorrections.py.

◆ dest

checkHVCorrections.dest

Definition at line 27 of file checkHVCorrections.py.

◆ dtype

checkHVCorrections.dtype

Definition at line 97 of file checkHVCorrections.py.

◆ fileDefault

str checkHVCorrections.fileDefault = '/afs/cern.ch/work/j/juraj/public/testarea/21.0.18/CalibrationProcessing/326189_HV/energyscanresults.sqlite'

Definition at line 79 of file checkHVCorrections.py.

◆ fileNoHV

str checkHVCorrections.fileNoHV = '/afs/cern.ch/work/j/juraj/public/testarea/21.0.18/CalibrationProcessing/326189/energyscanresults.sqlite'

Definition at line 80 of file checkHVCorrections.py.

◆ gain

checkHVCorrections.gain = receiver_gains.getGain(coolEm)

Definition at line 113 of file checkHVCorrections.py.

◆ gainPredictorCorrections

dict checkHVCorrections.gainPredictorCorrections = {}

Definition at line 99 of file checkHVCorrections.py.

◆ gainPredictorEmHVCorrection

int checkHVCorrections.gainPredictorEmHVCorrection = gainPredictorCorrections[receiverEm]

Definition at line 123 of file checkHVCorrections.py.

◆ gainPredictorHadHVCorrection

int checkHVCorrections.gainPredictorHadHVCorrection = gainPredictorCorrections[receiverHad]

Definition at line 168 of file checkHVCorrections.py.

◆ geometry_convertor

checkHVCorrections.geometry_convertor = PlotCalibrationGains.L1CaloGeometryConvertor()

Definition at line 31 of file checkHVCorrections.py.

◆ gpCool

checkHVCorrections.gpCool

Definition at line 97 of file checkHVCorrections.py.

◆ gpCorrection

checkHVCorrections.gpCorrection

Definition at line 97 of file checkHVCorrections.py.

◆ gpEta

checkHVCorrections.gpEta

Definition at line 97 of file checkHVCorrections.py.

◆ gpPhi

checkHVCorrections.gpPhi

Definition at line 97 of file checkHVCorrections.py.

◆ gpReceiver

checkHVCorrections.gpReceiver

Definition at line 97 of file checkHVCorrections.py.

◆ h1D_corr_em

checkHVCorrections.h1D_corr_em = PlotCalibrationGains.EmPartitionPlots("mean HV corrections in EM layer",40,0.,2.5,"mean HV correction","N")

Definition at line 64 of file checkHVCorrections.py.

◆ h1D_corr_had

checkHVCorrections.h1D_corr_had = PlotCalibrationGains.HadPartitionPlots("mean HV corrections in HAD layer",40,0.,2.5,"mean HV correction","N")

Definition at line 65 of file checkHVCorrections.py.

◆ h1D_corrHVdiff_em

checkHVCorrections.h1D_corrHVdiff_em = PlotCalibrationGains.EmPartitionPlots("(ratio-meanHV)/meanHV in EM layer",40,-0.1,0.1,"(ratio-meanHV)/meanHV","N")

Definition at line 70 of file checkHVCorrections.py.

◆ h1D_corrHVdiff_had

checkHVCorrections.h1D_corrHVdiff_had = PlotCalibrationGains.HadPartitionPlots("(ratio-meanHV)/meanHV in HAD layer",40,-0.1,0.1,"(ratio-meanHV)/meanHV","N")

Definition at line 71 of file checkHVCorrections.py.

◆ h1D_gains_em_ratio

checkHVCorrections.h1D_gains_em_ratio = PlotCalibrationGains.EmPartitionPlots("ratio of EM gains with and without HV corrections",40,0.,2.5,"gain/gain(no HV)","N")

Definition at line 54 of file checkHVCorrections.py.

◆ h1D_gains_had_ratio

checkHVCorrections.h1D_gains_had_ratio = PlotCalibrationGains.HadPartitionPlots("ratio of HAD gains with and without HV corrections",40,0.,2.5,"gain/gain(no HV)","N")

Definition at line 55 of file checkHVCorrections.py.

◆ h_corr_em

checkHVCorrections.h_corr_em = PlotCalibrationGains.L1CaloMap("Eta-phi map of mean HV corrections in EM layer","#eta bin","#phi bin")

Definition at line 57 of file checkHVCorrections.py.

◆ h_corr_had

checkHVCorrections.h_corr_had = PlotCalibrationGains.L1CaloMap("Eta-phi map of mean HV corrections in HAD layer","#eta bin","#phi bin")

Definition at line 58 of file checkHVCorrections.py.

◆ h_corrGainPredictor_em

checkHVCorrections.h_corrGainPredictor_em = PlotCalibrationGains.L1CaloMap("Eta-phi map of HV corrections from Gain Predictor in EM layer","#eta bin","#phi bin")

Definition at line 60 of file checkHVCorrections.py.

◆ h_corrGainPredictor_had

checkHVCorrections.h_corrGainPredictor_had = PlotCalibrationGains.L1CaloMap("Eta-phi map of HV corrections from Gain Predictor in HAD layer","#eta bin","#phi bin")

Definition at line 61 of file checkHVCorrections.py.

◆ h_corrHVdiff_em

checkHVCorrections.h_corrHVdiff_em = PlotCalibrationGains.L1CaloMap("(ratio-meanHV)/meanHV in EM layer","#eta bin","#phi bin")

Definition at line 67 of file checkHVCorrections.py.

◆ h_corrHVdiff_had

checkHVCorrections.h_corrHVdiff_had = PlotCalibrationGains.L1CaloMap("(ratio-meanHV)/meanHV in HAD layer","#eta bin","#phi bin")

Definition at line 68 of file checkHVCorrections.py.

◆ h_corrHVdiffGainPredictor_em

checkHVCorrections.h_corrHVdiffGainPredictor_em = PlotCalibrationGains.L1CaloMap("(ratio-GainPredictor)/GainPredictor in EM layer","#eta bin","#phi bin")

Definition at line 73 of file checkHVCorrections.py.

◆ h_corrHVdiffGainPredictor_had

checkHVCorrections.h_corrHVdiffGainPredictor_had = PlotCalibrationGains.L1CaloMap("(ratio-GainPredictor)/GainPredictor in HAD layer","#eta bin","#phi bin")

Definition at line 74 of file checkHVCorrections.py.

◆ h_gains_em

checkHVCorrections.h_gains_em = PlotCalibrationGains.L1CaloMap("Eta-phi map of EM gains","#eta bin","#phi bin")

Definition at line 45 of file checkHVCorrections.py.

◆ h_gains_em_noHV

checkHVCorrections.h_gains_em_noHV = PlotCalibrationGains.L1CaloMap("Eta-phi map of EM gains without HV corrections","#eta bin","#phi bin")

Definition at line 48 of file checkHVCorrections.py.

◆ h_gains_em_ratio

checkHVCorrections.h_gains_em_ratio = PlotCalibrationGains.L1CaloMap("ratio of EM gains with and without HV corrections","#eta bin","#phi bin")

Definition at line 51 of file checkHVCorrections.py.

◆ h_gains_had

checkHVCorrections.h_gains_had = PlotCalibrationGains.L1CaloMap("Eta-phi map of HAD gains","#eta bin","#phi bin")

Definition at line 46 of file checkHVCorrections.py.

◆ h_gains_had_noHV

checkHVCorrections.h_gains_had_noHV = PlotCalibrationGains.L1CaloMap("Eta-phi map of HAD gains without HV corrections","#eta bin","#phi bin")

Definition at line 49 of file checkHVCorrections.py.

◆ h_gains_had_ratio

checkHVCorrections.h_gains_had_ratio = PlotCalibrationGains.L1CaloMap("ratio of HAD gains with and without HV corrections","#eta bin","#phi bin")

Definition at line 52 of file checkHVCorrections.py.

◆ help

checkHVCorrections.help

Definition at line 27 of file checkHVCorrections.py.

◆ hv_status

checkHVCorrections.hv_status = PlotCalibrationHV.L1CaloHVReader(hvCorrFile)

Definition at line 93 of file checkHVCorrections.py.

◆ hvCorrFile

str checkHVCorrections.hvCorrFile = '/afs/cern.ch/work/j/juraj/public/testarea/20.7.8.3/HVDumps/hvcorrections_9jun17.sqlite'

Definition at line 82 of file checkHVCorrections.py.

◆ hvGainPredictor

checkHVCorrections.hvGainPredictor = '/afs/cern.ch/work/j/juraj/public/testarea/20.7.8.3/HVDumps/hvUpdate_9jun17_0p.txt'

Definition at line 84 of file checkHVCorrections.py.

◆ meanEmHVCorrection

int checkHVCorrections.meanEmHVCorrection = (hv_status.GetMeanCorections())[receiverEm]

Definition at line 118 of file checkHVCorrections.py.

◆ meanHadHVCorrection

int checkHVCorrections.meanHadHVCorrection = (hv_status.GetMeanCorections())[receiverHad]

Definition at line 163 of file checkHVCorrections.py.

◆ options

checkHVCorrections.options

Definition at line 28 of file checkHVCorrections.py.

◆ parser

checkHVCorrections.parser = OptionParser()

Definition at line 25 of file checkHVCorrections.py.

◆ receiver_gains

checkHVCorrections.receiver_gains = PlotCalibrationGains.GainReader()

Definition at line 32 of file checkHVCorrections.py.

◆ receiverEm

checkHVCorrections.receiverEm = geometry_convertor.getReceiverfromPPM(coolEm,strategyString)

Definition at line 115 of file checkHVCorrections.py.

◆ receiverHad

checkHVCorrections.receiverHad = geometry_convertor.getReceiverfromPPM(coolHad,strategyString)

Definition at line 160 of file checkHVCorrections.py.

◆ reference_gain

checkHVCorrections.reference_gain = receiver_gains.getReferenceGain(coolEm)

Definition at line 114 of file checkHVCorrections.py.

◆ relDifference

tuple checkHVCorrections.relDifference = (gain/reference_gain - gainPredictorEmHVCorrection)/gainPredictorEmHVCorrection

Definition at line 141 of file checkHVCorrections.py.

◆ strange_channel_file

checkHVCorrections.strange_channel_file = open('checkHVCorrections.txt','w')

Definition at line 95 of file checkHVCorrections.py.

◆ strategyString

str checkHVCorrections.strategyString = 'GainOneOvEmecFcalLowEta'

Definition at line 86 of file checkHVCorrections.py.

◆ True

checkHVCorrections.True

Definition at line 97 of file checkHVCorrections.py.

◆ type

checkHVCorrections.type

Definition at line 27 of file checkHVCorrections.py.

◆ unpack

checkHVCorrections.unpack

Definition at line 97 of file checkHVCorrections.py.