Macros
SbMath.h File Reference
#include <cmath>

Go to the source code of this file.

Macros

#define M_PI   3.1415926535897931160E0
 
#define M_PI_2   1.5707963267948965580E0
 
#define SbMinimum(a, b)   ((a)<(b)?a:b)
 
#define SbMaximum(a, b)   ((a)>(b)?a:b)
 
#define FCOS(x)    ((float)cos((double)(x)))
 
#define FSIN(x)    ((float)sin((double)(x)))
 
#define FACOS(x)   ((float)acos((double)(x)))
 
#define FASIN(x)   ((float)asin((double)(x)))
 
#define FTAN(x)    ((float)tan((double)(x)))
 
#define FATAN(x)   ((float)atan((double)(x)))
 
#define FSQRT(x)   ((float)sqrt((double)(x)))
 
#define FPOW(x, y)   ((float)pow((double)(x),(double)(y)))
 
#define FLOG(x)    ((float)log((double)(x)))
 
#define FLOG10(x)   ((float)log10((double)(x)))
 
#define FFLOOR(x)   ((float)floor((double)(x)))
 
#define FFABS(x)   ((float)fabs((double)(x)))
 
#define FCEIL(x)   ((float)ceil((double)(x)))
 

Macro Definition Documentation

#define FACOS (   x)    ((float)acos((double)(x)))

Definition at line 43 of file SbMath.h.

#define FASIN (   x)    ((float)asin((double)(x)))

Definition at line 44 of file SbMath.h.

#define FATAN (   x)    ((float)atan((double)(x)))

Definition at line 46 of file SbMath.h.

#define FCEIL (   x)    ((float)ceil((double)(x)))

Definition at line 53 of file SbMath.h.

#define FCOS (   x)    ((float)cos((double)(x)))

Definition at line 41 of file SbMath.h.

#define FFABS (   x)    ((float)fabs((double)(x)))

Definition at line 52 of file SbMath.h.

#define FFLOOR (   x)    ((float)floor((double)(x)))

Definition at line 51 of file SbMath.h.

#define FLOG (   x)    ((float)log((double)(x)))

Definition at line 49 of file SbMath.h.

#define FLOG10 (   x)    ((float)log10((double)(x)))

Definition at line 50 of file SbMath.h.

#define FPOW (   x,
  y 
)    ((float)pow((double)(x),(double)(y)))

Definition at line 48 of file SbMath.h.

#define FSIN (   x)    ((float)sin((double)(x)))

Definition at line 42 of file SbMath.h.

#define FSQRT (   x)    ((float)sqrt((double)(x)))

Definition at line 47 of file SbMath.h.

#define FTAN (   x)    ((float)tan((double)(x)))

Definition at line 45 of file SbMath.h.

#define M_PI   3.1415926535897931160E0

Definition at line 34 of file SbMath.h.

