BRAT runs under ROOT. If ROOT is not running, it must be installed. See instructions and download procedures at http://root.cern.ch
ROOTSYS must be set to c:\\users\\root. The double slash is necessary for working with BRAT. In principle a single unix slash should work also, but that has not been tested.
The Cygnus Development Kit (cdk) needs to be installed. If it is already installed, you may skip the next several steps.
These steps assume you are downloading the beta-19 version. The steps should be similar if you are downloading a later version.
Download the cdk using the following steps
Activate your favorite browser
Go to www.cygnus.com/misc/gnu-win32
pick the ftp mirror site nearest your institution
download cdkb19.exe to your machine
Make a MS-DOS window
Change directory to the one where cdkb19.exe was downloaded to
execute cdkb19.exe
During the procedure it will ask where to put the software. I have found that the only way the software will work properly is if you put it into \Cygnus\B19
Once the procedure is completed, the following needs to be added to your path
C:\Cygnus\b19\H-i386-cygwin32\bin
C:\Cygnus\b19
Now to activate cygnus software, just type in Cygnus at the DOS prompt. Then you will have many UNIX commands. Also, once you get out of cygnus (using exit), many of the commands will remain activated. To have these commands activated, it is only necessary to get into Cygnus once per DOS session.
Continuing with BRAT with the assumption that Cygnus is installed.
Obtain a BRAT tar file. This should come from the BRAHMS CVS repository. To do that, execute the following steps
logon to the RCF
get an AFS tolken (klog; then type in your afs password)
cd to the place where you want to temporarily store brat, eg brat_cvs
cvs checkout brat
cvs release brat
tar -cvf brat.tar brat
transfer brat.tar in binary format to your NT machine.
tar -xvf brat.tar
Set BRATSYS and BRATHOME variables to the directory root where BRAT will reside. The difference between BRATSYS and BRATHOME is that BRATSYS is for system wide BRAT and BRATHOME is detector specific. This enables to develop parts of the system independently (BRATHOME) with the rest of the system being in some type of semi-permanent repository (BRATSYS). The following example assumes you are working with the whole system and that BRAT resides in D:\users\brat\brat.
BRATSYS = //D/users/brat/brat
BRATHOME = //D/users/brat/brat
Be sure MSVCC is installed.
Be sure C:\MSDEV\bin is included in your path. The installation procedure does not do that for you.
Set the include and lib variables to have the MSVCC stuff plus pointers to ROOT
lib=c:\msdev\lib;c:\msdev\mfc\lib;c:\users\brat\brat\lib\WinNT. Using BRATSYS or BRATHOME here will not work because BRATSYS and BRATHOME are Unix style and NT (DOS) style is needed here. It should be noted that if BRATSYS and BRATHOME are not the same, both pointers must be put into the lib variable.
One must be sure that BRAT is being compiled using the same compiler that ROOT was compiled with. Strange errors occur if that is not the case. If your compiler is not the same as the one ROOT was compiled with and it is not feasible to get the same compiler, it is necessary to recompile ROOT. That requires the following steps.
Download root.cmz for the version of ROOT you wish to compile.
Download CMZ from Cernlib
Get the proper CMZLOGON.kumac file to setup for ROOT
Get into CMZ
type Install
If BRAT does not reside on drive D on your machine, you must edit two lines near the top of mkconfig.WinNT to indicate which drive it resides on. This will be made more automatic as soon as possible.