CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions | Variables
autoCondModifiers Namespace Reference

Functions

def autoCond0T
 
def autoCond2017ppRef5TeV
 
def autoCondDDD
 
def autoCondHLTHI
 

Variables

tuple connectionString = essource.connect.value()
 

Function Documentation

def autoCondModifiers.autoCond0T (   autoCond)

Definition at line 8 of file autoCondModifiers.py.

References join().

8 
9 def autoCond0T(autoCond):
10 
11  ConditionsFor0T = ','.join( ['RunInfo_0T_v1_mc', "RunInfoRcd", connectionString, "", "2020-07-01 12:00:00.000"] )
12  GlobalTags0T = {}
13  for key,val in autoCond.items():
14  if "phase" in key: # restrict to phase1 upgrade GTs
15  GlobalTags0T[key+"_0T"] = (autoCond[key], ConditionsFor0T)
16 
17  autoCond.update(GlobalTags0T)
18  return autoCond
static std::string join(char **cmd)
Definition: RemoteFile.cc:19
def autoCondModifiers.autoCond2017ppRef5TeV (   autoCond)

Definition at line 77 of file autoCondModifiers.py.

References join().

77 
78 def autoCond2017ppRef5TeV(autoCond):
79 
80  GlobalTag2017ppRef5TeV = {}
81  # substitute tags needed for 2017 ppRef 5 TeV GT
82  BeamSpotObjects_2017ppRef5TeV = ','.join( ['BeamSpotObjects_pp_2017G_MC_2021sample_for_UL' , "BeamSpotObjectsRcd", connectionString, "", "2021-10-28 12:00:00.000"] )
83  EcalLaserAPDPNRatios_2017ppRef5TeV = ','.join( ['EcalLaserAPDPNRatios_mc_Run2017G_306580' , "EcalLaserAPDPNRatiosRcd", connectionString, "", "2021-10-28 12:00:00.000"] )
84  EcalPedestals_2017ppRef5TeV = ','.join( ['EcalPedestals_Run2017G_306580' , "EcalPedestalsRcd", connectionString, "", "2021-10-28 12:00:00.000"] )
85  EcalTPGLinearizationConst_2017ppRef5TeV = ','.join( ['EcalTPGLinearizationConst_Run2017G_306580' , "EcalTPGLinearizationConstRcd", connectionString, "", "2021-10-28 12:00:00.000"] )
86  EcalTPGPedestals_2017ppRef5TeV = ','.join( ['EcalTPGPedestals_Run2017G_306580' , "EcalTPGPedestalsRcd", connectionString, "", "2021-10-28 12:00:00.000"] )
87  L1Menu_2017ppRef5TeV = ','.join( ['L1Menu_pp502Collisions2017_v4_m6_xml' , "L1TUtmTriggerMenuRcd", connectionString, "", "2021-10-28 12:00:00.000"] )
88 
89  for key,val in autoCond.items():
90  if 'phase1_2017_realistic' in key:
91  GlobalTag2017ppRef5TeV[key+'_ppref'] = (autoCond[key],
92  BeamSpotObjects_2017ppRef5TeV,
93  EcalLaserAPDPNRatios_2017ppRef5TeV,
94  EcalPedestals_2017ppRef5TeV,
95  EcalTPGLinearizationConst_2017ppRef5TeV,
96  EcalTPGPedestals_2017ppRef5TeV,
97  L1Menu_2017ppRef5TeV)
98  autoCond.update(GlobalTag2017ppRef5TeV)
99  return autoCond
static std::string join(char **cmd)
Definition: RemoteFile.cc:19
def autoCondModifiers.autoCondDDD (   autoCond)

Definition at line 34 of file autoCondModifiers.py.

References join().

