ATLAS Offline Software
NSWPRDValAlgSim.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2 
3 # jobOptions to activate the dump of the NSWPRDValAlg nTuple
4 # This file can be used with Sim_tf by specifying --postInclude MuonPRDTest.NSWPRDValAlgSim.NSWPRDValAlgSimCfg
5 # It dumps Truth, MuEntry and Hits, Digits, SDOs and RDOs for MM and sTGC
6 
7 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
8 from AthenaConfiguration.ComponentFactory import CompFactory
9 from AthenaCommon.Constants import INFO
10 
11 def NSWPRDValAlgSimCfg(flags, name = "NSWPRDValAlg", **kwargs):
12  result = ComponentAccumulator()
13 
14  histSvc = CompFactory.THistSvc(Output=["NSWPRDValAlg DATAFILE='NSWPRDValAlg.sim.ntuple.root' OPT='RECREATE'"])
15  result.addService(histSvc)
16 
17  kwargs.setdefault("OutputLevel", INFO)
18  kwargs.setdefault("doTruth", True)
19  kwargs.setdefault("doMuEntry", True)
20 
21  kwargs.setdefault("doMDTHit", True)
22  kwargs.setdefault("doRPCHit", True)
23  kwargs.setdefault("doTGCHit", True)
24 
25  kwargs.setdefault("doMMHit", flags.Detector.EnableMM)
26  kwargs.setdefault("doSTGCHit", flags.Detector.EnablesTGC)
27  kwargs.setdefault("doCSCHit", flags.Detector.EnableCSC)
28 
29  if not flags.Detector.EnableCSC:
30  kwargs.setdefault("CscRDODecoder","") # Remove the tool to prevent initializing CSC calibration tool
31 
32  NSWPRDValAlg = CompFactory.NSWPRDValAlg(name, **kwargs)
33  result.addEventAlgo(NSWPRDValAlg)
34 
35  return result
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.NSWPRDValAlgSim.NSWPRDValAlgSimCfg
def NSWPRDValAlgSimCfg(flags, name="NSWPRDValAlg", **kwargs)
Definition: NSWPRDValAlgSim.py:11
Constants
some useful constants -------------------------------------------------—