Skip to content

Instantly share code, notes, and snippets.

@ErikHogenbirk
Created April 1, 2016 07:14
Show Gist options
  • Save ErikHogenbirk/25d4f8808ce5fb70b51fcadca99f4a2a to your computer and use it in GitHub Desktop.
Save ErikHogenbirk/25d4f8808ce5fb70b51fcadca99f4a2a to your computer and use it in GitHub Desktop.
import matplotlib
import matplotlib.pyplot as plt
%matplotlib inline
matplotlib.rc('font', size=16)
plt.rcParams['figure.figsize'] = (12.0, 10.0) # resize plots
import hax
import os
hax.init(experiment='XENON1T',
mongo_password=os.environ['MONGO_PASSWORD'], # this is set in my bashrc. Available on request :)
runs_url = 'mongodb://pax:{password}@xenon1t-daq.lngs.infn.it:27017/run', # need to set this for running on xecluster
raw_data_access_mode='local',
raw_data_local_path='/xetemp/xenon1t/', # Path to raw data for plotting
main_data_paths=['/archive_lngs/common/'] # Path to processed data
)
hax.raw_data.inspect_events(81,1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment