Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cbmroot
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Apar Agarwal
cbmroot
Commits
6289c135
Commit
6289c135
authored
3 years ago
by
Pierre-Alain Loizeau
Committed by
Florian Uhlig
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add CheckTiming of 2021 data to test set
parent
53c6f338
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
macro/beamtime/mcbm2021/check_timing_any.C
+1
-1
1 addition, 1 deletion
macro/beamtime/mcbm2021/check_timing_any.C
macro/run/CMakeLists.txt
+14
-3
14 additions, 3 deletions
macro/run/CMakeLists.txt
with
15 additions
and
4 deletions
macro/beamtime/mcbm2021/check_timing_any.C
+
1
−
1
View file @
6289c135
...
...
@@ -110,7 +110,7 @@ void check_timing_any(TString fileName, UInt_t uRunId = 0, Int_t nEvents = 0, TS
Double_t
rtime
=
timer
.
RealTime
();
Double_t
ctime
=
timer
.
CpuTime
();
cout
<<
endl
<<
endl
;
cout
<<
"Macro finished succesfully."
<<
endl
;
cout
<<
"Macro finished succes
s
fully."
<<
endl
;
cout
<<
"Real time "
<<
rtime
<<
" s, CPU time "
<<
ctime
<<
" s"
<<
endl
;
cout
<<
endl
;
// ------------------------------------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
macro/run/CMakeLists.txt
+
14
−
3
View file @
6289c135
...
...
@@ -244,6 +244,7 @@ If(DEFINED ENV{RAW_DATA_PATH} )
## Generate scripts
GENERATE_ROOT_TEST_SCRIPT
(
${
CBMROOT_SOURCE_DIR
}
/macro/run/run_unpack_tsa.C
)
# Unpackers
GENERATE_ROOT_TEST_SCRIPT
(
${
CBMROOT_SOURCE_DIR
}
/macro/beamtime/mcbm2021/check_timing_any.C
)
# Check Timing
## Run only if raw data files present
ForEach
(
RUN 1588
)
Message
(
STATUS
"Checking if raw data file exists:
${
RAW_DATA_PATH
}
/
${
RUN
}
_first20Ts.tsa"
)
...
...
@@ -251,16 +252,26 @@ If(DEFINED ENV{RAW_DATA_PATH} )
Message
(
STATUS
"Raw data file found, tests will be performed for mCBM run
${
RUN
}
"
)
## Define tests + dependencies
### Raw data analysis tests
### Raw data analysis tests
: unpacking
Set
(
testname mcbm_unpack_2021_
${
RUN
}
)
Add_Test
(
${
testname
}
${
CBMROOT_BINARY_DIR
}
/macro/run/run_unpack_tsa.sh \"
${
RAW_DATA_PATH
}
/
${
RUN
}
_first20Ts.tsa\"
${
RUN
}
\"mcbm_beam_2021_03\" -1 \"data/\"
)
Set_Tests_Properties
(
${
testname
}
PROPERTIES TIMEOUT
"600"
)
Set_Tests_Properties
(
${
testname
}
PROPERTIES PASS_REGULAR_EXPRESSION
"Macro finished successfully"
)
set_tests_properties
(
${
testname
}
PROPERTIES DEPENDS run_cleanup
)
set_tests_properties
(
${
testname
}
PROPERTIES FIXTURES_REQUIRED
run_
cleanup
)
set_tests_properties
(
${
testname
}
PROPERTIES FIXTURES_REQUIRED cleanup
)
Set
(
fixture_unpacked_
${
RUN
}
fixture_done_
${
testname
}
)
set_tests_properties
(
${
testname
}
PROPERTIES FIXTURES_SETUP
${
fixture_unpacked_
${
RUN
}}
)
EndIf
()
# If(EXISTS ${RAW_DATA_PATH}/${RUN}_first20Ts.tsa))
### Raw data analysis tests: time offsets check
Set
(
testname mcbm_chktime_2021_
${
RUN
}
)
Add_Test
(
${
testname
}
${
CBMROOT_BINARY_DIR
}
/macro/beamtime/mcbm2021/check_timing_any.sh \"
${
CBMROOT_BINARY_DIR
}
/macro/run/data/
${
RUN
}
_first20Ts.digi.root\"
${
RUN
}
)
Set_Tests_Properties
(
${
testname
}
PROPERTIES TIMEOUT
"600"
)
Set_Tests_Properties
(
${
testname
}
PROPERTIES PASS_REGULAR_EXPRESSION
"Macro finished successfully"
)
set_tests_properties
(
${
testname
}
PROPERTIES DEPENDS mcbm_unpack_2021_
${
RUN
}
)
set_tests_properties
(
${
testname
}
PROPERTIES FIXTURES_REQUIRED
${
fixture_unpacked_
${
RUN
}}
)
Set
(
fixture_chktime_
${
RUN
}
fixture_done_
${
testname
}
)
set_tests_properties
(
${
testname
}
PROPERTIES FIXTURES_SETUP
${
fixture_chktime_
${
RUN
}}
)
EndIf
()
# If(EXISTS ${RAW_DATA_PATH}/${RUN}_first20Ts.tsa))
EndForEach
()
# ForEach(RUN 1588 )
EndIf
()
# If(DEFINED ENV{RAW_DATA_PATH} )
#####################
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment