Skip to content

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

Notifications You must be signed in to change notification settings

zhangaw325/FNAL-Beam-Test-Scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FNAL-Beam-Test-Scripts

note: doubleGausFit_withHistParameter.C contains the function to do double Gausian fit. The scritps that need it already have it included.

Get Input Text File For FNAL-Beam-Test-Script

  1. use RunAiwuTextFile.sh with two input arguments IRunNumber & FRunNumber, and then you will get the input text file.

  2. You may have to modify the Path of InputRootFile

  3. In the script there are two type of important variable named "EfficiencyType" & "TrkOnly". Read description about this in the script itself.

Run FNAL-Beam-Test-Script

step 1: select events.

use SelectTrackerEvents.C, can be changed to include selecting GEM events

step 2: alignment of trackers.

use AlignTrackers_Shift.C, AlignTrackers_shift_rotate.C, AlignTrackers_optimizeRotation.C

each script has iterations, for the third script, when optimizing rotation angles, optimize one detector one time,

in other words, the iteration quantity is the angle for one tracker, the other angles are fixed

step 3: alignment GEM detector to trackers

use AlignGEM_XYoffsets.C,

after this script, will get some text files, then

draw_allX_vs_Y.C, draw_allY_vs_X.C, draw_XY_Offsets.C can be used for them

use AlignGEM_rotate.C, and draw_fixXY_vs_rotationAngle.C

then resolution can be calculated with AlignGEM_rotate.C by setting all X,Y offsets and angle, and do not doing iteration.

Few Scripts to speed up work on multiple file

  1. Script RunAiwuSoftware.sh: It takes two input arguments. First is IRunNumber and second is FRunNumber. You should modify the path of input textfile.

  2. Script in 1st step run a python code named RunAiwuSoftware.py. It runs all the steps of FNAL automatically. You can comment some of them that you won't need.

##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 Run

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •