4 Tools to customise the PCL workflow which computes beamspot from a dedicated express-like stream
12 if ( hasattr(process,
'PoolDBOutputService')
and
13 hasattr(process,
'pclMetadataWriter')
and
14 hasattr(process,
'ALCAHARVESTBeamSpotByLumi') ):
15 for onePset
in process.PoolDBOutputService.toPut:
16 if onePset.record ==
'BeamSpotObjectsRcdByLumi':
17 onePset.record =
'BeamSpotObjectsRcdHPByLumi'
18 onePset.tag =
'BeamSpotObjectHP_ByLumi'
19 for onePset
in process.pclMetadataWriter.recordsToMap:
20 if onePset.record ==
'BeamSpotObjectsRcdByLumi':
21 onePset.record =
'BeamSpotObjectsRcdHPByLumi'
22 if process.ALCAHARVESTBeamSpotByLumi.AlcaBeamSpotHarvesterParameters.outputRecordName ==
'BeamSpotObjectsRcdByLumi':
23 process.ALCAHARVESTBeamSpotByLumi.AlcaBeamSpotHarvesterParameters.outputRecordName =
'BeamSpotObjectsRcdHPByLumi'
24 process.ALCAHARVESTBeamSpotByLumi.AlcaBeamSpotHarvesterParameters.DumpTxt =
True
26 if ( hasattr(process,
'PoolDBOutputService')
and
27 hasattr(process,
'pclMetadataWriter')
and
28 hasattr(process,
'ALCAHARVESTBeamSpotByRun') ):
29 for onePset
in process.PoolDBOutputService.toPut:
30 if onePset.record ==
'BeamSpotObjectsRcdByRun':
31 onePset.record =
'BeamSpotObjectsRcdHPByRun'
32 onePset.tag =
'BeamSpotObjectHP_ByRun'
33 for onePset
in process.pclMetadataWriter.recordsToMap:
34 if onePset.record ==
'BeamSpotObjectsRcdByRun':
35 onePset.record =
'BeamSpotObjectsRcdHPByRun'
36 if process.ALCAHARVESTBeamSpotByRun.AlcaBeamSpotHarvesterParameters.outputRecordName ==
'BeamSpotObjectsRcdByRun':
37 process.ALCAHARVESTBeamSpotByRun.AlcaBeamSpotHarvesterParameters.outputRecordName =
'BeamSpotObjectsRcdHPByRun'
41 if hasattr(process,
'ALCARECOTkAlMinBiasDQM')
and 'ALCARECOTkAlMinBiasTkAlDQM' in process.ALCARECOTkAlMinBiasDQM.moduleNames() :
42 process.ALCARECOTkAlMinBiasDQM.remove(process.ALCARECOTkAlMinBiasTkAlDQM)