Skip to content
raffaelladevita edited this page Nov 7, 2021 · 17 revisions

How to build and run the application

Mon12 can be built and run from an IDE or from command line.

Building and running the project in Netbeans

  • From the ''File'' menu, select ''Open project...'' and select the clas12mon directory.
  • Right-click on the project and select ''Properties'' from the drop-down menu. Go to the ''Run'' option and add the following string in the VM field -DCLAS12DIR=path-to-your-coatjava-installation. See the the following picture as an example.
  • Click on the ''Build'' or ''Clean&Build'' button to compile the project.
  • Click on the ''Run'' button to start the GUI.

Building and running the project from command line

  • cd to the clas12mon directory and execute the following commands to build the project:

    mvn clean

    mvn install

  • Set the environment variable ''CLAS12DIR'' to point to your coatjava installation.

  • Run the executable script

    ./bin/mon12

Command line options

  • Run the following command to visualize the available options

    ./bin/mon12 -h

  • The output will look like as follows:

+-------------------------------------------------------------------------
| Starting CLAS12 monitoring app
+-------------------------------------------------------------------------
INSTALLATION DIRECTORY =  ./bin/..



*******************************************
*      PROGRAM USAGE : by OptionParser    *
*******************************************



     Usage : mon12 

   Options :
 -geometry : Select window size, e.g. 1600x1200 (default = 1600x1000)
  -logbook : Select electronic logbook (default = HBLOG)
     -tabs : Select active tabs, e.g. BST:FTOF (default = )
  • Use the ''-geometry' option to select the size of the GUI window.

  • Use the option ''-tabs'' to select the subsystem tabs to be displayed. For example, the command

    `./bin/mon12 -tabs "CND:CTOF"

will activate only the CND and CTOF tabs and the corresponding summary tab, i.e. the CD tab. All other tabs will not be displayed. In this configuration, when uploading the histograms to the logbook or saving the plots to file, only the displayed tabs will be saved. If no ''-tabs'' option is specified, all the available tabs will be displayed.

Clone this wiki locally