ATLAS Offline Software
GlobalSimAlgCfg_invMassDPhiInc2.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
2 
3 from AthenaConfiguration.ComponentFactory import CompFactory
4 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
5 
6 from AthenaCommon.Logging import logging
7 logger = logging.getLogger(__name__)
8 from AthenaCommon.Constants import DEBUG
9 
11  name="GlobalSimHypoContainer",
12  minEt1Cuts = [0,0,0,0],
13  minEt2Cuts = [0,0,0,0],
14  minEta1Cuts = [0,0,0,0],
15  maxEta1Cuts = [0,0,0,0],
16  minEta2Cuts = [0,0,0,0],
17  maxEta2Cuts = [0,0,0,0],
18  minInvMassSqrCuts = [0,0,0,0],
19  maxInvMassSqrCuts = [0,0,0,0],
20  minDeltaPhiCuts = [0,0,0,0],
21  maxDeltaPhiCuts = [0,0,0,0],
22  OutputLevel=DEBUG,
23  dump=False):
24 
25  logger.setLevel(OutputLevel)
26 
27  cfg = ComponentAccumulator()
28 
29  hypoTool = CompFactory.GlobalSim.InvariantMassDeltaPhiInclusive2AlgTool(
30  'InvMassDPhiInc2AlgTool')
31  hypoTool.enableDump = dump
32 
33  hypoTool.minEt1Cuts = minEt1Cuts
34  hypoTool.minEt2Cuts = minEt2Cuts
35 
36  hypoTool.minEta1Cuts = minEta1Cuts
37  hypoTool.maxEta1Cuts = maxEta1Cuts
38 
39  hypoTool.minEta2Cuts = minEta2Cuts
40  hypoTool.maxEta2Cuts = maxEta2Cuts
41 
42  hypoTool.minInvMassSqrCuts = minInvMassSqrCuts
43  hypoTool.maxInvMassSqrCuts = maxInvMassSqrCuts
44 
45 
46  hypoTool.minDeltaPhiCuts = minDeltaPhiCuts
47  hypoTool.maxDeltaPhiCuts = maxDeltaPhiCuts
48 
49  hypoTool.OutputLevel = OutputLevel
50 
51  alg = CompFactory.GlobalSim.GlobalSimulationAlg(name + 'Alg')
52  alg.globalsim_algs = [hypoTool]
53  alg.enableDumps = dump
54 
55  cfg.addEventAlgo(alg)
56 
57  return cfg
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
GlobalSimAlgCfg_invMassDPhiInc2.GlobalSimulationAlgCfg
def GlobalSimulationAlgCfg(flags, name="GlobalSimHypoContainer", minEt1Cuts=[0, 0, 0, 0], minEt2Cuts=[0, 0, 0, 0], minEta1Cuts=[0, 0, 0, 0], maxEta1Cuts=[0, 0, 0, 0], minEta2Cuts=[0, 0, 0, 0], maxEta2Cuts=[0, 0, 0, 0], minInvMassSqrCuts=[0, 0, 0, 0], maxInvMassSqrCuts=[0, 0, 0, 0], minDeltaPhiCuts=[0, 0, 0, 0], maxDeltaPhiCuts=[0, 0, 0, 0], OutputLevel=DEBUG, dump=False)
Definition: GlobalSimAlgCfg_invMassDPhiInc2.py:10
Constants
some useful constants -------------------------------------------------—