Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Prerequisites

To build the org.lcsim software, you first need to should have the following installed.

...

titleSLAC Unix
Info
titleWindows CVS Clients
  • cvs), command-line program
  • Tortoise CVS, graphical CVS client with Explorer integration

SLAC Unix Tools

The tools above , with the exception of Netbeans, are all
pre-installed on SLAC Unix.

...

Just issue the command:

No Format
setenv JAVAVER 1.5

to make sure you get

...

the correct Java version.

Building org.lcsim software

The lcsim software consists of two packages, the a geometry package,
and the analysis and reconstruction package. You must obtain and
build the geometry package first, since the analysis package
depends on it.

Here are condensed instructions:, which you can execute from
the Linux or Cygwin bash shell.

No Format
setenvexport CVSROOT =:pserver:anonymous@cvs.freehep.org:/cvs/lcd
cvs login (just hit enter when prompted for password)
cvs co GeomConverter
cvs co lcsim
cd GeomConverter
maven
cd ../lcsim
maven

Keeping the

...

Release Current

Oftentimes new directories are added in a new release. In order
to make sure that cvs adds those, please use the command

No Format
cvs update -PdA

which will

P: prune empty directories
d: create directories
A: reset sticky tags

No Format
man cvs

knows more will give more information on the cvs program.

Installing Custom JARs into JAS3

Developers of org.lcsim may want to use a version in JAS3 that is more up-to-date
than the distributed plugin.

Execute the following from the lcsim checkout directory to install the lcsim target
JAR into the JAS3 extensions directory, overwriting the JAR that was automatically
downloaded.

No Format
maven jas:install

...

If you wish to build without testing, issue the following command, but do this at your own risk:

No Format
maven -Dmaven.test.skip=true

To execute a single test case (, e.g. that for org.lcsim.recon.cluster.fixedcone.FixedConeClusterer):

No Format
maven test:single -Dtestcase=org.lcsim.recon.cluster.fixedcone.FixedConeClustererTest
Tip
titleAdditional Component Tests

There are also other component tests for many of the org.lcsim classes. Until they can be ported
to the JUnit structure they need to be manually executed. Do so with the following ant target:

No Format
ant -f ctest.xml

Running Classes from the

...

Command Line

We have defined a maven Maven goal to allow that allows users to run a java class using maven Java class in the project from the command line.

...


using the freehep-run-plugin.

For example:

No Format
 maven run -Drun.class="org.lcsim.geometry.compact.converter.heprep.Main" -Dargs="test/org/lcsim/geometry/compact/sdjan03_compact.xml tst.heprep"

The documentation for the plugin is in:

http://java.freehep.org/freehep-run-plugin/index.htmlImage Removed

Building org.lcsim with NetBeans

In addition to the above you will need:

Tip
titleInstalling mevenide

Download this small autoupdate module. To install, start NetBeans and select the "Update Center Wizard" option from the "Tools" menu. Select the "Install Manually Downloaded Modules (.nbm Files)." On the next page, select "Add..." from the "Modules to Install" panel and navigate to the location of the downloaded file. On the next page, transfer that file from the "Available Updates and New Modules:" panel to the "Include in install:" panel and click on the "Finish" button.

Once these are installed you can open the project folders in NetBeans and build using maven from inside netbeansabove command run the Main class to convert the given compact description to a HepRep.

Building org.lcsim with Eclipse

Instead of NetBeans, you can also use the Eclipse IDE to build org.lcsim and write your applications.

Download Eclipse: http://eclipse.org/downloads/index.php

The Mevenide plugin can be installed as follows:

Help->Software Updates->Find and Install...

Select "Search for new features to install", click 'Finish'

Select "New Remote Site"; for Name enter "Mevenide", for Location enter http://mevenide.codehaus.org/release/eclipse/update/site.xml

Select the latest versions of both Maven and the Mevenide plugins, click 'Next'

You will have to agree to a license agreement.

The plugin will then be downloaded.

Confirm the installation with 'Install All'

When finished, you will be asked to restart the workbench.

Click 'Yes'.

Tip
titleImporting org.lcsim directly from CVS

You can now install the CVS project by selecting File->New->Project
Select "CVS project" and enter the information about server and password from above.
org.lcsim will be downloaded into the workbench.

...