This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
computing:tbrowse [2017/02/27 16:30] – iwn | computing:tbrowse [2017/03/02 20:14] (current) – iwn | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | Macro that opens a '' | + | 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 norm(TH1* hist) | + | void norm(TH1* hist){ |
- | { | + | |
hist-> | hist-> | ||
hist-> | hist-> | ||
} | } | ||
- | void range(TH1* hist, double xmin, double xmax) | + | 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-> | ||
} | } | ||
</ | </ |