Commit 526d12d9 authored by Martin Vala's avatar Martin Vala

Merge branch '2-readtree-and-set-profile-object-as-argument' into 'master'

Resolve "ReadTree and Set profile object as argument"

Closes #2

See merge request !2
parents abb0d315 2e805aba
#include "stdlib.h"
#include "stdio.h"
void ReadTree()
void ReadTree(TH2D *hEdeltaE = 0, TProfile *hEdeltaE_pr = 0)
{
TH2D *hEdeltaE = new TH2D("hEdeltaE", "hEdeltaE", 100, 0., 3., 100, 0., 1.);
TProfile *hEdeltaE_pr = new TProfile("hEdeltaE_pr", "hEdeltaE_pr", 100, 0., 3., 0., 1.);
if (!hEdeltaE || !hEdeltaE_pr)
return;
TFile *f = TFile::Open("root://alieos.saske.sk//eos/alike.saske.sk/scratch/minidst457v3.root", "READ");
const Int_t kmax = 10;
......
void Rebin()
{
TH2D *hEdeltaE = new TH2D("hEdeltaE", "hEdeltaE", 100, 0., 3., 100, 0., 1.);
TProfile *hEdeltaE_pr = new TProfile("hEdeltaE_pr", "hEdeltaE_pr", 100, 0., 3., 0., 1.);
gInterpreter->ProcessLine(Form(".x ReadTree.C((TH2D *)%p,(TProfile *)%p)", hEdeltaE, hEdeltaE_pr));
// rebin procedure
// TH2D *hEdeltaE_rebined = new TH2D("hEdeltaE", "hEdeltaE", 100, 0., 3., 100, 0., 1.);
// TProfile *hEdeltaE_pr_rebined = new TProfile("hEdeltaE_pr", "hEdeltaE_pr", 100, 0., 3., 0., 1.);
// run second time witn new hists
// gInterpreter->ProcessLine(Form(".x ReadTree.C((TH2D *)%p,(TProfile *)%p)", hEdeltaE, hEdeltaE_pr));
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment