ATLAS Offline Software
PhysicsAnalysis
TopPhys
xAOD
TopAnalysis
scripts
CI_EMPFlowMC21test.py
Go to the documentation of this file.
1
#! /usr/bin/env python
2
# This script is designed to be used as a quick runtime ctest in the CI framework
3
# We use python to better handle getting our validation cutfile which should be stable
4
# We will augment the NEvents line in our cutfile to limit the job
5
# This is primarily to catch any runtime changes introduced before they are merged
6
7
from
CI_test
import
CITest
8
import
sys
9
import
ROOT
10
11
cutfilename =
"CI-validation-cuts-Run3.txt"
12
cutfilepath = ROOT.PathResolver.find_file(cutfilename,
13
"DATAPATH"
,
14
ROOT.PathResolver.RecursiveSearch)
15
16
returnCode =
CITest
(
"DAOD_PHYS MC"
,
17
cutfilename,
18
cutfilepath,
19
"/cvmfs/atlas.cern.ch/repo/sw/database/GroupData/dev/AnalysisTop/ContinuousIntegration/R22-Run3/MC/p5855/"
20
"DAOD_PHYS.601229_r13829_p5855.pool.root.1"
,
21
[(
"#NEvents.*"
,
"NEvents 500"
)])
22
23
if
returnCode != 0:
24
print
(
"Error in DAOD_PHYS MC21"
)
25
sys.exit(returnCode)
26
27
# -- Return 0 as all tests were successful -- #
28
sys.exit(0)
CI_test.CITest
def CITest(testname, cutfile, cutfilepath, inputfile, sedreplace)
Definition:
CI_test.py:9
Muon::print
std::string print(const MuPatSegment &)
Definition:
MuonTrackSteering.cxx:28
Generated on Sun Jul 7 2024 21:12:18 for ATLAS Offline Software by
1.8.18