Referenced by util::HoughCalc::AddPoint(), mcchk::CosmicAna::analyze(), fuzz::FuzzyKValidate::analyze(), bpf::BPFCVNAna::analyze(), air::AirKalmanAna::analyze(), moonshadowana::MoonShadowAna::analyze(), moonshadowana::MoonShadowAnaHough::analyze(), upmuana::UpMuRecoAna::analyze(), upmuana::UpMuAnalysis::analyze(), air::AirKalmanAna::AngleBetween(), air::AirKalmanAna::AngleBetweentrk(), novaddt::MoonShadow::AnglesToVector(), upmuana::UpMuAnalysis::AnglesToVector(), gibuu::GiBUURegen::Basis(), BicountEllipse_dCP(), BiprobEllipse_dCP(), hough::Hough2P::BuildMap(), hough::MultiHough2P::BuildMap(), CalcRWithSystsNus17(), check_predinterp_numu(), ComparisonPlots_MC(), ana::ComparisonTableNbins(), fuzz::FuzzyKMeanAlg::ComputeA(), ana::CountingExperimentPValue(), ana::CountingExperimentPValueByLL(), novaddt::MoonShadow::DegToRad(), fuzz::FuzzyKMeanAlg::Distance(), fuzz::FuzzyKMeanAlg::DoClustering(), drawPlot(), DrawSurface(), osc::_PMNS< T >::EvalEqn21(), fake_future_data(), FCContour(), FD_Data_PosComp(), fd_plot(), FD_plots(), bpfit::BreakPoint::FillTrackNt(), novaddt::MoonShadow::filter(), earms::GridSearch::FindBestVtx(), fuzz::FuzzyKMeanAlg::FindUnclustered(), earms::Minimizer::Fit(), ana::FitToFourier::Fit(), ana::FitVar2SinSqTheta23SinSq2Theta13(), futureSig_reach_singlePOTcombo_syst(), Gaus(), evgen::SupernovaGen::Generate(), INukeNucleonCorr::generateTargetNucleon(), genie_contours(), novaddt::MoonShadow::GetAngularPrescale(), moonshadowana::MoonShadowAna::GetAngularPrescale(), moonshadowana::MoonShadowAnaHough::GetAngularPrescale(), novaddt::MoonShadow::GetDot(), moonshadowana::MoonShadowAna::GetDot(), moonshadowana::MoonShadowAnaHough::GetDot(), GetHist(), getHists_FNEX(), GetHistVectors(), airshower::AirSlicer::GetHoughAngles(), airshower::AirSlicer::GetHoughMap(), shadow::NOVASLocate::GetRaDec(), GetSpectToHist(), air::AirKalmanAna::GetThetaXYZ(), shadow::NOVASLocate::GetTrackRaDec(), ana::FitDelta13InPiUnitsSterile::GetValue(), ana::FitDelta14InPiUnitsSterile::GetValue(), ana::FitDelta24InPiUnitsSterile::GetValue(), shadow::NOVASLocate::GetZenAzi(), goodness_of_fit(), airshower::AirSlicer::HoughRhoTheta(), singlekaon_xsec::init(), ana::GetAntiNumuBDTCVN::InitTMVA(), joint_fit_2017_make_fc_slice(), joint_fit_2017_make_fc_surf(), joint_fit_2018_slices(), joint_fit_2019_bestfit(), joint_fit_2019_slices(), joint_fit_future_bestfit_univ(), jointsensitivity(), INukeNucleonCorr::localFermiMom(), LOverEPlot(), make_expt_profile(), make_fc_nus_surfs_nersc_2018(), make_fc_nus_surfs_nersc_2019(), make_nom_expt(), fuzz::FuzzyKMeanAlg::MakeClusters(), makePred(), MakeSurface(), MakeSystsPDF(), airshower::AirSlicer::MakeTrackSlices(), fuzz::FuzzyKMeanAlg::MergeClusters(), monoprob(), nova_t2k_comparison(), shadow::NOVASLocate::NOVASLocate(), nuebar_signif(), NuMu2020_TrimCAFs(), ana::FitToFourier::operator()(), Plotting_DataAndPrediction(), evgen::CORSIKAGen::populateNShowers(), g4n::NeutronSubstitutionProcess::PostStepDoIt(), ana::PrintOscilationParameters(), PrintOscParams(), prob_biprob_pedagogical(), comi::Cana::produce(), novaddt::MoonShadow::RadToDeg(), lem::dec::Forest::RandomOrthoMatrix(), reach_2018_dCPfractions(), ResetAngles(), ana::ResetOscCalcToDefault(), ResetOscCalcToMyDefault(), hough::Hough2P::RhoTheta(), hough::MultiHough2P::RhoTheta(), RotateT2K(), run_joint_fit_2020_bestfit(), evgen::SingleGen::Sample(), fuzz::FuzzyKMeanAlg::SeedA(), selection_story_plots(), sensitivity2018(), sensitivity2020(), INukeOsetFormula::setCrossSections(), INukeOsetFormula::setDelta(), INukeOsetFormula::setNucleus(), earms::GridSearch::SetStandardDirections(), ana::FitSinSq2Theta13::SetValue(), ana::FitDeltaInPiUnits::SetValue(), ana::FitDelta13InPiUnitsSterile::SetValue(), ana::FitDelta14InPiUnitsSterile::SetValue(), ana::FitDelta24InPiUnitsSterile::SetValue(), SpectrumParamEffectsAna(), sterile_demo(), ana::T2KToyExperiment::T2KToyExperiment(), util::HoughCalc::TestHit(), TheoryEllipse_dCP(), moonshadowana::MoonShadowAna::vec(), and moonshadowana::MoonShadowAnaHough::vec().

#define M_PI_2   1.5707963267948965580E0

Definition at line 35 of file SbMath.h.

Referenced by shadow::NOVASLocate::GetRaDec().

#define SbMaximum (   a,
  b 
)    ((a)>(b)?a:b)

Definition at line 39 of file SbMath.h.

#define SbMinimum (   a,
  b 
)    ((a)<(b)?a:b)

Definition at line 38 of file SbMath.h.