| | 1 | [[TOC]] |
| | 2 | |
| | 3 | A !HealPix implementation for ROOT is available at https://github.com/akira-okumura/RootHealPix. You can compile that into your Mars libarary. |
| | 4 | |
| | 5 | After checking out Mars from the repository (see InstallingMars), simple extract the attached zip-file into your Mars source directory or get !RootHealPix from git: |
| | 6 | |
| | 7 | {{{ |
| | 8 | [0] cd Mars |
| | 9 | [1] git clone https://github.com/akira-okumura/RootHealPix.git |
| | 10 | }}} |
| | 11 | |
| | 12 | If !RootHealPix is located in your Mars source directory, cmake should find it automatically and compile the healpix classes into the Mars library, otherwise call cmake with the corresponding path: |
| | 13 | |
| | 14 | {{{ |
| | 15 | [2] cmake -DHEALPIX_PREFIX=<path-to-RootHealPix> |
| | 16 | }}} |
| | 17 | |
| | 18 | To test the installation, start root in your Mars build directory and try something like: |
| | 19 | |
| | 20 | {{{cpp |
| | 21 | THealPixD hp("name", "", 2); |
| | 22 | for (int i=0; i<10000; i++) |
| | 23 | hp.Fill(gRandom->Uniform()*90, gRandom->Uniform()*180); |
| | 24 | hp.Draw("COLZ"); |
| | 25 | }}} |