ATLAS Offline Software
Loading...
Searching...
No Matches
LArPulseShapeRunConfig.py
Go to the documentation of this file.
1# Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
2
3from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4from AthenaConfiguration.ComponentFactory import CompFactory
5
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
43if __name__=="__main__":
44
45 from AthenaConfiguration.AllConfigFlags import initConfigFlags
46 flags=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