6 gSystem->Load(
"libCintex.so");
8 gSystem->Load(
"$SRT_PUBLIC_CONTEXT/lib/Linux2.6-GCC-debug/libStandardRecord_dict.so");
11 TFile*
file =
new TFile(
"/nova/data/mc/S13-06-18/genie/nd/nd_r0000001_s01_S13-06-18_v1_genie_1000_fhc_20121129_181943.sim.caf.root",
"READ");
14 TTree*
tree = file->Get(
"recTree");
16 TCanvas*
can1 =
new TCanvas(
"nameOfCanvas",
"Tree::Draw()");
17 tree->Draw(
"slc.nhit");
21 tree->SetBranchAddress(
"rec", &rec);
24 TH1F*
myAwesomeHist =
new TH1F(
"myHist",
";Awesome Variable; Number of Slices", 100, 0, 100);
27 for(
int i = 0;
i< tree->GetEntries(); ++
i)
34 float myAwesomeVar = nhit * 5.3;
37 myAwesomeHist->Fill(myAwesomeVar);
40 TCanvas*
can2 =
new TCanvas(
"name",
"Awesome Analysis");
41 myAwesomeHist->Draw();
caf::StandardRecord * rec
unsigned int nhit
number of hits
The StandardRecord is the primary top-level object in the Common Analysis File trees.
SRSlice slc
Slice branch: nhit, extents, time, etc.