Updates and Results Talks and Posters Advice Ideas Important Figures Write-Ups Outreach How-To Funding Opportunities GENETIS
  Advice  ELOG logo
Message ID: 14     Entry time: Fri Mar 3 15:09:40 2017
Author: Everyone  
Subject: ROOT advice  

Oindree

I am terrible at ROOT, so I have started to read the Users Guide on ROOT (attached). It's 700 pages.. so it's like a Harry Potter book, no big deal. 

Also I just learned about TChain::Draw (also in the Users Guide). Here is an example:

TChain c("adu5PatTree");   

for (int run_number = start_run; run_number <=end_run; run_number++) { c.Add(TString::Format("/Users/oindreebanerjee/OneDrive/flight1617/gps/gpsFile%d.root",run_number)); }   

c.Draw("latitude:realTime","attFlag==0", "");

This draws, for all my runs together, latitude vs realTime, cutting on attFlag. That is, only when attFlag==0 (0 is good, 1 is bad) 

f.Draw("threshold:realTime >> hthreshold","(threshold>0 && threshold<4096)","colz"); is another example. Here I have specified the draw option as colz for a 2d histogram

 

Sam

see attached .txt file

 

Brian

I wrote down some advice on how to actually get ROOT's time axis to work. It's in the attached "ROOT's Time Axis Feature.docx" file.

 

 

 

 

Attachment 1: ROOTUsersGuideLetter.pdf  10.797 MB
Attachment 2: IntroToAnitaData.txt  9 kB  Uploaded Fri Mar 24 13:15:56 2017  | Show | Hide all | Show all
Attachment 3: ROOT's_Time_Axis_Feature.docx  5 kB  Uploaded Tue May 9 22:28:30 2017
ELOG V3.1.5-fc6679b