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/02/27 16:33] – iwn | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | Macro that opens a TBrowser and defines some functions. It can be run using '' | + | Macro that opens a '' |
+ | |||
+ | Or use this predefined function to quickly open root files in the '' | ||
+ | < | ||
+ | function TBrowse { root -l " | ||
+ | </ | ||
+ | Run the function like '' | ||
<code - myMacro.C> | <code - myMacro.C> | ||
Line 8: | Line 14: | ||
} | } | ||
- | 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-> | ||
} | } | ||
</ | </ |