Updates and Results Talks and Posters Advice Ideas Important Figures Write-Ups Outreach How-To Funding Opportunities GENETIS
  Place to document instructions for how to do things, Page 2 of 3  ELOG logo
Entry  Thu Sep 14 22:30:06 2023, Jason Yao, How to profile a C++ program, Software hello_world.cppmake_hello_world
This guide is modified from section (d) of the worksheet inside Module 10 of Phys 6810 Computational Physics (Spring 2023).

NOTE: gprof does not work on macOS. Please use a linux machine (such as OSC)

To use gprof, compile and link the relevant codes with the -pg option:
Entry  Wed Jun 12 12:10:05 2024, Jacob Weiler, How to install AraSim on OSC, Software 
# Installing AraSim on OSC

Readding this because I realized it was deleted when I went looking for it 
Entry  Thu Jul 25 16:50:43 2019, Dustin Nguyen, Advice (not mine) on writing HEP stuff , Other thesis-writing-gotchas.pdf
PDF of advice by Andy Buckley (U Glasgow) on writing a HEP thesis (and presumably HEP papers too) that was forwarded by John Beacom to the
CCAPP mailing list a few months back. 
Entry  Mon Nov 20 08:31:48 2017, Brian Clark and Oindree Banerjee, Fit a Function in ROOT, Analysis fitSnr.Chstripe1snr.rootstripe1snrfit.png
Sometimes you need to fit a function to a histogram in ROOT. Attached is code for how to do that in the simple case of a power law fit.

To run the example, you should type "root fitSnr.C" in the command line. The code will access the source histogram (hstrip1nsr.root,
which is actually ANITA-2 satellite data). The result is stripe1snrfit.png.
Entry  Wed Jun 6 08:54:44 2018, Brian Clark and Oindree Banerjee, How to Access Jacob's ROOT6 on Oakley,  env.sh
Source the attached env.sh file. Good to go!
Entry  Fri Jul 28 17:57:06 2017, Brian Clark and Ian Best , ,  
 
Entry  Wed Mar 22 18:01:23 2017, Brian Clark, Advice for Using the Ray Trace Correlator, Analysis 
If you are trying to use the Ray Trace Correlator with AraRoot, you will probably encounter some issues as you go. Here is some advice that Carl Pfendner
found, and Brian Clark compiled.

Please note that it is extremely important that your AntennaInfo.sqlite table in araROOT contain the ICRR versions of both Testbed
Entry  Thu Oct 26 08:44:58 2017, Brian Clark, Find Other Users on OSC, Other 
Okay, so our group has two "project" spaces on OSC (the Ohio Supercomputer). The first is for Amy's group, and is a project workspace called
"PAS0654". The second is the CCAPP Condo (literally, CCAPP has some pre-specified rental time, and hence "condo") on OSC, and this
is project PCON0003.
Entry  Tue Dec 12 17:38:36 2017, Brian Clark, Data Analysis in R from day w/ Brian Connolly, Analysis pca_and_lda.Rdata.zip
On Nov 28 2017, Brian Connolly came and visited and taught us how to do basic data analysis in R.

He in particular showed us how to do a Linear Discriminant Analysis (LDA) and Principal Component Analysis (PCA).

Attached are three of the data files Carl Pfendner prepared for us to analyze (ARA data, including simulation, force triggers, and RF triggers).
Entry  Mon Mar 19 12:27:59 2018, Brian Clark, How To Do an ARA Monitoring Report, Other 
So, ARA has five stations down in the ice that are taking data. Weekly, a member of the collaboration checks on the detectors to make sure that they
are healthy.

This means things like making sure they are triggering at approximately the right rates, are taking cal pulsers, that the box isn't too hot,
Entry  Tue Mar 20 09:24:37 2018, Brian Clark, Get Started with Making Plots for IceMC, Software 
First, anyone not familiar with the command line should familiarize yourself with
it. It is the way we interact with computers through an interface called the terminal: https://www.codecademy.com/learn/learn-the-command-line

 

Entry  Fri Mar 30 12:06:11 2018, Brian Clark, Get icemc running on Kingbee and Unity, Software 
So, icemc has some needs (like Mathmore) and preferably root 6 that aren't installed on kingbeen and unity.

Here's what I did to get icecmc running on kingbee.

Throughout, $HOME=/home/clark.2668
Entry  Sun Apr 29 21:44:15 2018, Brian Clark, Access Deep ARA Station Data, Analysis plot_deep_station_event.cxx
Quick C++ program for pulling waveforms out of deep ARA station data. If you are using AraRoot, you would put this inside your "analysis" directory
and add it to your CMakeLists.txt.
Entry  Sun Aug 26 19:23:57 2018, Brian Clark, Get a quick start with AraSim on OSC Oakley, Software forRishabh.tar.gz
These are instructions I wrote for Rishabh Khandelwal to facilitate a "fast" start on Oakley at OSC. It was to help him run AraSim in batch
jobs on Oakley.

It basically has you use software dependencies that I pre-installed on my OSC account at /users/PAS0654/osu0673/PhasedArraySimulation.
Entry  Mon Oct 1 19:06:59 2018, Brian Clark, Code to Compute Effective Volumes in AraSim, Analysis veff.ccveff.mk
Here is some C++ code and an associated makefile to find effective volumes from AraSim output files.

It computes error bars on the effective volumes using the relevant AraSim function.

Compile like "make -f veff.mk"
Entry  Fri Nov 9 00:44:09 2018, Brian Clark, Transfer files from IceCube Data Warehouse to OSC,  
Brian had to move ~7 TB of data from the IceCube data warehouse to OSC.

To do this, he used the gridftp software. The advantage is that griftp is optimized for large file transfers, and will manage data transfer better
than something like scp or rsync.
Entry  Tue Nov 27 09:43:37 2018, Brian Clark, Plot Two TH2Ds with Different Color Palettes, Analysis demo.ccMakefiletest.png
Say you want to plot two TH2Ds with on the same pad but different color paletettes?

This is possible, but requires a touch of fancy ROOT-ing. Actually, it's not that much, it just takes a lot of time to figure it out. So
here it is.
Entry  Mon Dec 17 21:16:31 2018, Brian Clark, Run over many data files in parallel,  demo.cxxrun.shrun_list.txtsubmit_jobs.sh
To analyze data, we sometimes need to run over many thousands of runs at once. To do this in parallel, we can submit a job for every run we want to do.
This will proceed in several steps:


We need to prepare an analysis program.




This is demo.cxx.
The program will take an input data
Entry  Mon Feb 11 21:58:26 2019, Brian Clark, Get a quick start with icemc on OSC, Software 7x
Follow the instructions in the attached "getting_started_with_anita.pdf" file to download icemc, compile it, generate results, and plot those
results.
Entry  Wed May 15 00:38:54 2019, Brian Clark, Get a quick start with AraSim on osc, Software 8x
Follow the instructions in the attached "getting_started_with_ara.pdf" file to download AraSim, compile it, generate results, and plot those
results.
ELOG V3.1.5-fc6679b