Changeset 12303 for fact/tools/rootmacros
- Timestamp:
- 10/27/11 17:10:47 (13 years ago)
- Location:
- fact/tools/rootmacros
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/tools/rootmacros/gainanalysis.C
r12299 r12303 6 6 #include <TF1.h> 7 7 #include <TGraph.h> 8 #include <TFile.h> 8 9 9 10 #include <stdint.h> … … 29 30 30 31 gROOT->SetStyle("Plain"); 31 32 TFile outfile("gainspectra.root","RECREATE"); 32 33 //------------------------------------------- 33 34 //Define the data variables … … 80 81 std::sprintf(title_spect,"Spectrum of Px %i (data: %s, DRS: %s)",i,name,drsname); 81 82 std::sprintf(name_spect,"spect%i",i); 82 spectrum[i] = new TH1F(name_spect,title_spect,3 00,0,600);83 spectrum[i] = new TH1F(name_spect,title_spect,350,-100,600); 83 84 spectrum[i]->GetXaxis()->SetTitle("Pulse size (a.u.)"); 84 85 spectrum[i]->GetYaxis()->SetTitle("Counts"); … … 281 282 std::cin >> plotspect_nr; 282 283 } 283 284 outfile.Write(); 285 outfile.Close(); 284 286 return 0; 285 287 } -
fact/tools/rootmacros/peakfinderscope.C
r12204 r12303 9 9 #include <cstdio> 10 10 11 #define HAVE_ZLIB 11 12 #include "fits.h" 12 13 #include "FOpenDataFile.c"
Note:
See TracChangeset
for help on using the changeset viewer.