34 
35 def autoCondDDD(autoCond):
36 
37  GlobalTagsDDD = {}
38  # substitute the DD4hep geometry tags with DDD ones
39  CSCRECODIGI_Geometry_ddd = ','.join( ['CSCRECODIGI_Geometry_112YV2' , "CSCRecoDigiParametersRcd" , connectionString, "" , "2021-09-28 12:00:00.000"] )
40  CSCRECO_Geometry_ddd = ','.join( ['CSCRECO_Geometry_112YV2' , "CSCRecoGeometryRcd" , connectionString, "" , "2021-09-28 12:00:00.000"] )
41  DTRECO_Geometry_ddd = ','.join( ['DTRECO_Geometry_112YV2' , "DTRecoGeometryRcd" , connectionString, "" , "2021-09-28 12:00:00.000"] )
42  GEMRECO_Geometry_ddd = ','.join( ['GEMRECO_Geometry_123YV2' , "GEMRecoGeometryRcd" , connectionString, "" , "2022-02-02 12:00:00.000"] )
43  XMLFILE_Geometry_ddd = ','.join( ['XMLFILE_Geometry_123YV1_Extended2021_mc', "GeometryFileRcd" , connectionString, "Extended", "2022-01-21 12:00:00.000"] )
44  HCALParameters_Geometry_ddd = ','.join( ['HCALParameters_Geometry_112YV2' , "HcalParametersRcd" , connectionString, "" , "2021-09-28 12:00:00.000"] )
45  TKRECO_Geometry_ddd = ','.join( ['TKRECO_Geometry_120YV2' , "IdealGeometryRecord" , connectionString, "" , "2021-09-28 12:00:00.000"] )
46  CTRECO_Geometry_ddd = ','.join( ['CTRECO_Geometry_112YV2' , "PCaloTowerRcd" , connectionString, "" , "2021-09-28 12:00:00.000"] )
47  EBRECO_Geometry_ddd = ','.join( ['EBRECO_Geometry_112YV2' , "PEcalBarrelRcd" , connectionString, "" , "2021-09-28 12:00:00.000"] )
48  EERECO_Geometry_ddd = ','.join( ['EERECO_Geometry_112YV2' , "PEcalEndcapRcd" , connectionString, "" , "2021-09-28 12:00:00.000"] )
49  EPRECO_Geometry_ddd = ','.join( ['EPRECO_Geometry_112YV2' , "PEcalPreshowerRcd" , connectionString, "" , "2021-09-28 12:00:00.000"] )
50  HCALRECO_Geometry_ddd = ','.join( ['HCALRECO_Geometry_112YV2' , "PHcalRcd" , connectionString, "" , "2021-09-28 12:00:00.000"] )
51  TKParameters_Geometry_ddd = ','.join( ['TKParameters_Geometry_112YV2' , "PTrackerParametersRcd" , connectionString, "" , "2021-09-28 12:00:00.000"] )
52  ZDCRECO_Geometry_ddd = ','.join( ['ZDCRECO_Geometry_112YV2' , "PZdcRcd" , connectionString, "" , "2021-09-28 12:00:00.000"] )
53  RPCRECO_Geometry_ddd = ','.join( ['RPCRECO_Geometry_123YV1' , "RPCRecoGeometryRcd" , connectionString, "" , "2022-01-21 12:00:00.000"] )
54  PPSRECO_Geometry_ddd = ','.join( ['PPSRECO_Geometry_121YV2_2021_mc' , "VeryForwardIdealGeometryRecord", connectionString, "" , "2021-12-02 12:00:00.000"] )
55 
56  for key,val in autoCond.items():
57  if 'phase1_202' in key: # modification of the DDD relval GT
58  GlobalTagsDDD[key+'_ddd'] = (autoCond[key],
59  CSCRECODIGI_Geometry_ddd,
60  CSCRECO_Geometry_ddd,
61  DTRECO_Geometry_ddd,
62  GEMRECO_Geometry_ddd,
63  XMLFILE_Geometry_ddd,
64  HCALParameters_Geometry_ddd,
65  TKRECO_Geometry_ddd,
66  CTRECO_Geometry_ddd,
67  EBRECO_Geometry_ddd,
68  EERECO_Geometry_ddd,
69  EPRECO_Geometry_ddd,
70  HCALRECO_Geometry_ddd,
71  TKParameters_Geometry_ddd,
72  ZDCRECO_Geometry_ddd,
73  RPCRECO_Geometry_ddd,
74  PPSRECO_Geometry_ddd)
75  autoCond.update(GlobalTagsDDD)
76  return autoCond
static std::string join(char **cmd)
Definition: RemoteFile.cc:19
def autoCondModifiers.autoCondHLTHI (   autoCond)

Definition at line 19 of file autoCondModifiers.py.

References join().

19 
20 def autoCondHLTHI(autoCond):
21 
22  GlobalTagsHLTHI = {}
23 
24  # emulate hybrid ZeroSuppression on the VirginRaw data of 2015
25  FullPedestalsForHLTHI = ','.join( ['SiStripFullPedestals_GR10_v1_hlt', "SiStripPedestalsRcd", connectionString, "", "2021-03-11 12:00:00.000"] )
26  MenuForHLTHI = ','.join( ['L1Menu_CollisionsHeavyIons2015_v5_uGT_xml', "L1TUtmTriggerMenuRcd", connectionString, "", "2021-03-11 12:00:00.000"] )
27 
28  for key,val in autoCond.items():
29  if key == 'run2_hlt_relval': # modification of HLT relval GT
30  GlobalTagsHLTHI['run2_hlt_hi'] = (autoCond[key], FullPedestalsForHLTHI, MenuForHLTHI)
31 
32  autoCond.update(GlobalTagsHLTHI)
33  return autoCond
static std::string join(char **cmd)
Definition: RemoteFile.cc:19

Variable Documentation

tuple autoCondModifiers.connectionString = essource.connect.value()

Definition at line 5 of file autoCondModifiers.py.

Referenced by cond::auth::DecodingKey.addService(), cond::CredentialStore.createSchema(), cond::RelationalAuthenticationService::RelationalAuthenticationService.credentials(), cond::XMLAuthenticationService::XMLAuthenticationService.credentials(), cond::CredentialStore.exportAll(), CondDBESSource.fillTagCollectionFromDB(), coral_bridge::AuthenticationCredentialSet.get(), cond::persistency.getConnectionParams(), cond::CredentialStore.importForPrincipal(), cond::CredentialStore.resetAdmin(), cond::CredentialStore.selectForUser(), cond::persistency::Logger.setDbDestination(), cond::CredentialStore.setPermission(), and cond::CredentialStore.unsetPermission().