44 from LArCabling.LArCablingConfig
import LArOnOffIdMappingCfg
46 if flags.LArCalib.isSC:
47 from LArCabling.LArCablingConfig
import LArOnOffIdMappingSCCfg
52 BoardIDs[
"EMBA"] = [1023868928, 1040121856, 1024917504, 1024393216, 1025966080, 1025441792, 1027014656, 1026490368, 1028063232, 1027538944, 1029111808, 1028587520, 1030160384, 1029636096, 1031208960, 1030684672, 1032257536, 1031733248, 1033306112, 1032781824, 1034354688, 1033830400, 1035403264, 1034878976, 1036451840, 1035927552, 1037500416, 1036976128, 1038548992, 1038024704, 1039597568, 1039073280]
53 BoardIDs[
"EMBC"] = [1015480320, 1014956032, 1014431744, 1013907456, 1013383168, 1012858880, 1012334592, 1011810304, 1011286016, 1010761728, 1010237440, 1009713152, 1009188864, 1008664576, 1008140288, 1007616000, 1007091712, 1023344640, 1022820352, 1022296064, 1021771776, 1021247488, 1020723200, 1020198912, 1019674624, 1019150336, 1018626048, 1018101760, 1017577472, 1017053184, 1016528896, 1016004608]
55 BoardIDs[
"Barrel"] = BoardIDs[
"EMBA"] + BoardIDs[
"EMBC"]
57 BoardIDs[
"EMECAstd"] = [1057947648, 1057423360, 1060044800, 1059520512, 1061617664, 1061093376, 1063714816, 1063190528, 1064763392, 1064239104, 1066860544, 1066336256, 1067909120, 1067384832, 1070006272, 1069481984]
58 BoardIDs[
"EMECAspe"] = [1058603008, 1058635776, 1062273024, 1062305792, 1065418752, 1065451520, 1068564480, 1068597248]
59 BoardIDs[
"EMECCstd"] = [1046937600, 1046413312, 1044840448, 1044316160, 1043267584, 1042743296, 1041170432, 1040646144, 1053229056, 1052704768, 1051131904, 1050607616, 1050083328, 1049559040, 1047986176, 1047461888]
60 BoardIDs[
"EMECCspe"] = [1045495808, 1045528576, 1041825792, 1041858560, 1051787264, 1051820032, 1048641536, 1048674304]
62 BoardIDs[
"EMECspe"] = BoardIDs[
"EMECAspe"]+BoardIDs[
"EMECCspe"]
63 BoardIDs[
"EMECstd"] = BoardIDs[
"EMECAstd"]+BoardIDs[
"EMECCstd"]
65 BoardIDs[
"HECA"] = [1058897920, 1062567936, 1065713664, 1068859392]
66 BoardIDs[
"HECC"] = [1045790720, 1042120704, 1052082176, 1048936448]
67 BoardIDs[
"FCALA"] = [1060601856]
68 BoardIDs[
"FCALC"] = [1043824640]
70 BoardIDs[
"HEC"] = BoardIDs[
"HECA"] + BoardIDs[
"HECC"]
71 BoardIDs[
"FCAL"] = BoardIDs[
"FCALA"] + BoardIDs[
"FCALC"]
73 Boards = [ BoardIDs[
"Barrel"], BoardIDs[
"EMECstd"], BoardIDs[
"EMECspe"], BoardIDs[
"HEC"], BoardIDs[
"FCAL"] ]
77 DACs,Delays,Patterns=
patternToVars(flags.LArCalib.Input.paramsFile)
78 nPatterns=len(Patterns)
80 print(
'CalibDigitsMakerConfig: ',DACs,
' ',Delays,
' ',Patterns)
81 result.addEventAlgo(CompFactory.LArCalibDigitMaker(
"LArCalibDigitMaker", KeyList = [DigitsKey],
82 NTrigger = 100, DAC = [DACs,DACs,DACs,DACs,DACs],
83 Delay = Delays, Pattern = [Patterns,Patterns,Patterns,Patterns,Patterns],
84 nPattern = [nPatterns,nPatterns,nPatterns,nPatterns,nPatterns],
88 result.addEventAlgo(CompFactory.LArCalibDigitsAccumulator(
"LArCalibDigitsAccumulator", KeyList = [DigitsKey],
89 LArAccuCalibDigitContainerName =
"",
90 DelayScale = (25./240.)*ns, SampleShift = 0,
91 KeepFullyPulsedSC =
True, KeepOnlyPulsed =
True,
92 isSC = flags.LArCalib.isSC, DropPercentTrig = 0))