Giter VIP home page Giter VIP logo

npslib's Introduction

NPSlib

This is the reconstruction code for the Hall C Neutral Particle Spectrometer (NPS), implemented as an add-on library for the Hall C analyzer hcana.

Building and loading the library

Building the library currently requires a CMake build of hcana (version >= 0.97) and installation of hcana under a to-level directory.

  • Set up hcana as usual. It should be sufficient to have hcana in your PATH.
  • Download or clone this repository and change into its top-level directory.
  • Follow the usual CMake workflow:
% cmake -B BUILD -S . -DCMAKE_INSTALL_PREFIX=<install location>
% cmake --build BUILD -j4
  • Troubleshooting: If hcana is not found, try setting HCANA (or CMAKE_PREFIX_PATH) to the hcana installation location, i.e. the top-level directory containing bin, lib(64), and include. Note: Building against a hcana CMake build directory, or against hcana that was built with scons or with the plain Makefiles is not supported.
  • Load the library from hcana and check availability of its classes. This example assumes that you are in the top-level directory of NPSlib after building with CMake as indicated above:
% hcana -l
hcana [0] gSystem->Load("BUILD/src/libNPS")
(int) 0
hcana [1] .class THcNPSApparatus
==========================================
class THcNPSApparatus
SIZE: 240 FILE: THcNPSApparatus.h LINE: 13
Base classes: ----------------------------
0x0        public THaApparatus
   0x0        public THaAnalysisObject
      0x0        public TNamed
         0x0        public TObject
...
  • Install the library (optional but recommended):
% cmake --install BUILD

This will put the library in <install location>/lib(64). For convenient use from within hcana, add this location to (DY)LD_LIBRARY_PATH.

Class description

The library currently contains the following classes: (Details TODO)

  • THcNPSApparatus
  • THcNPSArray
  • THcNPSCalorimeter
  • THcNPSShowerHit
  • THcNPSAnalyzer
  • THcNPSCluster
  • THcNPSSecondaryKine
  • THcNPSCoinTime
  • Decoder::VTPModule: Driver for VTP front-end electronics.
  • Decoder::VLDModule: Driver for VLD front-end electronics.

npslib's People

Contributors

sanghwapark avatar hansenjo avatar dhamilton-glasgow avatar mmathiso avatar markkjones avatar panta-123 avatar sawjlab avatar xingyueguji 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.