ATLAS Offline Software
FlavourTaggingConfiguration_PhysicsTriggerVariablePlots.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
2 
4 
5  from AthenaCommon.Constants import INFO
6  from FlavourTaggingTests.histoConfigurationWrapper import getHistoDefs
7 
8  # Chains we want to run over. To find out all available chains, run code ones and see printout in finalize step.
9  bJetChains = ["HLT_j20_0eta290_020jvt_pf_ftf_boffperf_L1J15"]
10 
11 
12  variables1D,variables2D = getHistoDefs( chains=bJetChains )
13 
14  print( '1D:::',len(variables1D) )
15  for el in variables1D:
16  print( el )
17  print( '2D:::',len(variables2D) )
18  for el in variables2D:
19  print( el )
20 
21  from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
22  output = ComponentAccumulator()
23 
24  from AthenaMonitoring.TriggerInterface import TrigDecisionToolCfg
25  output.merge(TrigDecisionToolCfg(flags))
26 
27  options = {}
28  options['name'] = 'PhysicsTriggerVariablePlotsAlg'
29  options['OutputLevel'] = INFO
30  options['TrigVertexCollectionKey'] = 'HLT_IDVertex_FS'
31  options['TrigTrackParticleCollectionKey'] = 'HLT_IDTrack_Bjet_IDTrig'
32  options['OfflineJetCollectionKey'] = 'AntiKt4EMPFlowJets'
33  options['TrigDecisionTool'] = output.getPublicTool("TrigDecisionTool")
34  options['bJetChains'] = bJetChains
35  options['THistSvc'] = "THistSvc"
36  options[ 'Histograms1D' ] = variables1D
37  options[ 'Histograms2D' ] = variables2D
38 
39  from AthenaConfiguration.ComponentFactory import CompFactory
40  FTAGValidation__myAlg = CompFactory.FTAGValidation.PhysicsTriggerVariablePlots( **options )
41  output.addEventAlgo( FTAGValidation__myAlg )
42 
43  return output
44 
45 
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
FlavourTaggingConfiguration_PhysicsTriggerVariablePlots.getPhysicsTriggerVariablePlotsCfg
def getPhysicsTriggerVariablePlotsCfg(flags)
Definition: FlavourTaggingConfiguration_PhysicsTriggerVariablePlots.py:3
Constants
some useful constants -------------------------------------------------—
python.TriggerInterface.TrigDecisionToolCfg
def TrigDecisionToolCfg(flags)
Definition: TriggerInterface.py:14
histoConfigurationWrapper.getHistoDefs
def getHistoDefs(category='ART', chains=[""])
Definition: histoConfigurationWrapper.py:114
Muon::print
std::string print(const MuPatSegment &)
Definition: MuonTrackSteering.cxx:28