ATLAS Offline Software
FlavourTaggingConfiguration_PhysicsVariablePlots.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  variables1D,variables2D = getHistoDefs()
9 
10  print( '1D:::',len(variables1D) )
11  for el in variables1D:
12  print( el )
13  print( '2D:::',len(variables2D) )
14  for el in variables2D:
15  print( el )
16 
17 
18 
19  from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
20  output = ComponentAccumulator()
21 
22  options = {}
23  options['name'] = 'PhysicsVariablePlotsAlg'
24  options['OutputLevel'] = INFO
25  options['JetCollectionKey'] = 'AntiKt4EMTopoJets'
26  options['VertexCollectionKey'] = 'PrimaryVertices'
27  options['TrackParticleCollectionKey'] = 'InDetTrackParticles'
28  options['THistSvc'] = "THistSvc"
29  options[ 'Histograms1D' ] = variables1D
30  options[ 'Histograms2D' ] = variables2D
31 
32  from AthenaConfiguration.ComponentFactory import CompFactory
33  FTAGValidation__myAlg = CompFactory.FTAGValidation.PhysicsVariablePlots( **options )
34  output.addEventAlgo( FTAGValidation__myAlg )
35 
36  return output
37 
38 
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
Constants
some useful constants -------------------------------------------------—
histoConfigurationWrapper.getHistoDefs
def getHistoDefs(category='ART', chains=[""])
Definition: histoConfigurationWrapper.py:114
Muon::print
std::string print(const MuPatSegment &)
Definition: MuonTrackSteering.cxx:28
FlavourTaggingConfiguration_PhysicsVariablePlots.getPhysicsVariablePlotsCfg
def getPhysicsVariablePlotsCfg()
Definition: FlavourTaggingConfiguration_PhysicsVariablePlots.py:3