ATLAS Offline Software
NSWPRDValAlgDigi.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 Digi_tf by specifying --postInclude MuonPRDTest.NSWPRDValAlgDigi.NSWPRDValAlgDigiCfg
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 DEBUG
10 
11 def NSWPRDValAlgDigiCfg(flags, name = "NSWPRDValAlg", **kwargs):
12  result = ComponentAccumulator()
13 
14  histSvc = CompFactory.THistSvc(Output=["NSWPRDValAlg DATAFILE='NSWPRDValAlg.digi.ntuple.root' OPT='RECREATE'"])
15  result.addService(histSvc)
16 
17  kwargs.setdefault("doTruth", True)
18  kwargs.setdefault("doMuEntry", True)
19 
20  kwargs.setdefault("doMMHit", flags.Detector.EnableMM)
21  kwargs.setdefault("doMMDigit", flags.Detector.EnableMM)
22  kwargs.setdefault("doMMRDO", flags.Detector.EnableMM)
23  kwargs.setdefault("doMMSDO", flags.Detector.EnableMM)
24  kwargs.setdefault("doMMPRD", False)
25  kwargs.setdefault("doMMFastDigit", False)
26 
27  kwargs.setdefault("doSTGCHit", flags.Detector.EnablesTGC)
28  kwargs.setdefault("doSTGCDigit", flags.Detector.EnablesTGC)
29  kwargs.setdefault("doSTGCRDO", flags.Detector.EnablesTGC)
30  kwargs.setdefault("doSTGCSDO", flags.Detector.EnablesTGC)
31  kwargs.setdefault("doSTGCPRD", False)
32  kwargs.setdefault("doSTGCFastDigit", False)
33 
34  kwargs.setdefault("doRPCHit", True)
35  kwargs.setdefault("doRPCSDO", True)
36  kwargs.setdefault("doRPCDigit", True)
37 
38  kwargs.setdefault("doMDTHit", True)
39  kwargs.setdefault("doMDTSDO", True)
40  kwargs.setdefault("doMDTDigit", True)
41 
42  kwargs.setdefault("doTGCHit", True)
43  kwargs.setdefault("doTGCSDO", True)
44  kwargs.setdefault("doTGCDigit", True)
45  kwargs.setdefault("doTGCRDO", True)
46 
47  kwargs.setdefault("doCSCHit", flags.Detector.EnableCSC)
48  kwargs.setdefault("doCSCSDO", flags.Detector.EnableCSC)
49  kwargs.setdefault("doCSCDigit", flags.Detector.EnableCSC)
50  kwargs.setdefault("doCSCRDO", flags.Detector.EnableCSC)
51  if not flags.Detector.EnableCSC:
52  kwargs.setdefault("CscRDODecoder","")
53  kwargs.setdefault("doCSCPRD", False)
54  kwargs.setdefault("OutputLevel", DEBUG)
55 
56  NSWPRDValAlg = CompFactory.NSWPRDValAlg(name, **kwargs)
57  result.addEventAlgo(NSWPRDValAlg)
58 
59  return result
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.NSWPRDValAlgDigi.NSWPRDValAlgDigiCfg
def NSWPRDValAlgDigiCfg(flags, name="NSWPRDValAlg", **kwargs)
Definition: NSWPRDValAlgDigi.py:11
Constants
some useful constants -------------------------------------------------—