This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
computing:tbrowse [2017/02/27 16:23] – iwn | computing:tbrowse [2017/03/02 20:14] – iwn | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | Underneath is a macro that opens a '' | ||
+ | < | ||
+ | function TBrowse { root -l " | ||
+ | </ | ||
+ | Run the function in the command line with '' | ||
+ | |||
<code - myMacro.C> | <code - myMacro.C> | ||
TBrowser a; | TBrowser a; | ||
- | void myMacro() { std::cout << "Hello World!" | + | |
- | void norm(TH1* hist) { hist-> | + | void myMacro(){ |
+ | | ||
+ | } | ||
+ | |||
+ | void norm(TH1* hist){ | ||
+ | | ||
+ | | ||
+ | } | ||
+ | |||
+ | void range(TH1* hist, double xmin, double xmax){ | ||
+ | hist-> | ||
+ | hist-> | ||
+ | } | ||
+ | |||
+ | double meanRange(TH1* hist, double xmin, double xmax){ | ||
+ | hist-> | ||
+ | return hist-> | ||
+ | } | ||
+ | |||
+ | double integrate(TH1* hist, double xmin, double xmax){ | ||
+ | hist-> | ||
+ | return hist-> | ||
+ | } | ||
</ | </ |