- General information
- Data readiness
- Grid and Cloud
- Infrastructure
- Online Computing
- Software Infrastructure
- Batch system, resource management system
- CVS->Git
- Computing Environment
- Facility Access
- FileCatalog
- HPSS services
- Home directories and other areas backups
- Hypernews
- Installing the STAR software stack
- Provision CVMFS and mount BNL/STAR repo
- RCF Contributions
- Security
- Software and Libraries
- Storage
- Tools
- Tutorials
- Data Carousel Quick Start/Tutorial
- Guide to AFS and ACLs
- How to determine what is happening in slow or stuck processes?
- How to use FORtran from a ROOT macro
- How to use valgrind
- Howto run pythia6/8 or hijing or... without running starsim
- Introduction to STAR software and makers
- Quick guide on CVS in STAR
- Setting up your computing environment
- StEvent/Special documentation
- UML Class Diagram
- Unix command location
- Video Conferencing
- Web Access
- Machine Learning
- Offline Software
- Production
- S&C internal group meetings
- Test tree
How to use FORtran from a ROOT macro
Updated on Thu, 2009-07-09 08:54 by testadmin. Originally created by fine on 2008-06-09 14:21.
Under:
Conditions:To use the Fortran subroutines and functions 3 pre-conditions have to be met:
- Fortran code has to be compiled with the Fortran compiler
It is provided by "cons" for all source files with the upper case "*.F" extension
- To call any Fortran Subroutine / Function from C/C++ the Fortran subroutine C++ interface definition has to be provided
It has to be written "by hand"
- To execute the the Fortran Subroutines /Functions the Fortran run-time environment may be needed at the run-time.
The Fortran Run-time libraries are provided by "root4star". They are not provided by the "plain" root.exe
- (Optional) To be able to call the Fortran function from the Root C++ interpreter (from ROOT prompt) the RootCint dictionary for the C++/Fortran interface should be provided
The STAR "cons" automatically creates the RootCint dictionary for the all header files it discovery.
The examples follow:
»
- Printer-friendly version
- Login or register to post comments