21 int main(
int argc,
char **argv)
34 JParser<> zap(
"Example program to plot UNESCO sound velocity.");
38 zap[
'S'] =
make_field(S,
"Salinity [ppk]") = 25.0;
44 catch(
const exception &error) {
45 FATAL(error.what() << endl);
51 TH1D h1(
"h1", NULL, 1000, 0.0, 3500);
52 TH2D h2(
"h2", NULL, 1000, 10.0, 20.0, 1000, 25.0, 40.0);
54 for (Int_t ix = 1; ix <= h1.GetXaxis()->GetNbins(); ++ix) {
56 const Double_t
D = h1.GetXaxis()->GetBinCenter(ix);
59 h1.SetBinContent(ix, V);
62 for (Int_t ix = 1; ix <= h2.GetXaxis()->GetNbins(); ++ix) {
63 for (Int_t iy = 1; iy <= h2.GetXaxis()->GetNbins(); ++iy) {
65 const Double_t
T = h2.GetXaxis()->GetBinCenter(ix);
66 const Double_t S = h2.GetYaxis()->GetBinCenter(iy);
71 h2.SetBinContent(ix, iy, V);
Utility class to parse command line options.
int main(int argc, char *argv[])
V(JDAQEvent-JTriggerReprocessor)*1.0/(JDAQEvent+1.0e-10)
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
do set_variable OUTPUT_DIRECTORY $WORKDIR T
General purpose messaging.
Sound velocity according UNESCO equation.
Utility class to parse command line options.
double getVelocity(const double D, const double S, const double T)
Get sound velocity according UNESCO equation.
do echo Generating $dir eval D