Coder Social home page Coder Social logo

ram1123 / fnal-beam-test-scripts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zhangaw325/fnal-beam-test-scripts

0.0 4.0 4.0 8.33 MB

Some of the scripts that are used to analysis the FNAL beam test data

C 88.77% Shell 3.21% Python 8.02%

fnal-beam-test-scripts's Introduction

#Environment Setting for Lxplus This code is check for only root version 6.04. So, its recommended that one should run this on root 6.04.

Lxplus setting for root 6.04:

For tcsh shell:
source /afs/cern.ch/sw/lcg/external/gcc/4.8/x86_64-slc6/setup.csh
source /afs/cern.ch/sw/lcg/app/releases/ROOT/6.04.02/x86_64-slc6-gcc48-opt/root/bin/thisroot.csh

For bash shell:
source /afs/cern.ch/sw/lcg/external/gcc/4.8/x86_64-slc6/setup.sh
source /afs/cern.ch/sw/lcg/app/releases/ROOT/6.04.02/x86_64-slc6-gcc48-opt/root/bin/thisroot.sh

How to Get This Software

git clone [email protected]:ram1123/FNAL-Beam-Test-Scripts.git		(if working  on lxplus)
git clone https://github.com/ram1123/FNAL-Beam-Test-Scripts.git	(if working on your pc or lpc)
cd FNAL-Beam-Test-Scripts
git checkout Develop

How to Run:

First you need to run the TurboSoftware to get the root file from EventBuilder step (root file should be of type CRC*.root). Then there are two steps in the alignment framework. First step is to get the text file with hit information. Then, in next step takes this text file with hit info and tries to align the detector.

Step 1: Get the text file to process in step 2.

./RunAiwuTextFile.sh <Initial Run Number>  <Final Run Number>

You may need to modify the path of input root files. Also, there are two variables named EfficiencyType and TrkOnly. Need to choose the values of this variable in code. Description of these variables given in code itself.

Step 2: Alignment part

Few things to keep in mind:

  1. s

    ./RunAiwuSoftware.sh No 1 0 # Will create text file with tracker info only ./RunAiwuSoftware.sh LC1 1 0 # Will create text file with tracker & one GE11 ./RunAiwuSoftware.sh LC1 0 1 # Run the alignment code

Some time you may get error, stating following error Warning in : Fit data is empty *** Break *** segmentation violation

This is because while aligning the detector it is going outside the range of defined histogram. So, you need to see carefully and set range or initial parameter carefully.

Some Additional Codes

These codes are in dierctory named FewPlottingCodes.

  1. Plot_TrackerAlign_Lin.py: This macro plots the residual from the root file of first step of code.
  2. Plot_residual.C: This takes input the file that contains mean/residual of all trackers with iteration. And gives us plot for mean or sigma with iteration.
  3. SpaceResolution_vs_HV.C
  4. EfficiencyTxtFileSplitBOLat.sh: This splits text file w.r.t. the latency.
  5. Plot_GEMXY_Output.C: Plotting code from output of GEM align code.
  6. Plot_Trk_Linear.C: Plotting code from out of Linear shift tracker.
  7. CoarseAnalyze.py: This is to analyze the root file named CoarseAligned_*.root

fnal-beam-test-scripts's People

Contributors

anmehta avatar pkumari avatar ram1123 avatar skgill avatar zhangaw325 avatar

Watchers

 avatar  avatar  avatar  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.