#include #include #include #include "TROOT.h" #include "TFile.h" #include "TH2D.h" #include "JPhysics/JPhysicsSupportkit.hh" #include "JPhysics/JGeane.hh" #include "Jeep/JParser.hh" #include "Jeep/JMessage.hh" /** */ int main(int argc, char **argv) { using namespace std; using namespace JPP; string outputFile; int debug; try { JParser<> zap; zap['o'] = make_field(outputFile) = "music.root"; zap['d'] = make_field(debug) = 0; zap(argc, argv); } catch(const exception &error) { FATAL(error.what() << endl); } TFile out(outputFile.c_str(), "recreate"); TH2D h2("h2", NULL, 1000, 0.0, 8.0, 1000, 0.0, 1000.0); for (int ix = 1; ix <= h2.GetXaxis()->GetNbins(); ++ix) { for (int iy = 1; iy <= h2.GetYaxis()->GetNbins(); ++iy) { const double x = h2.GetXaxis()->GetBinCenter(ix); const double y = h2.GetYaxis()->GetBinCenter(iy); const double E = pow(10.0, x); if (y <= gWater(E)) { const double z = getThetaMCS(E, y); h2.SetBinContent(ix, iy, z); } } } out.Write(); out.Close(); }