10 log = logging.getLogger(
'LArFebErrorSummaryMakerConfig')
11 projectName=flags.Input.ProjectName
14 streamName=flags.Input.ProcessingTags
15 if len(streamName) > 0
and len(streamName[0])>4
and streamName[0].endswith(
"PEB"):
16 log.info(
"StreamName %s suggests partial event building. Do not check for FEB completeness",str(streamName))
20 if projectName ==
"data_test":
21 from datetime
import date
22 yearNumber=date.today().year-2000
23 log.info(
"Found project name data_test, assume year number to be %d",yearNumber)
26 yearNumber=int(projectName[4:6])
28 from datetime
import date
29 yearNumber=date.today().year-2000
30 log.warning(
"Failed to extract year from project tag "+ projectName+
". Guessing %d",yearNumber)
33 lMaskFebScacStatus = [0x38680000,0x38720000]
34 lMaskFebEvtId = [0x38680000]
36 lMaskFebScacStatus = [0x38080000]
37 lMaskFebEvtId = [0x38080000]
41 acc = LArBadFebCfg(flags)
45 if flags.Common.isOnline
or flags.Common.doExpressProcessing:
48 acc.addEventAlgo(CompFactory.LArFebErrorSummaryMaker(
"LArFebErrorSummaryMaker",CheckAllFEB=bCheckAllFEB,
49 WriteKey=
"StoreGateSvc+LArFebErrorSummary",
50 EventInfoKey=f
"{flags.Overlay.BkgPrefix}EventInfo" if flags.Common.ProductionStep
is ProductionStep.MinbiasPreprocessing
else "EventInfo",
51 MaskFebScacStatus = lMaskFebScacStatus, MaskFebEvtId = lMaskFebEvtId,
52 minFebInError=minErrFeb
57 acc.merge(addToESD(flags,[
"LArFebErrorSummary#LArFebErrorSummary",]))