Giter Club home page Giter Club logo

lhcfillscheme's Introduction

LHCFillScheme

Returns the bunch pattern for a given LHC fill for use in offline analyses.

Usage

Getting bunch patterns

This is done through the main script, lhcFillScheme.py, which downloads a LHC fill scheme file and processes it, returning a txt file with the bunch pattern.

usage: lhcFillScheme.py [-h] [-i INDIR] [-o OUTDIR] fills

Downloads and analyzes a fill scheme

positional arguments:
  fills                 Fill scheme number(s). Accepts comma-separated list, e.g. 5501,5502,etc

optional arguments:
  -h, --help            show this help message and exit
  -i INDIR, --indir INDIR
                        Directory to save the fill schemes to (default: fillschemes/)
  -o OUTDIR, --outdir OUTDIR
                        Directory to save the analyzed output to (default: bunchpatterns/)

Using bunch patterns

Included are definitions for a Fill class that can be used to read in the bunchpattern files for both C++ and python. Each instance of Fill contains a set of vectors that holds the bunch crossing numbers for each type of bunch crossing:

All BXs      = all colliding bunch crossings
Isolated BXs = all isolated bunch crossings
First BXs    = the first bunch crossing of a train
Last BXs     = the last bunch crossing of a train
Middle BXs   = the bunch crossings in a train that are neither the first nor the last bunch crossing
Empty BXs    = all non-colliding bunch crossings

C++

The C++ Fill class files are src/Fill.cpp and inc/Fill.hpp.

#include "src/Fill.cpp"

// Instantiate
Fill fill5717("bunchpatterns/bunchpattern5717.txt");

// Member variables
fill5717.allBXs
fill5717.isoBXs
fill5717.firstBXs
fill5717.lastBXs
fill5717.middleBXs
fill5717.emptyBXs

Python

The python Fill class file is python/Fill.py

from python.Fill import Fill

# Instantiate
fill5717 = Fill("bunchpatterns/bunchpattern5717.txt")

# Member variables
fill5717.allBXs
fill5717.isoBXs
fill5717.firstBXs
fill5717.lastBXs
fill5717.middleBXs
fill5717.emptyBXs

lhcfillscheme's People

Contributors

rohanbhandari avatar

Watchers

James Cloos 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.