ATLAS Offline Software
LArPulseShapeRunConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
2 
3 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory import CompFactory
5 
6 def LArPulseShapeRunCfg(flags):
7 
8  result=ComponentAccumulator()
9 
10  from LArGeoAlgsNV.LArGMConfig import LArGMCfg
11  result.merge(LArGMCfg(flags))
12  from TileGeoModel.TileGMConfig import TileGMCfg
13  result.merge(TileGMCfg(flags))
14 
15  #Setup cabling
16  from LArCabling.LArCablingConfig import LArOnOffIdMappingCfg
17  result.merge(LArOnOffIdMappingCfg(flags))
18 
19  from LArByteStream.LArRawDataReadingConfig import LArRawDataReadingCfg
20  result.merge(LArRawDataReadingCfg(flags))
21 
22  from TrigT1ResultByteStream.TrigT1ResultByteStreamConfig import L1TriggerByteStreamDecoderCfg
23  result.merge(L1TriggerByteStreamDecoderCfg(flags))
24 
25  from TrigDecisionTool.TrigDecisionToolConfig import TrigDecisionToolCfg
26  tdt=result.getPrimaryAndMerge(TrigDecisionToolCfg(flags))
27 
28 
29  from xAODEventInfoCnv.xAODEventInfoCnvConfig import EventInfoCnvAlgCfg
30  result.merge(EventInfoCnvAlgCfg(flags, disableBeamSpot=True))
31 
32  from LumiBlockComps.LuminosityCondAlgConfig import LuminosityCondAlgCfg
33  result.merge(LuminosityCondAlgCfg(flags))
34 
35  from AthenaCommon.Constants import DEBUG
36  result.addService(CompFactory.NTupleSvc(Output=["PULSE DATAFILE='pulse_shape.root' OPT='RECREATE'",],OutputLevel=DEBUG))
37  result.setAppProperty("HistogramPersistency","ROOT")
38 
39  result.addEventAlgo(CompFactory.LArPulseShape(TrigDecisionTool=tdt))
40 
41  return result
42 
43 if __name__=="__main__":
44 
45  from AthenaConfiguration.AllConfigFlags import initConfigFlags
47  from LArCafJobs.LArShapeDumperFlags import addShapeDumpFlags
48  addShapeDumpFlags(flags)
49 
50  flags.Input.Files=["root://eosatlas//eos/atlas/atlascerngroupdisk/det-larg/ShapeTest/00461002/data23_13p6TeV.00461002.physics_CosmicCalo.merge.RAW._lb1020._SFO-ALL._0001.1"]
51 
52  flags.Detector.GeometryID = False
53  flags.Detector.GeometryITk = False
54  flags.Detector.GeometryHGTD = False
55  flags.Detector.GeometryCalo = False
56  flags.Detector.GeometryMuon = False
57  flags.Detector.GeometryForward = False
58 
59  flags.Trigger.doID = False
60 
61  flags.Trigger.triggerConfig='DB'
62  flags.Trigger.DecisionMakerValidation.Execute=False
63  flags.Trigger.enableL1CaloPhase1=False
64 
65  flags.lock()
66 
67  from AthenaConfiguration.MainServicesConfig import MainServicesCfg
68 
69  cfg=MainServicesCfg(flags)
70  cfg.merge(LArPulseShapeRunCfg(flags))
71 
72 
73  cfg.run(10)
74 
LArShapeDumperFlags.addShapeDumpFlags
def addShapeDumpFlags(flags)
Definition: LArShapeDumperFlags.py:5
python.LuminosityCondAlgConfig.LuminosityCondAlgCfg
def LuminosityCondAlgCfg(flags, useOnlineLumi=None, suffix=None)
Definition: LuminosityCondAlgConfig.py:17
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.MainServicesConfig.MainServicesCfg
def MainServicesCfg(flags, LoopMgr='AthenaEventLoopMgr')
Definition: MainServicesConfig.py:256
Constants
some useful constants -------------------------------------------------—
LArCablingConfig.LArOnOffIdMappingCfg
def LArOnOffIdMappingCfg(configFlags)
Definition: LArCablingConfig.py:62
LArGMConfig.LArGMCfg
def LArGMCfg(flags)
Definition: LArGMConfig.py:8
python.LArRawDataReadingConfig.LArRawDataReadingCfg
def LArRawDataReadingCfg(configFlags, **kwargs)
Definition: LArRawDataReadingConfig.py:10
python.TriggerInterface.TrigDecisionToolCfg
def TrigDecisionToolCfg(flags)
Definition: TriggerInterface.py:14
python.AllConfigFlags.initConfigFlags
def initConfigFlags()
Definition: AllConfigFlags.py:19
TrigT1ResultByteStreamConfig.L1TriggerByteStreamDecoderCfg
def L1TriggerByteStreamDecoderCfg(flags, returnEDM=False)
Definition: TrigT1ResultByteStreamConfig.py:133
python.xAODEventInfoCnvConfig.EventInfoCnvAlgCfg
def EventInfoCnvAlgCfg(flags, name="EventInfoCnvAlg", inputKey="McEventInfo", outputKey="EventInfo", disableBeamSpot=False, **kwargs)
Definition: xAODEventInfoCnvConfig.py:11
LArPulseShapeRunConfig.LArPulseShapeRunCfg
def LArPulseShapeRunCfg(flags)
Definition: LArPulseShapeRunConfig.py:6
TileGMConfig.TileGMCfg
def TileGMCfg(flags)
Definition: TileGMConfig.py:7