This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void createMakeClass(char* filename="",char* treename="", char* classname=""){ | |
TFile *pfile = new TFile(filename); | |
TTree *ptree = (TTree*)pfile->Get(treename); | |
ptree->MakeClass(classname); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// football_score.C | |
//////////////////////////////////////////////////// | |
// | |
// Simple Monte Carlo | |
// | |
/////////////////////////////////////////////////// | |
// Created by @visionlib.postach.io | |
{ | |
const Int_t nteam = 4; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// trafficModeling.C | |
//////////////////////////////////////////////////// | |
// | |
// Simple Monte Carlo for traffic modeling | |
// | |
/////////////////////////////////////////////////// | |
// Created by @visionlib.postach.io | |
void titleStyle(TH2* h1){ | |
h1->GetYaxis()->CenterTitle(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//http://us.24h.com.vn/tin-tuc-trong-ngay/su-that-ve-duong-bay-vang-qua-khong-phan-campuchia-c46a653855.html | |
void titleStyle(TH1* h1){ | |
h1->GetYaxis()->CenterTitle(); | |
h1->GetXaxis()->CenterTitle(); | |
h1->GetXaxis()->SetLabelSize(h1->GetXaxis()->GetTitleSize()*1.2); | |
h1->GetYaxis()->SetLabelSize(h1->GetYaxis()->GetTitleSize()*1.2); | |
h1->GetXaxis()->SetTitleSize(h1->GetXaxis()->GetLabelSize()*1.2); | |
h1->GetYaxis()->SetTitleSize(h1->GetYaxis()->GetLabelSize()*1.2); | |
h1->GetYaxis()->SetTitleOffset(0.9); | |
h1->GetXaxis()->SetTitleOffset(0.9); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// mcintegral.C | |
//////////////////////////////////////////////////// | |
// | |
// Simple Monte Carlo for integral | |
// | |
/////////////////////////////////////////////////// | |
// Created by @visionlib.postach.io | |
void mcintegral(){ | |
//this is to produce gif animation |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//////////////////////////////////// | |
// // | |
// @visionlib.postach.io // | |
// // | |
//////////////////////////////////// | |
void titleStyle(TH1* h1){ | |
h1->GetYaxis()->CenterTitle(); | |
h1->GetXaxis()->CenterTitle(); | |
h1->GetXaxis()->SetLabelSize(h1->GetXaxis()->GetTitleSize()*1.2); | |
h1->GetYaxis()->SetLabelSize(h1->GetYaxis()->GetTitleSize()*1.2); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Seconds Count | |
133 1 | |
134 7 | |
135 1 | |
136 4 | |
137 3 | |
138 3 | |
141 7 | |
142 24 | |
143 13 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- set file name | |
set fileNames to "webshot-googleAnalytics" | |
tell application "Google Chrome" | |
-- open window with secret mode, if with normal mode then use {mode:"normal"} | |
set aWin to make new window with properties {mode:"normal"} | |
tell aWin | |
-- open new tab and set URL | |
set newTab to make new tab with properties {URL:"https://www.google.com/analytics/web/?et=&authuser=#report/visitors-overview/a38108925w74194420p76615924/"} | |
tell active tab | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
TH2F *h = new TH2F("h","h",10,0,9,10,0,9); | |
TCanvas *c = new TCanvas("c","c"); | |
c->Range(-0.3373713,-2.125,3.036341,9.125); | |
//new TCanvas; | |
//gPad->Range(-0.3373713,-2.125,3.036341,9.125); | |
gStyle->SetOptStat(0); | |
c->cd(); | |
h->SetTitle(""); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void titleStyle(TH1* h1){ | |
h1->SetTitle(""); | |
h1->GetYaxis()->CenterTitle(); | |
h1->GetXaxis()->CenterTitle(); | |
h1->GetXaxis()->SetLabelSize(h1->GetXaxis()->GetTitleSize()*1.4); | |
h1->GetYaxis()->SetLabelSize(h1->GetYaxis()->GetTitleSize()*1.4); | |
h1->GetXaxis()->SetTitleSize(h1->GetXaxis()->GetLabelSize()*1.2); | |
h1->GetYaxis()->SetTitleSize(h1->GetYaxis()->GetLabelSize()*1.2); | |
h1->GetYaxis()->SetTitleOffset(0.9); | |
} |
NewerOlder