1 #ifndef __JAANET__JEVTWEIGHTFACTORGSEAGEN__ 
    2 #define __JAANET__JEVTWEIGHTFACTORGSEAGEN__ 
   26 namespace JPP { 
using namespace JAANET; }
 
   73                             const char*  formula) :
 
   75       TFormula(name, formula)
 
   90       if (static_cast<const JFluxHelper&>(*
this)) {
 
  102         return this->DoEval(&vars[0]) * flux;
 
  106         THROW(JNullPointerException, 
"JEvtWeightFactorGSeaGen::operator(): Unspecified flux function.");
 
  124       typedef JToken<';'>   JToken_t;
 
  132       object.Compile(formula.c_str());
 
  134       for (
int count = 0; count < 
object.GetNpar() && in >> equation; ++count) {
 
  137         const double value = 
getValue(equation, 0);
 
  139         object.SetParameter(index, value);
 
  159         out << 
object.GetExpFormula() << 
';';
 
  161         for (
int i = 0; 
i < 
object.GetNpar(); ++
i) {
 
  162           out << 
" p" << 
i << 
" = " << 
SCIENTIFIC(6,3) << 
object.GetParameter(
i) << 
';';
 
static const int W2LIST_GSEAGEN_BX
Bjorken x. 
 
double getValue(const JScale_t scale)
Get numerical value corresponding to scale. 
 
int getParameter(const std::string &text)
Get parameter number from text string. 
 
double getE0(const Evt &evt)
Get initial state energy of a neutrino interaction. 
 
friend std::ostream & operator<<(std::ostream &out, const JEvtWeightFactorGSeaGen &object)
Stream output. 
 
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message. 
 
then echo Enter input within $TIMEOUT_S seconds echo n User name
 
variables
Indices of reweighting variables for GSeaGen. 
 
friend std::istream & operator>>(std::istream &in, JEvtWeightFactorGSeaGen &object)
Stream input. 
 
Number of reweighting variables;   N.B. This enum value needs to be specified last! ...
 
JEvtWeightFactorGSeaGen(const JFlux &flux, const char *name, const char *formula)
Constructor. 
 
double getFactor(const Evt &evt) const 
Get weight-factor of given event. 
 
Helper class for event-weight factor. 
 
Björken-x (= fractional momentum carried by the struck nucleon) 
 
Low-level interface for retrieving the flux corresponding to a given event. 
 
JEvtWeightFactorGSeaGen()
Default constructor. 
 
Implementation of reweighting factor for simulated neutrino interactions according to a specifiable R...
 
static const int W2LIST_GSEAGEN_BY
Bjorken y. 
 
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
 
double operator()(const Evt &evt) const 
Get weighting factor for given event. 
 
Inelasticity (= Björken-y) 
 
const Trk & get_neutrino(const Evt &evt)
Get incoming neutrino. 
 
The Trk class represents a Monte Carlo (MC) particle as well as a reconstructed track/shower. 
 
Auxiliary data structure for floating point format specification. 
 
std::vector< double > w2list
MC: factors that make up w[1]=w2 (see e.g. Tag list or km3net-dataformat/definitions) ...
 
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.