9 log = logging.getLogger(
'LArFebErrorSummaryMakerConfig')
10 projectName=flags.Input.ProjectName
13 streamName=flags.Input.ProcessingTags
14 if len(streamName) > 0
and len(streamName[0])>4
and streamName[0].endswith(
"PEB"):
15 log.info(
"StreamName %s suggests partial event building. Do not check for FEB completeness",
str(streamName))
19 if projectName ==
"data_test":
20 from datetime
import date
21 yearNumber=date.today().year-2000
22 log.info(
"Found project name data_test, assume year number to be %d",yearNumber)
25 yearNumber=
int(projectName[4:6])
27 from datetime
import date
28 yearNumber=date.today().year-2000
29 log.warning(
"Failed to extract year from project tag "+ projectName+
". Guessing %d",yearNumber)
32 lMaskFebScacStatus = [0x38680000,0x38720000]
33 lMaskFebEvtId = [0x38680000]
35 lMaskFebScacStatus = [0x38080000]
36 lMaskFebEvtId = [0x38080000]
44 if flags.Common.isOnline
or flags.Common.doExpressProcessing:
47 acc.addEventAlgo(CompFactory.LArFebErrorSummaryMaker(
"LArFebErrorSummaryMaker",CheckAllFEB=bCheckAllFEB,
48 WriteKey=
"StoreGateSvc+LArFebErrorSummary",
49 MaskFebScacStatus = lMaskFebScacStatus, MaskFebEvtId = lMaskFebEvtId,
50 minFebInError=minErrFeb
55 acc.merge(
addToESD(flags,[
"LArFebErrorSummary#LArFebErrorSummary",]))