This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
| computing:tbrowse [2017/02/27 16:29] – iwn | computing:tbrowse [2017/03/02 20:13] – iwn | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | Macro that opens a TBrowser and defines some functions. | + | 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> | ||
| Line 8: | Line 12: | ||
| } | } | ||
| - | void range(TH1* hist, double xmin, double xmax) | + | void norm(TH1* hist){ |
| - | { | + | hist-> |
| + | hist-> | ||
| + | } | ||
| + | |||
| + | void range(TH1* hist, double xmin, double xmax){ | ||
| hist-> | hist-> | ||
| hist-> | hist-> | ||
| } | } | ||
| - | double meanRange(TH1* hist, double xmin, double xmax) | + | double meanRange(TH1* hist, double xmin, double xmax){ |
| - | { | + | |
| hist-> | hist-> | ||
| return hist-> | return hist-> | ||
| } | } | ||
| - | double integrate(TH1* hist, double xmin, double xmax) | + | double integrate(TH1* hist, double xmin, double xmax){ |
| - | { | + | |
| hist-> | hist-> | ||
| return hist-> | return hist-> | ||
| - | } | ||
| - | |||
| - | void norm(TH1* hist) | ||
| - | { | ||
| - | hist-> | ||
| - | hist-> | ||
| } | } | ||
| </ | </ | ||