This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
root:troubleshooting [2010/11/06 15:08] – decianm | root:troubleshooting [2010/11/09 16:02] – nchiap | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
- | ===== Empty Files ===== | + | < |
- | When you write a ROOT-file in a method with: | + | |
- | < | + | |
- | file-> | + | |
- | </ | + | |
- | and the file exists, but is empty, check the right order of the files: Do | + | |
- | < | + | |
TFile* inputFile = TFile:: | TFile* inputFile = TFile:: | ||
TFile* outputFile = new TFile(" | TFile* outputFile = new TFile(" | ||
Line 12: | Line 6: | ||
outputFile-> | outputFile-> | ||
</ | </ | ||
- | but don't | + | |
- | < | + | ===== Empty Files ===== |
+ | |||
+ | When you get an an empty ROOT-file, check the right order of the files. | ||
+ | Don' | ||
+ | < | ||
TFile* outputFile = new TFile(" | TFile* outputFile = new TFile(" | ||
TFile* inputFile = TFile:: | TFile* inputFile = TFile:: | ||
Line 19: | Line 17: | ||
outputFile-> | outputFile-> | ||
</ | </ | ||
- | |||
- | ===== Change Marker Style ===== | ||
- | To change the marker style, you have to do: | ||
- | <code C++> | ||
- | TGraph* myGraph = TGraph(); | ||
- | ... | ||
- | myGraph-> | ||
- | myGraph-> | ||
- | </ | ||
- | but it will not work if the marker style is set before the graph is drawn. | ||
- | as your file will be empty. |