27 int main(
int argc,
char **argv)
38 JParser<> zap(
"Example program to plot match criterion.");
46 catch(
const exception &error) {
47 FATAL(error.what() << endl);
54 TH1D h3dp(
"[3D]+", NULL, 5000, 0.0, 1000.0);
55 TH1D h3dm(
"[3D]-", NULL, 5000, 0.0, 1000.0);
56 TH1D h3bp(
"[3B]+", NULL, 5000, 0.0, 1000.0);
57 TH1D h3bm(
"[3B]-", NULL, 5000, 0.0, 1000.0);
58 TH1D h1dp(
"[1D]+", NULL, 5000, 0.0, 1000.0);
59 TH1D h1dm(
"[1D]-", NULL, 5000, 0.0, 1000.0);
67 for (Int_t
i = 1;
i <= h3dp.GetXaxis()->GetNbins(); ++
i) {
69 const Double_t
x = h3dp.GetXaxis()->GetBinCenter(
i);
79 if (match3D(A, B)) { t3d = t; }
80 if (match3B(A, B)) { t3b = t; }
81 if (match1D(A, B)) { t1d = t; }
84 h3dp.SetBinContent(
i, +t3d);
85 h3dm.SetBinContent(
i, -t3d);
86 h3bp.SetBinContent(
i, +t3b);
87 h3bm.SetBinContent(
i, -t3b);
88 h1dp.SetBinContent(
i, +t1d);
89 h1dm.SetBinContent(
i, -t1d);
Match operator for Cherenkov light from muon in any direction.
Utility class to parse command line options.
int main(int argc, char *argv[])
Match operator for Cherenkov light from muon with given direction.
static const double INDEX_OF_REFRACTION_WATER
Average index of refraction of water corresponding to the group velocity.
*fatal Wrong number of arguments esac JCookie sh typeset Z DETECTOR typeset Z SOURCE_RUN typeset Z TARGET_RUN set_variable PARAMETERS_FILE $WORKDIR parameters
Empty structure for specification of parser element that is initialised (i.e. does not require input)...
Match operator for Cherenkov light from muon in any direction.
Data structure for vector in three dimensions.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
General purpose messaging.
Utility class to parse command line options.
static const double C_INVERSE
Inverse speed of light in vacuum [ns/m].
source $JPP_DIR setenv csh $JPP_DIR &dev null eval JShellParser o a A
3D match criterion with road width.