Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Functions
IDPVMPostInclude Namespace Reference

Functions

def setIDPVMFlags (flags, str idpvm_output_file='idpvm.root')
 
def addIPVM (flags, cfg)
 
def removePRDFromAOD (flags, cfg)
 

Function Documentation

◆ addIPVM()

def IDPVMPostInclude.addIPVM (   flags,
  cfg 
)

Definition at line 32 of file IDPVMPostInclude.py.

32 def addIPVM(flags, cfg) :
33 
34  if flags.PhysVal.IDPVM.doPRW:
35  from AthenaConfiguration.ComponentFactory import CompFactory
36  cfg.addService(CompFactory.CP.SystematicsSvc("SystematicsSvc"))
37  from AsgAnalysisAlgorithms.PileupReweightingAlgConfig import PileupReweightingAlgCfg
38  cfg.merge(PileupReweightingAlgCfg(flags))
39 
40  from InDetPhysValMonitoring.InDetPhysValDecorationConfig import AddDecoratorCfg
41  cfg.merge(AddDecoratorCfg(flags))
42 
43  from InDetPhysValMonitoring.InDetPhysValMonitoringConfig import InDetPhysValMonitoringCfg
44  cfg.merge(InDetPhysValMonitoringCfg(flags))
45 

◆ removePRDFromAOD()

def IDPVMPostInclude.removePRDFromAOD (   flags,
  cfg 
)
The ExtendedSi_PRDInfo is needed by IDPVM for the technical efficiency, but increases the
AOD size  significantly, to avoid that remove it from the output item list.

Definition at line 46 of file IDPVMPostInclude.py.

46 def removePRDFromAOD(flags, cfg) :
47  '''
48  The ExtendedSi_PRDInfo is needed by IDPVM for the technical efficiency, but increases the
49  AOD size significantly, to avoid that remove it from the output item list.
50  '''
51  import re
52  from OutputStreamAthenaPool.OutputStreamConfig import outputStreamName
53  StreamAOD = cfg.getEventAlgo(outputStreamName("AOD"))
54 
55  new_item_list=[]
56  pat=re.compile('.*MeasurementsAux\\..*')
57  for elm in StreamAOD.ItemList :
58  m = pat.match(elm)
59  if m is None :
60  new_item_list.append(elm)
61  else :
62  print('DEBUG remove %s' % elm)
63  StreamAOD.ItemList = new_item_list
64  print (StreamAOD)
65  pass

◆ setIDPVMFlags()

def IDPVMPostInclude.setIDPVMFlags (   flags,
str  idpvm_output_file = 'idpvm.root' 
)

Definition at line 11 of file IDPVMPostInclude.py.

11 def setIDPVMFlags(flags, idpvm_output_file:str='idpvm.root') :
12  flags.PhysVal.OutputFileName = idpvm_output_file
13 
14  # Set default truthMinPt depending on Run config
15 
16  flags.PhysVal.IDPVM.doExpertOutput = True
17  flags.PhysVal.IDPVM.doPhysValOutput = False
18  flags.PhysVal.IDPVM.doValidateTightPrimaryTracks = True
19  flags.PhysVal.IDPVM.doHitLevelPlots = True
20  flags.PhysVal.IDPVM.runDecoration = False
21  flags.PhysVal.IDPVM.doTechnicalEfficiency = True
22 
23  # force the vertex for hgg case
24  if flags.PhysVal.IDPVM.hardScatterStrategy == 3:
25  flags.PhysVal.IDPVM.PrimaryVertexContainer = 'HggPrimaryVertices'
26 
27  flags.PhysVal.doExample = False
28 
29  if flags.PhysVal.IDPVM.doTechnicalEfficiency :
30  flags.Tracking.writeExtendedSi_PRDInfo=True
31 
AthenaPoolExample_WriteCond.outputStreamName
string outputStreamName
Definition: AthenaPoolExample_WriteCond.py:21
InDetPhysValDecorationConfig.AddDecoratorCfg
def AddDecoratorCfg(flags, **kwargs)
Definition: InDetPhysValDecorationConfig.py:159
InDetPhysValMonitoringConfig.InDetPhysValMonitoringCfg
def InDetPhysValMonitoringCfg(flags)
Definition: InDetPhysValMonitoringConfig.py:404
python.PileupReweightingAlgConfig.PileupReweightingAlgCfg
def PileupReweightingAlgCfg(flags, name="PileupReweightingAlg", **kwargs)
Definition: PileupReweightingAlgConfig.py:39
print
void print(char *figname, TCanvas *c1)
Definition: TRTCalib_StrawStatusPlots.cxx:25
IDPVMPostInclude.addIPVM
def addIPVM(flags, cfg)
Definition: IDPVMPostInclude.py:32
IDPVMPostInclude.setIDPVMFlags
def setIDPVMFlags(flags, str idpvm_output_file='idpvm.root')
Definition: IDPVMPostInclude.py:11
IDPVMPostInclude.removePRDFromAOD
def removePRDFromAOD(flags, cfg)
Definition: IDPVMPostInclude.py:46