Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:30:34

0001 import FWCore.ParameterSet.Config as cms
0002 def customise(process):
0003 
0004 #

0005 # IOV set based on GlobalTag GR_R_35X_V8B

0006 #

0007 # placeholder !!!!!! replace with the actual run number of

0008 # the real run to be overlaid

0009 
0010     process.source.firstRun = cms.untracked.uint32(132599)
0011 
0012     process.ecalConditions1 = cms.ESSource("PoolDBESSource",                                          
0013          process.CondDBSetup,                                                                         
0014          timetype = cms.string('runnumber'),                                                          
0015          toGet = cms.VPSet(                                                                           
0016              cms.PSet(                                                                                
0017         record = cms.string('EcalADCToGeVConstantRcd'),                                               
0018         tag = cms.string('EcalADCToGeVConstant_v6_offline')
0019         ),                                                                                            
0020              cms.PSet(                                                                                
0021         record = cms.string('EcalChannelStatusRcd'),                                                  
0022         tag = cms.string('EcalChannelStatus_v04_offline')                                   
0023         ),                                                                                            
0024              cms.PSet(                                                                                
0025         record = cms.string('EcalGainRatiosRcd'),                                                     
0026         tag = cms.string('EcalGainRatio_TestPulse2009_offline')                                      
0027         ),                                                                                            
0028              cms.PSet(                                                                                
0029         record = cms.string('EcalIntercalibConstantsRcd'),                                            
0030         tag = cms.string('EcalIntercalibConstants_v6_offline')                                 
0031         ),                                                                                            
0032              cms.PSet(                                                                                
0033         record = cms.string('EcalIntercalibErrorsRcd'),                                               
0034         tag = cms.string('EcalIntercalibErrors_mc')                                                   
0035         ),                                                                                            
0036              cms.PSet(                                                                                
0037         record = cms.string('EcalMappingElectronicsRcd'),                                             
0038         tag = cms.string('EcalMappingElectronics_EEMap')                                              
0039         ),                                                                                            
0040              cms.PSet(                                                                                
0041         record = cms.string('EcalPedestalsRcd'),                                                      
0042         tag = cms.string('EcalPedestals_2009runs_hlt')                                                
0043         ),                                                                                            
0044              cms.PSet(                                                                                
0045         record = cms.string('EcalTBWeightsRcd'),                                                      
0046         tag = cms.string('EcalTBWeights_EBEE_v01_offline')                                     
0047         ),                                                                                            
0048              cms.PSet(                                                                                
0049         record = cms.string('EcalTimeCalibConstantsRcd'),                                             
0050         tag = cms.string('EcalTimeCalibConstants_v02_offline')
0051         ),                                                                                            
0052              cms.PSet(                                                                                
0053         record = cms.string('EcalWeightXtalGroupsRcd'),                                               
0054         tag = cms.string('EcalWeightXtalGroups_EBEE_offline')                                   
0055         ),                                                                                            
0056              cms.PSet(                                                                   
0057         record = cms.string('EcalLaserAPDPNRatiosRcd'),                                               
0058         tag = cms.string('EcalLaserAPDPNRatios_p1p2p3_v2_mc')                                        
0059         ),                                                                                            
0060              ),                                                                                       
0061         connect = cms.string('frontier://FrontierProd/CMS_COND_31X_ECAL'),                            
0062               authenticationMethod = cms.untracked.uint32(0)                                          
0063     )                                                                                                 
0064                                                                                                       
0065 
0066     process.ecalConditions2 = cms.ESSource("PoolDBESSource",
0067                                            process.CondDBSetup,
0068                                            timetype = cms.string('runnumber'),
0069                                            toGet = cms.VPSet(
0070         cms.PSet(
0071         record = cms.string('EcalTPGCrystalStatusRcd'),
0072         tag = cms.string('EcalTPGCrystalStatus_v2_hlt')
0073         ),
0074         cms.PSet(
0075         record = cms.string('EcalTPGFineGrainEBGroupRcd'),
0076         tag = cms.string('EcalTPGFineGrainEBGroup_v2_hlt')
0077         ),
0078         cms.PSet(
0079         record = cms.string('EcalTPGFineGrainEBIdMapRcd'),
0080         tag = cms.string('EcalTPGFineGrainEBIdMap_v2_hlt')
0081         ),
0082         cms.PSet(
0083         record = cms.string('EcalTPGFineGrainStripEERcd'),
0084         tag = cms.string('EcalTPGFineGrainStripEE_v2_hlt')
0085         ),
0086         cms.PSet(
0087         record = cms.string('EcalTPGFineGrainTowerEERcd'),
0088         tag = cms.string('EcalTPGFineGrainTowerEE_v2_hlt')
0089         ),
0090         cms.PSet(
0091         record = cms.string('EcalTPGLinearizationConstRcd'),
0092         tag = cms.string('EcalTPGLinearizationConst_v2_hlt')
0093         ),
0094         cms.PSet(
0095         record = cms.string('EcalTPGLutGroupRcd'),
0096         tag = cms.string('EcalTPGLutGroup_v2_hlt')
0097         ),
0098         cms.PSet(
0099         record = cms.string('EcalTPGLutIdMapRcd'),
0100         tag = cms.string('EcalTPGLutIdMap_v2_hlt')
0101         ),
0102         cms.PSet(
0103         record = cms.string('EcalTPGPedestalsRcd'),
0104         tag = cms.string('EcalTPGPedestals_v2_hlt')
0105         ),
0106         cms.PSet(
0107         record = cms.string('EcalTPGPhysicsConstRcd'),
0108         tag = cms.string('EcalTPGPhysicsConst_v2_hlt')
0109         ),
0110         cms.PSet(
0111         record = cms.string('EcalTPGSlidingWindowRcd'),
0112         tag = cms.string('EcalTPGSlidingWindow_v2_hlt')
0113         ),
0114         cms.PSet(
0115         record = cms.string('EcalTPGTowerStatusRcd'),
0116         tag = cms.string('EcalTPGTowerStatus_hlt')
0117         ),
0118         cms.PSet(
0119         record = cms.string('EcalTPGWeightGroupRcd'),
0120         tag = cms.string('EcalTPGWeightGroup_v2_hlt')
0121         ),
0122         cms.PSet(
0123         record = cms.string('EcalTPGWeightIdMapRcd'),
0124         tag = cms.string('EcalTPGWeightIdMap_v2_hlt')
0125         ),
0126         ),
0127         connect = cms.string('frontier://FrontierProd/CMS_COND_34X_ECAL'),
0128                authenticationMethod = cms.untracked.uint32(0)
0129     )
0130 
0131     process.es_prefer_ecal1 = cms.ESPrefer("PoolDBESSource","ecalConditions1")                        
0132     process.es_prefer_ecal2 = cms.ESPrefer("PoolDBESSource","ecalConditions2")                        
0133 
0134                                                                                                       
0135     process.hcalConditions = cms.ESSource("PoolDBESSource",                                           
0136                                           process.CondDBSetup,                          
0137                                           timetype = cms.string('runnumber'),                         
0138                                           toGet = cms.VPSet(                                          
0139         cms.PSet(                                                                                     
0140         record = cms.string('HcalChannelQualityRcd'),                                                 
0141         tag = cms.string('HcalChannelQuality_v2.10_offline')                                          
0142         ),                                                                                            
0143         cms.PSet(                                                                                     
0144         record = cms.string('HcalElectronicsMapRcd'),                                                 
0145         tag = cms.string('HcalElectronicsMap_v7.03_hlt')                                              
0146         ),                                                                                            
0147         cms.PSet(                                                                                     
0148         record = cms.string('HcalGainsRcd'),                                                          
0149         tag = cms.string('HcalGains_v2.32_offline')                                                   
0150         ),                                                                                            
0151         cms.PSet(                                                                                     
0152         record = cms.string('HcalL1TriggerObjectsRcd'),                                               
0153         tag = cms.string('HcalL1TriggerObjects_v1.00_hlt')                                            
0154         ),                                                                                            
0155         cms.PSet(                                                                                     
0156         record = cms.string('HcalLUTCorrsRcd'),                                                       
0157         tag = cms.string('HcalLUTCorrs_v1.01_hlt')                                                    
0158         ),                                                                                            
0159         cms.PSet(                                                                                     
0160         record = cms.string('HcalPedestalsRcd'),                                                      
0161         tag = cms.string('HcalPedestals_ADC_v9.12_offline')                                        
0162         ),                                                                                            
0163         cms.PSet(                                                                                     
0164         record = cms.string('HcalPedestalWidthsRcd'),                                                 
0165         tag = cms.string('HcalPedestalWidths_ADC_v7.01_hlt')                                          
0166         ),                                                                                            
0167         cms.PSet(                                                                                     
0168         record = cms.string('HcalPFCorrsRcd'),                                                        
0169         tag = cms.string('HcalPFCorrs_v2.00_express')                                                 
0170         ),                                                                                            
0171         cms.PSet(                                                                                     
0172         record = cms.string('HcalQIEDataRcd'),                                                        
0173         tag = cms.string('HcalQIEData_NormalMode_v7.00_hlt')                                          
0174         ),                                                                                            
0175         cms.PSet(                                                                                     
0176         record = cms.string('HcalRespCorrsRcd'),                                                      
0177         tag = cms.string('HcalRespCorrs_v1.02_express')                                               
0178         ),                                                                                            
0179         cms.PSet(                                                                                     
0180         record = cms.string('HcalTimeCorrsRcd'),                                                      
0181         tag = cms.string('HcalTimeCorrs_v1.00_express')                                               
0182         ),                                                                                            
0183         cms.PSet(                                                                                     
0184         record = cms.string('HcalZSThresholdsRcd'),                                                   
0185         tag = cms.string('HcalZSThresholds_v1.01_hlt')                                                
0186         ),                                                                                            
0187         ),                                                                                            
0188              connect = cms.string('frontier://FrontierProd/CMS_COND_31X_HCAL'),                       
0189                       authenticationMethod = cms.untracked.uint32(0)                                  
0190     )                                                                                                 
0191                                                                                                       
0192     process.es_prefer_hcal = cms.ESPrefer("PoolDBESSource","hcalConditions")                          
0193                                                                                                       
0194     try: 
0195         process.ecalRecHit.ChannelStatusToBeExcluded = [ 1, 2, 3, 4, 8, 9, 10, 11, 12, 13, 14, 78, 142 ]  
0196     except:
0197         return(process)
0198  
0199     return(process)