Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions bin/run_cvt_viewer.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/usr/bin/env bash

set -euo pipefail

INPUT_FILE="$1"

if [ -z "$INPUT_FILE" ] ; then
echo "Usage: ./run_bank_browser.sh <input.hipo>"
echo "Example: ./run_bank_browser.sh data.hipo "
exit 1
fi

SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
REPO_DIR="$(cd "$SCRIPT_DIR/../.." && pwd)"
PROJECT_DIR="$REPO_DIR/reconstruction/cvt"
POM_FILE="$PROJECT_DIR/pom.xml"

if [ ! -f "$POM_FILE" ]; then
echo "ERROR: No pom.xml found at $POM_FILE"
exit 2
fi

INPUT_ABS="$(cd "$(dirname "$INPUT_FILE")" && pwd)/$(basename "$INPUT_FILE")"

if [ ! -f "$INPUT_ABS" ]; then
echo "ERROR: Input file not found: $INPUT_FILE"
exit 3
fi

mvn -f "$POM_FILE" -q exec:java \
-Dexec.mainClass="org.jlab.qcddat.CVTBrowser" \
-Dexec.args="$INPUT_ABS"

39 changes: 39 additions & 0 deletions common-tools/clas-qcddat/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>org.jlab.clas</groupId>
<artifactId>clas-qcddat</artifactId>
<version>14.1.2-SNAPSHOT</version>
<packaging>jar</packaging>

<parent>
<groupId>org.jlab.clas</groupId>
<artifactId>common-tools</artifactId>
<version>14.1.2-SNAPSHOT</version>
</parent>

<dependencies>
<dependency>
<groupId>org.jlab.clas</groupId>
<artifactId>clas-io</artifactId>
<version>14.1.2-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-base</artifactId>
<classifier>linux</classifier>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-graphics</artifactId>
<classifier>linux</classifier>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>
<classifier>linux</classifier>
</dependency>
</dependencies>

</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package org.jlab.qcddat;

import javafx.application.Application;
/**
*
* @author veronique
*/
public class CVTBrowser {

public static void main(String[] args) {
if (args.length < 1) {
System.err.println("Usage: java Viewer <input.hipo>");
System.err.println("Example: java Viewer file.hipo");
System.exit(1);
}

String inputFile = args[0];

CVTViewer.configure(inputFile);
Application.launch(CVTViewer.class);
}
}
Loading
Loading