Giter Site home page Giter Site logo

fasermc's Introduction

faserMC

Prerequisites

Access to CERN cvmfs is required; this is automatically available with CERNVM installations. You should choose an LCG release, e.g. LCG_94

Installation

Create a directory, and change into it; this directory will be referred to as $FASER_ROOT in the following.

  1. cd $FASER_ROOT
  2. git clone https://github.com/dwcasper/faserMC
  3. mkdir build
  4. cd build

You will also need to use binaries appropriate for your system configuration. You can leave the sysconfig (2nd) argument to this script blank which will use the default value of "x86_64-slc6-gcc7-opt". Note that gcc62 does not appear to work with visualization; gcc7 is recommended.

  1. source ../faserMC/setupLCG.sh LCG_94 x86_64-slc6-gcc7-opt

  2. source ../faserMC/buildFaser.sh

The program will be installed in $FASER_ROOT/run

  1. cd ../run
  2. bin/faser

will launch an interactive session. Use /run/beamOn 1 in the viewer window to generate a single dark photon event at a time.

  1. bin/faser init_novis.mac myDataFile.root

will launch a batch session and generate 20,000 dark photon events.

You can adjust the number of events generated and the number of CPUs used by editing the .mac file. Beware that the installed macro files are overwritten each time you rebuild and install. If you make changes you want to keep, you should change the file name.

The mass of the Aprime is set in the macro file faserPhysicsList.mac. (For this the name cannot be changed, as it's hard-coded to be read at job-startup time.)

You will need to configure LCG with the script each time you log in.

You may also want to add the line:

export LD_LIBRARY_PATH=$FASER_ROOT/run/lib64:$LD_LIBRARY_PATH

to your login script (this assumes that you have also defined FASER_ROOT to point to your installation area).

To read the output file, you will want to load the dictionary library

$FASER_ROOT/run/lib64/libFaserRootClassesDict.so

inside ROOT.

fasermc's People

Contributors

swaneyjr avatar dwcasper avatar asoffa avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.