ATLAS Offline Software
Functions
python.InDetConfigFlags Namespace Reference

Functions

def createInDetConfigFlags ()
 

Function Documentation

◆ createInDetConfigFlags()

def python.InDetConfigFlags.createInDetConfigFlags ( )

Definition at line 8 of file InDetConfigFlags.py.

9  icf = AthConfigFlags()
10 
11  # Detector flags
12  # Turn running of the truth seeded pseudo tracking only for pileup on and off.
13  # Only makes sense to run on RDO file where SplitDigi was used!
14  icf.addFlag("InDet.doSplitReco", False)
15  # Turn on running of PRD MultiTruthMaker
16  icf.addFlag("InDet.doTruth", lambda prevFlags: prevFlags.Input.isMC)
17 
18  # defines if the X1X mode is used for the offline or not
19  icf.addFlag("InDet.selectSCTIntimeHits", lambda prevFlags: (
20  not(prevFlags.Beam.Type is BeamType.Cosmics or
21  prevFlags.Tracking.PrimaryPassConfig is PrimaryPassConfig.VtxBeamSpot)))
22  icf.addFlag("InDet.useDCS", True)
23  icf.addFlag("InDet.usePixelDCS", lambda prevFlags: (
24  prevFlags.InDet.useDCS and prevFlags.Detector.EnablePixel))
25  icf.addFlag("InDet.useSctDCS", lambda prevFlags: (
26  prevFlags.InDet.useDCS and prevFlags.Detector.EnableSCT))
27  # Use old (non CoolVectorPayload) SCT Conditions
28  icf.addFlag("InDet.ForceCoraCool", False)
29  # Use new (CoolVectorPayload) SCT Conditions
30  icf.addFlag("InDet.ForceCoolVectorPayload", False)
31  # Turn on SCT_ModuleVetoSvc, allowing it to be configured later
32  icf.addFlag("InDet.doSCTModuleVeto", False)
33  # Turn on SCT simple width calculation in clustering tool
34  icf.addFlag("InDet.doSCTSimpleWidth", True)
35  # Enable check for dead modules and FEs
36  icf.addFlag("InDet.checkDeadElementsOnTrack", True)
37  # Turn running of Event Info TRT Occupancy Filling Alg on and off (also whether it is used in TRT PID calculation)
38  icf.addFlag("InDet.doTRTGlobalOccupancy", False)
39  icf.addFlag("InDet.noTRTTiming", lambda prevFlags:
40  prevFlags.Beam.Type is BeamType.SingleBeam and
41  prevFlags.Detector.EnableTRT)
42  icf.addFlag("InDet.doTRTPhase", lambda prevFlags:
43  prevFlags.Beam.Type is BeamType.Cosmics and
44  prevFlags.Detector.EnableTRT)
45  # Disabled for data-taking up to 2024 included
46  icf.addFlag("InDet.doTRTArToTCorr", True)
47 
48  # Save cluster information to Derivation
49  icf.addFlag("InDet.DRAWZSelection", False)
50  icf.addFlag("InDet.DAODStorePixel", lambda prevFlags:
51  prevFlags.Detector.EnablePixel)
52  icf.addFlag("InDet.DAODStoreSCT", lambda prevFlags:
53  prevFlags.Detector.EnableSCT)
54  icf.addFlag("InDet.DAODStoreTRT", lambda prevFlags:
55  prevFlags.Detector.EnableTRT)
56  icf.addFlag("InDet.DAODStoreExtra", True)
57 
58  # Specific flags for pixel study
59  icf.addFlag("InDet.PixelDumpMode", 1)
60  icf.addFlag("InDet.PixelConfig.version", 'PixelConditionsAlgorithms/v1/')
61  icf.addFlag("InDet.PixelConfig.UserInputFileName", '')
62 
63  # Save SiHitCollections to RDO
64  icf.addFlag("InDet.savePixelSiHits", lambda prevFlags:
65  prevFlags.BTagging.Trackless or
66  prevFlags.BTagging.savePixelHits)
67  icf.addFlag("InDet.saveSCTSiHits", lambda prevFlags:
68  prevFlags.BTagging.Trackless or
69  prevFlags.BTagging.saveSCTHits)
70 
71  # SCT prescale flags
72  icf.addFlag("InDet.SCTxAODPrescale",
73  lambda prevFlags: 50 if prevFlags.Input.TriggerStream == 'express' else (10 if prevFlags.Input.TriggerStream == 'IDprescaledL1' else 1))
74 
75  return icf
python.InDetConfigFlags.createInDetConfigFlags
def createInDetConfigFlags()
Definition: InDetConfigFlags.py:8