Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

NeutrinoFlux.cxx File Reference

#include "neutrinoflux/NeutrinoFlux.h"

Defines

#define LOG_IMPL(LEVEL, format,)   printf("%s:%d\t", __FILE__, __LINE__), printf(format, ##__VA_ARGS__ ), printf("\n")
#define log_trace(format,)   LOG_IMPL(TRACE, format, ##__VA_ARGS__)
#define log_debug(format,)   LOG_IMPL(DEBUG, format, ##__VA_ARGS__)
#define log_info(format,)   LOG_IMPL(INFO, format, ##__VA_ARGS__)
#define log_warn(format,)   LOG_IMPL(WARN, format, ##__VA_ARGS__)
#define log_error(format,)   LOG_IMPL(ERROR, format, ##__VA_ARGS__)
#define log_fatal(format,)

Functions

string getDataDir ()
double fluxFunction_prompt (const double *function, double lE, double costheta)
double fluxFunction (const double *function, double lE, double costheta)

Define Documentation

#define log_debug format   )     LOG_IMPL(DEBUG, format, ##__VA_ARGS__)
 

#define log_error format   )     LOG_IMPL(ERROR, format, ##__VA_ARGS__)
 

#define log_fatal format   ) 
 

Value:

LOG_IMPL(FATAL, format, ##__VA_ARGS__), \
    exit(-1)

#define LOG_IMPL LEVEL,
format   )     printf("%s:%d\t", __FILE__, __LINE__), printf(format, ##__VA_ARGS__ ), printf("\n")
 

Authors Teresa Montaruli, Alessio Tamburro, Juan Carlos Diaz-Velez, Christine Lewis July 2005. TM: updated May 2007 CL: updated Nov. 2007 Given: nue = 66 anue = 67 numu = 68 anumu = 69 neutrino energy in GeV cos(zenith) between -1 and 1 It returns the atmospheric neutrino flux (conventional and/or prompt) and some astrophysical neutrino fluxes The flux is dN/dEdcos(theta) in GeV^-1 cm^-2 s^-1 sr^-1 for diffuse fluxes The flux is dN/dE in GeV^-1 cm^-2 s^-1 for point-source fluxes

#define log_info format   )     LOG_IMPL(INFO, format, ##__VA_ARGS__)
 

#define log_trace format   )     LOG_IMPL(TRACE, format, ##__VA_ARGS__)
 

#define log_warn format   )     LOG_IMPL(WARN, format, ##__VA_ARGS__)
 


Function Documentation

double fluxFunction const double *  function,
double  lE,
double  costheta
 

double fluxFunction_prompt const double *  function,
double  lE,
double  costheta
 

string getDataDir  ) 
 


Generated on Mon Nov 26 11:16:55 2007 for neutrinoflux by  doxygen 1.3.9.1