This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
root:troubleshooting [2010/11/09 16:02] – nchiap | root:troubleshooting [2013/06/14 12:11] – nchiap | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== Root-files ====== |
- | <code C> | + | |
- | TFile* inputFile = TFile:: | + | Root-files can be the source of various problems. |
- | TFile* outputFile = new TFile(" | + | Usually they are caused by hidden changes in the internal state of ROOT. |
- | // your code | + | ROOT stores the active directory. |
- | outputFile-> | + | When a new histograms is created, |
- | </ | + | |
===== Empty Files ===== | ===== Empty Files ===== | ||
Line 14: | Line 13: | ||
TFile* outputFile = new TFile(" | TFile* outputFile = new TFile(" | ||
TFile* inputFile = TFile:: | TFile* inputFile = TFile:: | ||
+ | // your code | ||
+ | outputFile-> | ||
+ | </ | ||
+ | |||
+ | but instead do: | ||
+ | <code C> | ||
+ | TFile* inputFile = TFile:: | ||
+ | TFile* outputFile = new TFile(" | ||
// your code | // your code | ||
outputFile-> | outputFile-> | ||
</ | </ |