6def CaloCellNoiseAlgCfg(flags):
7 result=ComponentAccumulator()
8 from LArRecUtils.LArADC2MeVCondAlgConfig import LArADC2MeVCondAlgCfg
9 result.merge(LArADC2MeVCondAlgCfg(flags))
10
11 noiseAlg=CompFactory.CaloCellNoiseAlg("CaloCellNoiseAlg",
12 doMC = True,
13 readNtuple = False,
14 doFit = True,
15 TotalNoiseKey = '',
16 ElecNoiseKey = '',
17 )
18 result.addEventAlgo(noiseAlg)
19
20 result.addService(CompFactory.NTupleSvc(Output = [ "FILE1 DATAFILE='cellnoise.root' OPT='NEW'" ]))
21 result.setAppProperty("HistogramPersistency","ROOT")
22 return result
23
24
25
26