Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eventually including orbit drift corrections #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lsctools/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
options = {'nominalTitle': 'Nominal Position [#mum]'}
EOSPATH = '/eos/cms/store/group'
OUTPATH = dirname(__file__)+'/../results'
OWNPATH = '/afs/cern.ch/work/j/joknolle/store'
OWNPATH = '/eos/cms/store/user/capalmer/lengthScale'

def PCC():
"""Set common parameters of PCC data sets"""
Expand Down Expand Up @@ -276,6 +276,8 @@ def PCC2016ReRecoJan2017():
'130_084911'), (5, 4, '213_002332'), (6, 1, \
'130_084929'), (7, 3, '213_002401'), (8, 1, \
'130_084943'))]

options['fulltrees'] = ['/comm_luminosity/PCC/VdM/May2016Scans/PCC_Run2016B-17Jan2017-v1_ZeroBiasALL_LengthScale/']
options['minitrees'] = [s+'_FPix_Feb27' for s in options['fulltrees']]
# options['dataset'] = ['2016_rereco_jan17', \
# '2016 ReReco Jan 2017']
Expand Down
23 changes: 23 additions & 0 deletions run2016.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
from lsctools import config, prepare, gather, fit, plot, analyze

# Load 2016 configuration
config.PCC2016ReRecoJan2017()

# Find ROOT files belonging to LS scans
prepare.findRootFiles('fulltrees')

for scan in config.options['scans']:
# Get vertex data from ROOT files
gather.vertexPositionPerBxStep(scan, all=True, alternative=True)

# Fit vertex positions at each step with Gaussian
fit.vertexPosition(scan, all=True, alternative=True, fitmethod='L')

# Create plots of vertex distribution at each step
plot.vertexPositionPerBxStep(scan, all=True, alternative=True, fit='L')

# Analyze full scan
analyze.vertexPosition(scan, all=True, alternative=True, fitted='L')

# Plot full scan results
plot.vertexPositionPerDirectionBx(scan, all=True, alternative=True, fitted='L')