ATLAS Offline Software
LArReco_fromraw_Cfg.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2 
3 if __name__=="__main__":
4 
5  from AthenaConfiguration.AllConfigFlags import initConfigFlags
6  flags = initConfigFlags()
7 
8  from AthenaCommon.Logging import log
9  from AthenaCommon.Constants import DEBUG
10  log.setLevel(DEBUG)
11 
12  from LArMonitoring.LArMonConfigFlags import addLArMonFlags
13  flags.addFlagsCategory("LArMon", addLArMonFlags)
14 
15  from AthenaConfiguration.TestDefaults import defaultTestFiles
16  flags.Input.Files = defaultTestFiles.RAW_RUN2
17 
18  flags.Output.HISTFileName = 'LArMonitoringOutput.root'
19  flags.DQ.enableLumiAccess = False
20  flags.DQ.useTrigger = False
21  flags.lock()
22 
23 
24  from CaloRec.CaloRecoConfig import CaloRecoCfg
25  cfg=CaloRecoCfg(flags)
26 
27  #larCoverage monitoring
28  from LArMonitoring.LArCoverageAlg import LArCoverageConfig
29  cov_acc = LArCoverageConfig(flags)
30  cfg.merge(cov_acc)
31 
32  #affectedRegions monitoring
33  from LArMonitoring.LArAffectedRegionsAlg import LArAffectedRegionsConfig
34  aff_acc = LArAffectedRegionsConfig(flags)
35  cfg.merge(aff_acc)
36 
37  #collision time algo
38  from LArCellRec.LArCollisionTimeConfig import LArCollisionTimeCfg
39  cfg.merge(LArCollisionTimeCfg(flags, cutIteration=False))
40 
41  # and collision time monitoring algo
42  from LArMonitoring.LArCollisionTimeMonAlg import LArCollisionTimeMonConfig
44  cfg.merge(collmon)
45 
46  #ROD monitoring
47  from LArMonitoring.LArRODMonAlg import LArRODMonConfig
48  rodmon = LArRODMonConfig(flags)
49  cfg.merge(rodmon)
50 
51  #Digit monitoring
52 
53  from LArCellRec.LArNoisyROSummaryConfig import LArNoisyROSummaryCfg
54  cfg.merge(LArNoisyROSummaryCfg(flags))
55 
56  from LArMonitoring.LArDigitMonAlg import LArDigitMonConfig
57  digimon = LArDigitMonConfig(flags)
58  cfg.merge(digimon)
59 
60 
61  flags.dump()
62  f=open("LArMonMaker.pkl","w")
63  cfg.store(f)
64  f.close()
65 
66  #cfg.run(10)
67 
python.CaloRecoConfig.CaloRecoCfg
def CaloRecoCfg(flags, clustersname=None)
Definition: CaloRecoConfig.py:9
LArDigitMonAlg.LArDigitMonConfig
def LArDigitMonConfig(flags)
Definition: LArDigitMonAlg.py:5
LArRODMonAlg.LArRODMonConfig
def LArRODMonConfig(flags, cellDebug=False, dspDebug=False)
Definition: LArRODMonAlg.py:5
LArCoverageAlg.LArCoverageConfig
def LArCoverageConfig(flags)
Definition: LArCoverageAlg.py:11
Constants
some useful constants -------------------------------------------------—
LArAffectedRegionsAlg.LArAffectedRegionsConfig
def LArAffectedRegionsConfig(flags)
Definition: LArAffectedRegionsAlg.py:5
LArCollisionTimeMonAlg.LArCollisionTimeMonConfig
def LArCollisionTimeMonConfig(flags)
Definition: LArCollisionTimeMonAlg.py:6
Trk::open
@ open
Definition: BinningType.h:40
LArNoisyROSummaryConfig.LArNoisyROSummaryCfg
def LArNoisyROSummaryCfg(configFlags, **kwargs)
Definition: LArNoisyROSummaryConfig.py:8
LArCollisionTimeConfig.LArCollisionTimeCfg
def LArCollisionTimeCfg(configFlags, cutIteration=False)
Definition: LArCollisionTimeConfig.py:8
python.AllConfigFlags.initConfigFlags
def initConfigFlags()
Definition: AllConfigFlags.py:19