ATLAS Offline Software
Functions
python.NSWPRDValAlgReco Namespace Reference

Functions

def NSWPRDValAlgRecoCfg (flags, name="NSWPRDValAlg", **kwargs)
 

Function Documentation

◆ NSWPRDValAlgRecoCfg()

def python.NSWPRDValAlgReco.NSWPRDValAlgRecoCfg (   flags,
  name = "NSWPRDValAlg",
**  kwargs 
)

Definition at line 10 of file NSWPRDValAlgReco.py.

10 def NSWPRDValAlgRecoCfg(flags, name = "NSWPRDValAlg", **kwargs):
11  result = ComponentAccumulator()
12 
13  histSvc = CompFactory.THistSvc(Output=["NSWPRDValAlg DATAFILE='NSWPRDValAlg.reco.ntuple.root' OPT='RECREATE'"])
14  result.addService(histSvc)
15 
16  kwargs.setdefault("doTruth", True)
17  kwargs.setdefault("doMuEntry", True)
18 
19  kwargs.setdefault("doMMHit", False) # not present in RDO files
20  kwargs.setdefault("doMMDigit", False) # not present in RDO files
21  kwargs.setdefault("doMMRDO", flags.Detector.EnableMM)
22  kwargs.setdefault("doMMPRD", flags.Detector.EnableMM)
23  kwargs.setdefault("doMMFastDigit", False)
24 
25  kwargs.setdefault("doSTGCHit", False)
26  kwargs.setdefault("doSTGCDigit", False)
27  kwargs.setdefault("doSTGCRDO", flags.Detector.EnablesTGC)
28  kwargs.setdefault("doSTGCPRD",flags.Detector.EnablesTGC )
29  kwargs.setdefault("doSTGCFastDigit", False)
30 
31  kwargs.setdefault("doRPCHit", False) # no RPC_Hits present in RDO files
32  kwargs.setdefault("doRPCSDO", True)
33  kwargs.setdefault("doRPCDigit", False) # no RPC_DIGITS present in RDO files
34 
35  kwargs.setdefault("doMDTHit", False) # no MDT_Hits present in RDO files
36  kwargs.setdefault("doMDTSDO", True)
37  kwargs.setdefault("doMDTDigit", False) # no MDT_DIGITS present in RDO files
38 
39  kwargs.setdefault("doTGCHit", False) # no TGC_Hits present in RDO files
40  kwargs.setdefault("doTGCSDO", True)
41  kwargs.setdefault("doTGCDigit", False) # no TGC_DIGITS present in RDO files
42  kwargs.setdefault("doTGCRDO", False)
43  kwargs.setdefault("doTGCPRD", False)
44 
45 
46  #Turn off by default but keep the option to turn on for validation of the NSW
47  kwargs.setdefault("doMMSDO", False)
48  kwargs.setdefault("doSTGCSDO", False)
49 
50  if not flags.Detector.EnableCSC:
51  kwargs.setdefault("CscRDODecoder","") # Remove the tool to prevent initializing CSC calibration tool
52  kwargs.setdefault("doCSCHit", False) # no CSC_Hits present in RDO files
53  kwargs.setdefault("doCSCSDO", flags.Detector.EnableCSC)
54  kwargs.setdefault("doCSCDigit", False) # no CSC_DIGITS present in RDO files
55  kwargs.setdefault("doCSCRDO", False)
56  kwargs.setdefault("doCSCPRD", flags.Detector.EnableCSC)
57 
58  NSWPRDValAlg = CompFactory.NSWPRDValAlg(name, **kwargs)
59  result.addEventAlgo(NSWPRDValAlg)
60 
61  return result
python.NSWPRDValAlgReco.NSWPRDValAlgRecoCfg
def NSWPRDValAlgRecoCfg(flags, name="NSWPRDValAlg", **kwargs)
Definition: NSWPRDValAlgReco.py:10
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302