123456789101112131415161718192021222324 |
- #include <iostream>
- #include <TROOT.h>
- #include <TString.h>
- #include <TH1F.h>
- int main()
- {
- // Test TString
- TString str = "ok.";
-
- std::cout << "Testing TString: " << str << std::endl;
- // Test TH1F
- std::cout << "Testing TH1F: ";
- TH1F *hist = new TH1F("hist","Test histogram",200,-5.,5.);
- if (hist) std::cout << " ok." << std::endl;
- else std::cout << " failed." << std::endl;
- std::cout << "Done." << std::endl;
- return 0;
- }
|