10 result=ComponentAccumulator()
12 from LArGeoAlgsNV.LArGMConfig
import LArGMCfg
13 result.merge(LArGMCfg(flags))
14 from LArCabling.LArCablingConfig
import LArOnOffIdMappingCfg
15 result.merge(LArOnOffIdMappingCfg(flags))
18 from LArRecUtils.LArRecUtilsConfig
import LArMCSymCondAlgCfg
19 result.merge (LArMCSymCondAlgCfg (flags))
21 from LArConfiguration.LArElecCalibDBConfig
import LArElecCalibDBCfg
22 result.merge(LArElecCalibDBCfg(flags,[
"DAC2uA",
"uA2MeV"]))
25 theLArElecCalibCalculator = CompFactory.LArR4ElecCalibCalculator(OutputLevel=1)
27 result.addEventAlgo(theLArElecCalibCalculator)
29 theLArCompleteToFlat = CompFactory.LArCompleteToFlat(FolderBase=
"/LAR/ElecCalibMC",
31 PedestalInput=
"Pedestal",
33 NoiseInput=
"LArNoiseSym")
35 result.addEventAlgo(theLArCompleteToFlat)
38 from RegistrationServices.OutputConditionsAlgConfig
import OutputConditionsAlgCfg
39 result.merge(OutputConditionsAlgCfg(flags,
40 CrestDir=
"./crestOut",
41 ObjectList=[
"CondAttrListCollection#/LAR/ElecCalibMC/Ramp#/LAR/ElecCalibMC/Ramp",
42 "CondAttrListCollection#/LAR/ElecCalibMC/Pedestal#/LAR/ElecCalibMC/Pedestal",
43 "CondAttrListCollection#/LAR/ElecCalibMC/Noise#/LAR/ElecCalibMC/Noise"],
44 IOVTagList=[
"LARElecCalibMCRamp-R4-00",
45 "LARElecCalibMCPedestal-R4-00",
46 "LARElecCalibMCNoise-R4-00"],
47 Run1=flags.LArCalib.IOVStart,
48 Run2=flags.LArCalib.IOVEnd
59 rootfile=flags.LArCalib.Output.ROOTFile
62 result.addEventAlgo(CompFactory.LArNoise2Ntuple(ContainerKey=
"LArNoiseSym",
64 AddFEBTempInfo =
False,
71 result.addEventAlgo(CompFactory.LArRamps2Ntuple( RampKey=
"LArRampSym",
74 AddFEBTempInfo =
False,
79 SaveAllSamples =
False,
84 if os.path.exists(rootfile):
86 result.addService(CompFactory.NTupleSvc(Output = [
"FILE1 DATAFILE='"+rootfile+
"' OPT='NEW'" ]))
87 result.setAppProperty(
"HistogramPersistency",
"ROOT")
91 from LArRecUtils.LArADC2MeVCondAlgConfig
import LArADC2MeVCondAlgCfg
92 result.merge(LArADC2MeVCondAlgCfg(flags))
93 result.getCondAlgo(
"LArADC2MeVCondAlg").OutputLevel=2
94 result.addEventAlgo(CompFactory.LArADC2MeV2Ntuple( OffId=
True,
95 AddBadChannelInfo=
False,
100 result.addEventAlgo(CompFactory.LAruA2MeV2Ntuple(uA2MeVKey=
"LAruA2MeVSym",
101 DAC2uAKey=
"LArDAC2uASym",
105 AddBadChannelInfo=
False
110 from McEventSelector.McEventSelectorConfig
import McEventSelectorCfg
111 result.merge(McEventSelectorCfg(flags,
115 InitialTimeStamp = 0,
116 TimeStampInterval = 1))
118 from PerfMonComps.PerfMonCompsConfig
import PerfMonMTSvcCfg
119 result.merge(PerfMonMTSvcCfg(flags))