Giter VIP home page Giter VIP logo

scifitestbeamandsimulation's Introduction

SciFiTestbeamAndSimulation

To compile the code, create a build directory and run cmake:

mkdir build
cd build
cmake ..

When running on lxplus it is necessary to specify the compile. The locations are hardcoded in the top level CMakelists, which could cause trouble in the future. The versions are

CMAKE_C_COMPILER=/afs/cern.ch/sw/lcg/releases/LCG_84/gcc/4.9.3/x86_64-slc6/bin/gcc
CMAKE_CXX_COMPILER=/afs/cern.ch/sw/lcg/releases/LCG_84/gcc/4.9.3/x86_64-slc6/bin/g++

Then you can run

make <the program I want to compile>

where the possible programs are present in the main folder:

produceCorrectedFile : produces a new file that contains the pedestal and gain corrected data
clusterAnalysis : searches for clusters in a corrected data file

To run the compiled program from the build folder, run

./bin/the_program

Available options for produceCorrectedFile are:

--file2correct, -f : test beam data file containing the data run
--umax, -u",  : uplink number to stop at [1, ... , 8], default_value(4)
--umin, -l", : "uplink number to start at [1, ... , 8], default_value(3)

Available options for clusterAnalysis are:

--file, -f : corrected test beam data file(s), wild cards like *.root are also supported
--simulation, -s : add this optiion if you are running on a simulated file
--clusteralg, -c : clustering algorithm: b for Boole or m for Maxs ,default_value("b")
--tag, -t : tag that is added to the output file name, default_value("")

scifitestbeamandsimulation's People

Contributors

adamdddave avatar

Watchers

 avatar Julian Wishahi avatar  avatar

Forkers

adamdddave

scifitestbeamandsimulation's Issues

RooFit not added in CMake options

Seems like the cmake variable $ROOFIT_LIBRARIES is not being correctly assigned and is not found for Calibration compilation.

[ 55%] Building CXX object src/CMakeFiles/Calibration.dir/Calibration.cpp.o
/SciFiTestbeamAndSimulation/src/Calibration.cpp:16:10: fatal error: 'RooRealVar.h' file not found
#include "RooRealVar.h"
         ^
1 error generated.
make[2]: *** [src/CMakeFiles/Calibration.dir/Calibration.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/Calibration.dir/all] Error 2

Probably a problem with the CMake file. Looking into it.

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.