|
|
|
def | agedHFNose (process, algo=0) |
|
def | agedHGCal (process, algo=0) |
|
def | ageEcal (process, lumi, instLumi) |
|
def | ageHB (process, turnon, scenarioHLLHC) |
|
def | ageHcal (process, lumi, instLumi, scenarioHLLHC) |
|
def | ageHE (process, turnon, scenarioHLLHC) |
|
def | ageHF (process, turnon) |
|
def | ageSiPM (process, turnon, lumi) |
|
def | customise_aging_1000 (process) |
|
def | customise_aging_300 (process) |
|
def | customise_aging_3000 (process) |
|
def | customise_aging_3000_ultimate (process) |
|
def | customise_aging_4500_ultimate (process) |
|
def | ecal_complete_aging (process) |
|
def | getHcalDigitizer (process) |
|
def | getHGCalDigitizer (process, section) |
|
def | hf_complete_aging (process) |
|
def | realisticHGCalStartup (process) |
|
def | setScenarioHLLHC (module, scenarioHLLHC) |
|
def | turn_off_HB_aging (process) |
|
def | turn_off_HE_aging (process) |
|
def | turn_off_HF_aging (process) |
|
def | turn_off_SiPM_aging (process) |
|
def | turn_on_HB_aging (process) |
|
def | turn_on_HE_aging (process) |
|
def | turn_on_HF_aging (process) |
|
◆ agedHFNose()
def aging.agedHFNose |
( |
|
process, |
|
|
|
algo = 0 |
|
) |
| |
◆ agedHGCal()
def aging.agedHGCal |
( |
|
process, |
|
|
|
algo = 0 |
|
) |
| |
◆ ageEcal()
def aging.ageEcal |
( |
|
process, |
|
|
|
lumi, |
|
|
|
instLumi |
|
) |
| |
Definition at line 185 of file aging.py.
185 def ageEcal(process,lumi,instLumi):
186 if hasattr(process,
'g4SimHits'):
188 process.g4SimHits.ECalSD.InstLuminosity = cms.double(instLumi)
189 process.g4SimHits.ECalSD.DelivLuminosity = cms.double(
float(lumi))
192 ecal_lumis = [300,1000,3000,4500]
194 [
'EcalIntercalibConstantsRcd',
'EcalIntercalibConstants_TL{:d}_upgrade_8deg_v2_mc'],
195 [
'EcalIntercalibConstantsMCRcd',
'EcalIntercalibConstantsMC_TL{:d}_upgrade_8deg_v2_mc'],
196 [
'EcalLaserAPDPNRatiosRcd',
'EcalLaserAPDPNRatios_TL{:d}_upgrade_8deg_mc'],
197 [
'EcalPedestalsRcd',
'EcalPedestals_TL{:d}_upgradeTIA_8deg_mc'],
198 [
'EcalTPGLinearizationConstRcd',
'EcalTPGLinearizationConst_TL{:d}_upgrade_8deg_mc'],
208 ecal_seed_multiplier = 2.5
211 if int(lumi)
in ecal_lumis:
212 if not hasattr(process.GlobalTag,
'toGet'):
213 process.GlobalTag.toGet=cms.VPSet()
214 for ecal_condition
in ecal_conditions:
215 process.GlobalTag.toGet.append(cms.PSet(
216 record = cms.string(ecal_condition[0]),
217 tag = cms.string(ecal_condition[1].
format(
int(lumi))),
218 connect = cms.string(
"frontier://FrontierProd/CMS_CONDITIONS")
221 if hasattr(process,
"particleFlowClusterECALUncorrected"):
222 _seeds = process.particleFlowClusterECALUncorrected.seedFinder.thresholdsByDetector
223 for iseed
in range(0,len(_seeds)):
224 if _seeds[iseed].detector.value()==
"ECAL_BARREL":
225 _seeds[iseed].seedingThreshold = cms.double(ecal_thresholds[
int(lumi)]*ecal_seed_multiplier)
226 _clusters = process.particleFlowClusterECALUncorrected.initialClusteringStep.thresholdsByDetector
227 for icluster
in range(0,len(_clusters)):
228 if _clusters[icluster].detector.value()==
"ECAL_BARREL":
229 _clusters[icluster].gatheringThreshold = cms.double(ecal_thresholds[
int(lumi)])
References dqmMemoryStats.float, createfilelist.int, and FastTimerService_cff.range.
Referenced by customise_aging_1000(), customise_aging_300(), customise_aging_3000(), customise_aging_3000_ultimate(), and customise_aging_4500_ultimate().
◆ ageHB()
def aging.ageHB |
( |
|
process, |
|
|
|
turnon, |
|
|
|
scenarioHLLHC |
|
) |
| |
Definition at line 35 of file aging.py.
35 def ageHB(process,turnon,scenarioHLLHC):
37 from CalibCalorimetry.HcalPlugins.HBHEDarkening_cff
import HBDarkeningEP
38 process.HBDarkeningEP = HBDarkeningEP
39 process.HBDarkeningEP =
setScenarioHLLHC(process.HBDarkeningEP,scenarioHLLHC)
41 if hcaldigi
is not None: hcaldigi.HBDarkening = cms.bool(turnon)
42 if hasattr(process,
'es_hardcode'):
43 process.es_hardcode.HBRecalibration = cms.bool(turnon)
References getHcalDigitizer(), and setScenarioHLLHC().
Referenced by ageHcal(), turn_off_HB_aging(), and turn_on_HB_aging().
◆ ageHcal()
def aging.ageHcal |
( |
|
process, |
|
|
|
lumi, |
|
|
|
instLumi, |
|
|
|
scenarioHLLHC |
|
) |
| |
Definition at line 129 of file aging.py.
129 def ageHcal(process,lumi,instLumi,scenarioHLLHC):
131 if hcaldigi
is not None: hcaldigi.DelivLuminosity = cms.double(
float(lumi))
134 if hasattr(process,
'g4SimHits'):
135 process.g4SimHits.HCalSD.InstLuminosity = cms.double(
float(instLumi))
136 process.g4SimHits.HCalSD.DelivLuminosity = cms.double(
float(lumi))
139 if hasattr(process,
'es_hardcode'):
140 process.es_hardcode.iLumi = cms.double(
float(lumi))
143 process =
ageHB(process,
True,scenarioHLLHC)
144 process =
ageHE(process,
True,scenarioHLLHC)
145 process =
ageHF(process,
True)
146 process =
ageSiPM(process,
True,lumi)
References ageHB(), ageHE(), ageHF(), ageSiPM(), dqmMemoryStats.float, and getHcalDigitizer().
Referenced by customise_aging_1000(), customise_aging_300(), customise_aging_3000(), customise_aging_3000_ultimate(), and customise_aging_4500_ultimate().
◆ ageHE()
def aging.ageHE |
( |
|
process, |
|
|
|
turnon, |
|
|
|
scenarioHLLHC |
|
) |
| |
Definition at line 46 of file aging.py.
46 def ageHE(process,turnon,scenarioHLLHC):
48 from CalibCalorimetry.HcalPlugins.HBHEDarkening_cff
import HEDarkeningEP
49 process.HEDarkeningEP = HEDarkeningEP
50 process.HEDarkeningEP =
setScenarioHLLHC(process.HEDarkeningEP,scenarioHLLHC)
52 if hcaldigi
is not None: hcaldigi.HEDarkening = cms.bool(turnon)
53 if hasattr(process,
'es_hardcode'):
54 process.es_hardcode.HERecalibration = cms.bool(turnon)
References getHcalDigitizer(), and setScenarioHLLHC().
Referenced by ageHcal(), turn_off_HE_aging(), and turn_on_HE_aging().
◆ ageHF()
def aging.ageHF |
( |
|
process, |
|
|
|
turnon |
|
) |
| |
◆ ageSiPM()
def aging.ageSiPM |
( |
|
process, |
|
|
|
turnon, |
|
|
|
lumi |
|
) |
| |
Definition at line 80 of file aging.py.
80 def ageSiPM(process,turnon,lumi):
81 process.es_hardcode.hbUpgrade.doRadiationDamage = turnon
82 process.es_hardcode.heUpgrade.doRadiationDamage = turnon
88 hcal_lumis = [300, 1000, 3000, 4500, 1e10]
91 "seed": [0.5, 0.625, 0.75, 0.75],
92 "rec": [0.4, 0.5, 0.6, 0.6],
95 "seed": [1.0, 1.5, 1.5, 1.5],
96 "rec": [0.8, 1.2, 1.2, 1.2],
99 "seed": [1.25, 2.5, 2.5, 2.5],
100 "rec": [1.0, 2.0, 2.0, 2.0],
103 "seed": [1.5, 3.0, 3.0, 3.0],
104 "rec": [1.25, 2.5, 2.5, 2.5],
107 ctmodules = [
'calotowermaker',
'caloTowerForTrk',
'caloTowerForTrkPreSplitting',
'towerMaker',
'towerMakerWithHO']
108 for ilumi, hcal_lumi
in enumerate(hcal_lumis[:-1]):
109 if lumi >= hcal_lumi
and lumi < hcal_lumis[ilumi+1]:
110 if hasattr(process,
'particleFlowClusterHBHE'):
111 process.particleFlowClusterHBHE.seedFinder.thresholdsByDetector[0].seedingThreshold = hcal_thresholds[hcal_lumi][
"seed"]
112 process.particleFlowClusterHBHE.initialClusteringStep.thresholdsByDetector[0].gatheringThreshold = hcal_thresholds[hcal_lumi][
"rec"]
113 process.particleFlowClusterHBHE.pfClusterBuilder.recHitEnergyNorms[0].recHitEnergyNorm = hcal_thresholds[hcal_lumi][
"rec"]
114 process.particleFlowClusterHBHE.pfClusterBuilder.positionCalc.logWeightDenominatorByDetector[0].logWeightDenominator = hcal_thresholds[hcal_lumi][
"rec"]
115 process.particleFlowClusterHBHE.pfClusterBuilder.allCellsPositionCalc.logWeightDenominatorByDetector[0].logWeightDenominator = hcal_thresholds[hcal_lumi][
"rec"]
116 if hasattr(process,
'particleFlowClusterHCAL'):
117 process.particleFlowClusterHCAL.pfClusterBuilder.allCellsPositionCalc.logWeightDenominatorByDetector[0].logWeightDenominator = hcal_thresholds[hcal_lumi][
"rec"]
118 if hasattr(process,
'particleFlowRecHitHBHE'):
119 process.particleFlowRecHitHBHE.producers[0].qualityTests[0].cuts[0].threshold = hcal_thresholds[hcal_lumi][
"rec"]
120 for ctmod
in ctmodules:
121 if hasattr(process,ctmod):
122 getattr(process,ctmod).HBThreshold1 = hcal_thresholds[hcal_lumi][
"rec"][0]
123 getattr(process,ctmod).HBThreshold2 = hcal_thresholds[hcal_lumi][
"rec"][1]
124 getattr(process,ctmod).HBThreshold = hcal_thresholds[hcal_lumi][
"rec"][-1]
Referenced by ageHcal(), and turn_off_SiPM_aging().
◆ customise_aging_1000()
def aging.customise_aging_1000 |
( |
|
process | ) |
|
◆ customise_aging_300()
def aging.customise_aging_300 |
( |
|
process | ) |
|
◆ customise_aging_3000()
def aging.customise_aging_3000 |
( |
|
process | ) |
|
◆ customise_aging_3000_ultimate()
def aging.customise_aging_3000_ultimate |
( |
|
process | ) |
|
◆ customise_aging_4500_ultimate()
def aging.customise_aging_4500_ultimate |
( |
|
process | ) |
|
◆ ecal_complete_aging()
def aging.ecal_complete_aging |
( |
|
process | ) |
|
Definition at line 233 of file aging.py.
234 if hasattr(process,
'g4SimHits'):
235 process.g4SimHits.ECalSD.AgeingWithSlopeLY = cms.untracked.bool(
True)
236 if hasattr(process,
'ecal_digi_parameters'):
237 process.ecal_digi_parameters.UseLCcorrection = cms.untracked.bool(
False)
◆ getHcalDigitizer()
def aging.getHcalDigitizer |
( |
|
process | ) |
|
Definition at line 4 of file aging.py.
5 if hasattr(process,
'mixData'):
7 if hasattr(process,
'mix')
and hasattr(process.mix,
'digitizers')
and hasattr(process.mix.digitizers,
'hcal'):
8 return process.mix.digitizers.hcal
Referenced by ageHB(), ageHcal(), ageHE(), ageHF(), and hf_complete_aging().
◆ getHGCalDigitizer()
def aging.getHGCalDigitizer |
( |
|
process, |
|
|
|
section |
|
) |
| |
Definition at line 11 of file aging.py.
12 if hasattr(process,
'mix')
and hasattr(process.mix,
'digitizers'):
13 if section ==
'EE' and hasattr(process.mix.digitizers,
'hgceeDigitizer'):
14 return process.mix.digitizers.hgceeDigitizer
15 elif section ==
'FH' and hasattr(process.mix.digitizers,
'hgchefrontDigitizer'):
16 return process.mix.digitizers.hgchefrontDigitizer
17 elif section ==
'BH' and hasattr(process.mix.digitizers,
'hgchebackDigitizer'):
18 return process.mix.digitizers.hgchebackDigitizer
19 elif section ==
'HFNose' and hasattr(process.mix.digitizers,
'hfnoseDigitizer'):
20 return process.mix.digitizers.hfnoseDigitizer
◆ hf_complete_aging()
def aging.hf_complete_aging |
( |
|
process | ) |
|
Definition at line 178 of file aging.py.
179 if hasattr(process,
'g4SimHits'):
180 process.g4SimHits.HCalSD.HFDarkening = cms.untracked.bool(
True)
182 if hcaldigi
is not None: hcaldigi.HFDarkening = cms.untracked.bool(
False)
References getHcalDigitizer().
◆ realisticHGCalStartup()
def aging.realisticHGCalStartup |
( |
|
process | ) |
|
◆ setScenarioHLLHC()
def aging.setScenarioHLLHC |
( |
|
module, |
|
|
|
scenarioHLLHC |
|
) |
| |
Definition at line 24 of file aging.py.
25 if scenarioHLLHC==
"nominal":
26 from CalibCalorimetry.HcalPlugins.HBHEDarkening_cff
import _years_LHC, _years_HLLHC_nominal
27 module.years = _years_LHC + _years_HLLHC_nominal
28 elif scenarioHLLHC==
"ultimate":
29 from CalibCalorimetry.HcalPlugins.HBHEDarkening_cff
import _years_LHC, _years_HLLHC_ultimate
30 module.years = _years_LHC + _years_HLLHC_ultimate
Referenced by ageHB(), and ageHE().
◆ turn_off_HB_aging()
def aging.turn_off_HB_aging |
( |
|
process | ) |
|
◆ turn_off_HE_aging()
def aging.turn_off_HE_aging |
( |
|
process | ) |
|
◆ turn_off_HF_aging()
def aging.turn_off_HF_aging |
( |
|
process | ) |
|
◆ turn_off_SiPM_aging()
def aging.turn_off_SiPM_aging |
( |
|
process | ) |
|
◆ turn_on_HB_aging()
def aging.turn_on_HB_aging |
( |
|
process | ) |
|
◆ turn_on_HE_aging()
def aging.turn_on_HE_aging |
( |
|
process | ) |
|
◆ turn_on_HF_aging()
def aging.turn_on_HF_aging |
( |
|
process | ) |
|
def turn_off_HF_aging(process)
def turn_on_HB_aging(process)
def turn_off_HB_aging(process)
def ageHB(process, turnon, scenarioHLLHC)
def hf_complete_aging(process)
def HFNose_setEndOfLifeNoise(process, byDose=True, byDoseAlgo=0, byDoseFactor=1)
def customise_aging_4500_ultimate(process)
def ageHE(process, turnon, scenarioHLLHC)
def setScenarioHLLHC(module, scenarioHLLHC)
def turn_on_HF_aging(process)
def ageHcal(process, lumi, instLumi, scenarioHLLHC)
def realisticHGCalStartup(process)
def ageHF(process, turnon)
def agedHFNose(process, algo=0)
def HGCal_setEndOfLifeNoise(process, byDose=True, byDoseAlgo=0, byDoseFactor=1)
def agedHGCal(process, algo=0)
def ageEcal(process, lumi, instLumi)
def ageSiPM(process, turnon, lumi)
def customise_aging_3000_ultimate(process)
def ecal_complete_aging(process)
def customise_aging_300(process)
def turn_on_HE_aging(process)
def HGCal_setRealisticStartupNoise(process)
def customise_aging_1000(process)
def turn_off_HE_aging(process)
def getHGCalDigitizer(process, section)
def getHcalDigitizer(process)
def customise_aging_3000(process)
def turn_off_SiPM_aging(process)