Skip to content

Commit ac3ecda

Browse files
author
Erin O'Sullivan
committed
Merge branch 'develop' of github.com:WCSim/WCSim into develop
2 parents cc9186a + 7a9bf86 commit ac3ecda

File tree

2 files changed

+23
-13
lines changed

2 files changed

+23
-13
lines changed

verification-test-scripts/README

Lines changed: 0 additions & 13 deletions
This file was deleted.

verification-test-scripts/README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Directory description
2+
3+
This directory contains scripts to test the output of your current version of WCSim with the version on GitHub.
4+
The purpose of these scripts is to ensure that the changes being committed will not accidentally change the output of the WCSim code.
5+
6+
# Description of scripts in this directory
7+
8+
## verification_HitsChargeTime.C:
9+
10+
This script will test a .root output file from your version of WCSim against the committed version of the code.
11+
This test plots the number of digitized hits, the average charge, and the average time.
12+
A ks test is printed to the screen. This test also prints to the screen a comparison of the first event in the files to see if the number of hit tubes, number of digitized tubes, and number of pe hit times match.
13+
14+
### Usage
15+
To use the verification_HitsChargeTime test in the default method, do the following steps:
16+
* clone a copy of the current code from GitHub into a directory called WCSim_clean. Compile the code.
17+
* Go to WCSim_clean/verification-test-scripts and run electrontest.mac by typing: ../bin/Linux-g++/WCSim electrontest.mac . This should produce an output file called wcsimtest.root in the verification-test-scripts directory of WCSim_clean.
18+
* Go to the verification-test-scripts directory of your local WCSim (with your changes you wish to commit) and run the macro electrontest.mac in WCSim by typing ../bin/Linux-g++/WCSim electrontest.mac. This should produce a file called wcsimtest.root in your verification-test-scripts directory.
19+
* Still in the verification-test-scripts of your local WCSim directory, type: root verification_HitsChargeTime.C
20+
21+
You can also use this test to compare any two files from any two directories. To use the script this way type:
22+
* root
23+
* .x verification_HitsChargeTime.C("/path/to/first_file", "/path/to/second_file")

0 commit comments

Comments
 (0)