-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TriggerDataDecoder and MRDTracks minor bug fix (#292)
* Update FindMrdTracks.cpp Don't hault the toolchain if there are no MRD tracks * Update TriggerDataDecoder.cpp Triggers are stored to the buffer - clear it to speed up the tool. Also adding verbosity conditions on std out * Update LoadRawDataConfig Wrong config variables - now it should work out of the box as intended * Update CreateMyList.sh Rather than passing the path of the RAWData file to the bash script, add it hard coded. Not great practice but this script is used for a very specific purpose to generate a list file containing part files from the RAWData, and the data location has not changed in years (and likely won't change for now). * Update FindMrdTracks.cpp revert changes
- Loading branch information
Showing
3 changed files
with
20 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
verbosity 0 | ||
BuildType TankAndCTC | ||
#BuildType CTC | ||
Mode FileList | ||
InputFile ./configfiles/DataDecoder/my_files.txt | ||
InputFile ./configfiles/EventBuilderRaw/my_files.txt | ||
DummyRunInfo 1 | ||
StoreTrigOverlap 0 | ||
ReadTrigOverlap 1 | ||
StoreRawData 0 | ||
ReadTrigOverlap 0 | ||
StoreRawData 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
if [ "$#" -ne 2 ]; then | ||
echo "Usage: ./CreateMyList.sh DIR RUN" | ||
echo "Specified input variable must contain the directory where the files are stored, second variable run number" | ||
if [ "$#" -ne 1 ]; then | ||
echo "Usage: ./CreateMyList.sh RUN" | ||
echo "Specified input variable must contain the run number" | ||
exit 1 | ||
fi | ||
|
||
FILEDIR=$1 | ||
RUN=$2 | ||
RUN=$1 | ||
DIR=/pnfs/annie/persistent/raw/raw/ | ||
|
||
NUMFILES=$(ls -1q ${FILEDIR}/RAWDataR${RUN}* | wc -l) | ||
NUMFILES=$(ls -1q ${DIR}${RUN}/RAWDataR${RUN}* | wc -l) | ||
|
||
echo "NUMBER OF FILES IN ${FILEDIR}: ${NUMFILES}" | ||
echo "NUMBER OF FILES IN ${DIR}${RUN}: ${NUMFILES}" | ||
|
||
rm my_files.txt | ||
|
||
for p in $(seq 0 $(($NUMFILES -1 ))) | ||
do | ||
echo "${FILEDIR}/RAWDataR${RUN}S0p${p}" >> my_files.txt | ||
echo "${DIR}${RUN}/RAWDataR${RUN}S0p${p}" >> my_files.txt | ||
done |