Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TFile::Open("/home/emaan/Documents/Scripts/Veritas/41584_reduced.root");
- .ls
- gamma->Print();
- double my_ra, my_dec, my_energy, my_time;
- gamma->SetBranchAddress("ra_j2000_rad",&my_ra);
- gamma->SetBranchAddress("dec_j2000_rad",&my_dec);
- gamma->SetBranchAddress("energy_gev",&my_energy);
- gamma->SetBranchAddress("mjd",&my_time);
- TTree *n = new TTree();
- double diff_t;
- TBranch *l = n->Branch("diff_t", &diff_t, "diff_t/D");
- int count;
- for(count=0,count<1698,++count){
- double x = my_time;
- gamma->GetEntry(count+1);
- double y = my_time;
- double d = y-x;
- l->Fill();
- }
- n->Draw(“diff_t”)
Advertisement
Add Comment
Please, Sign In to add comment