24 int main(
int argc,
char **argv)
35 JParser<> zap(
"Example program to histogram energy corrections.");
43 catch(
const exception& error) {
44 FATAL(error.what() << endl);
48 JManager<string, TH1D> zmap(
new TH1D(
"h[%]", NULL, 1000, +2.0, +7.0));
52 const JEnergyCorrection fcn(*f1);
56 for (
int i = 1; i <= zmap->GetNbinsX(); ++i) {
58 const double x = zmap->GetBinCenter (i);
59 const double E =
pow(10.0, x);
60 const double y = fcn(E) /
E;
Utility class to parse command line options.
int main(int argc, char *argv[])
Dynamic ROOT object management.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
T pow(const T &x, const double y)
Power .
General purpose messaging.
Utility class to parse command line options.
then usage $script< input_file >< detector_file > fi set_variable OUTPUT_DIR set_variable SELECTOR JDAQTimesliceL1 set_variable DEBUG case set_variable DEBUG
std::string getFilename(const std::string &file_name)
Get file name part, i.e. part after last JEEP::PATHNAME_SEPARATOR if any.