GhostUtilities Class Reference

#include <GhostUtilities.h>

List of all members.

Public Member Functions

 GhostUtilities ()
 ~GhostUtilities ()

Static Public Member Functions

static Double_t FDDistance ()
static Double_t OscillationWeight (const Double_t energy, const Double_t dm2, const Double_t sin2)
static Double_t OscillationWeightMuToTau (const Double_t energy, const Double_t dm2, const Double_t sin2)
static Double_t OscillationScale (const Double_t maxbincontent, const Double_t minbincontent, const Double_t sin2)
static Double_t OscillationScaleMuToTau (const Double_t maxbincontent, const Double_t sin2)
static Double_t DecoherenceWeight (const Double_t energy, const Double_t mu2, const Double_t sin2, const Double_t binwidth, const Double_t dm2=0, const Int_t power=-1)
static Double_t DecoherenceScale (const Double_t maxbincontent, const Double_t minbincontent, const Double_t sin2)
static Double_t DecoherenceWeightMuToTau (const Double_t energy, const Double_t mu2, const Double_t sin2, const Double_t binwidth, const Double_t dm2=0, const Int_t power=-1)
static Double_t DecoherenceScaleMuToTau (const Double_t maxbincontent, const Double_t sin2)
static Double_t DecayWeight (const Double_t energy, const Double_t alpha, const Double_t sin2, const Double_t binwidth, const Double_t dm2=0)
static Double_t DecayWeightNC (const Double_t energy, const Double_t alpha, const Double_t sin2)
static Double_t DecayWeightMuToTau (const Double_t energy, const Double_t alpha, const Double_t sin2, const Double_t binwidth, const Double_t dm2=0)
static Double_t DecayScale (const Double_t alpha, const Double_t sin2)

Detailed Description

Definition at line 26 of file GhostUtilities.h.


Constructor & Destructor Documentation

GhostUtilities::GhostUtilities (  ) 

Definition at line 41 of file GhostUtilities.cxx.

References Msg::kInfo, and MSG.

00042 {
00043   MSG("GhostUtilities",Msg::kInfo) << " *-* GhostUtilities::GhostUtilities() *-* " << endl;
00044 }

GhostUtilities::~GhostUtilities (  ) 

Definition at line 46 of file GhostUtilities.cxx.

References Msg::kInfo, and MSG.

00047 {
00048   MSG("GhostUtilities",Msg::kInfo) << " *-* GhostUtilities::~GhostUtilities() *-* " << endl;
00049 }


Member Function Documentation

Double_t GhostUtilities::DecayScale ( const Double_t  alpha,
const Double_t  sin2 
) [static]

Definition at line 175 of file GhostUtilities.cxx.

00177 {
00178   return 0;
00179 }

Double_t GhostUtilities::DecayWeight ( const Double_t  energy,
const Double_t  alpha,
const Double_t  sin2,
const Double_t  binwidth,
const Double_t  dm2 = 0 
) [static]

The decay weight that should be applied to truly CC events. This takes account of the the additional events that transition to tau.

Definition at line 140 of file GhostUtilities.cxx.

References MuELoss::e, FDDistance(), and Munits::km.

Referenced by DecayWeightMuToTau(), and GhostSample::InterpolateOscillatedSpectra().

00145 {
00146   Double_t arg = 0.5*(FDDistance()/Munits::km)/energy;  // alpha is in GeV/km
00147   Double_t avg = 2*1.26693276*arg*dm2*binwidth/energy+1e-10;
00148  
00149   return pow(1-sin2,2)+sin2*sin2*exp(-2*arg*alpha)+2*sin2*(1-sin2)*exp(-arg*alpha)*cos(4*1.26693276*arg*dm2)*sin(avg)/avg;
00150 }

Double_t GhostUtilities::DecayWeightMuToTau ( const Double_t  energy,
const Double_t  alpha,
const Double_t  sin2,
const Double_t  binwidth,
const Double_t  dm2 = 0 
) [static]

Definition at line 165 of file GhostUtilities.cxx.

References DecayWeight(), and DecayWeightNC().

00170 {
00171   return DecayWeightNC(energy,alpha,sin2)-DecayWeight(energy,alpha,sin2,binwidth,dm2);
00172 }

Double_t GhostUtilities::DecayWeightNC ( const Double_t  energy,
const Double_t  alpha,
const Double_t  sin2 
) [static]

Definition at line 154 of file GhostUtilities.cxx.

References FDDistance(), and Munits::km.

Referenced by DecayWeightMuToTau().

00157 {
00158   Double_t arg = 0.5*(FDDistance()/Munits::km)/energy;  // alpha is in GeV/km
00159  
00160   return 1-sin2*(1-exp(-2*arg*alpha));
00161 }

Double_t GhostUtilities::DecoherenceScale ( const Double_t  maxbincontent,
const Double_t  minbincontent,
const Double_t  sin2 
) [static]

Definition at line 109 of file GhostUtilities.cxx.

00112 {
00113   return maxbincontent*sin2 - (sin2 - 1)*minbincontent; //same form as oscillation method
00114   //return 0;
00115 }

Double_t GhostUtilities::DecoherenceScaleMuToTau ( const Double_t  maxbincontent,
const Double_t  sin2 
) [static]

Definition at line 131 of file GhostUtilities.cxx.

00133 {
00134   return maxbincontent*sin2; //same form as oscillation method
00135   //return 0;
00136 }

Double_t GhostUtilities::DecoherenceWeight ( const Double_t  energy,
const Double_t  mu2,
const Double_t  sin2,
const Double_t  binwidth,
const Double_t  dm2 = 0,
const Int_t  power = -1 
) [static]

Definition at line 88 of file GhostUtilities.cxx.

References MuELoss::e, FDDistance(), and Munits::km.

Referenced by DecoherenceWeightMuToTau().

00094 {
00095   Double_t arg = 2*1.26693276*(FDDistance()/Munits::km)/energy;
00096   Double_t avg = 0.5*arg*dm2*binwidth/energy+1e-10;
00097 
00098   if(power==-1){
00099     return 1-(sin2/2)*(1-exp(-arg*mu2)*cos(arg*dm2)*sin(avg)/avg);
00100   }
00101   else{
00102     return 1-(sin2/2)*(1-exp(-2*arg*pow(energy,power+1)*mu2)*cos(arg*dm2)*sin(avg)/avg); // mu2 in 1e-18 GeV
00103   }
00104 
00105 }

Double_t GhostUtilities::DecoherenceWeightMuToTau ( const Double_t  energy,
const Double_t  mu2,
const Double_t  sin2,
const Double_t  binwidth,
const Double_t  dm2 = 0,
const Int_t  power = -1 
) [static]

Definition at line 119 of file GhostUtilities.cxx.

References DecoherenceWeight().

Referenced by GhostSample::InterpolateOscillatedSpectra().

00125 {
00126   return 1-DecoherenceWeight(energy,mu2,sin2,binwidth,dm2,power); 
00127 }

static Double_t GhostUtilities::FDDistance (  )  [inline, static]

Definition at line 35 of file GhostUtilities.h.

References Munits::km.

Referenced by DecayWeight(), DecayWeightNC(), DecoherenceWeight(), OscillationWeight(), and OscillationWeightMuToTau().

00035 {return 735.0*Munits::km;}

Double_t GhostUtilities::OscillationScale ( const Double_t  maxbincontent,
const Double_t  minbincontent,
const Double_t  sin2 
) [static]

Definition at line 71 of file GhostUtilities.cxx.

Referenced by GhostSample::InterpolateOscillatedSpectra().

00074 {
00075   return maxbincontent*sin2 - (sin2 - 1)*minbincontent;
00076 }

Double_t GhostUtilities::OscillationScaleMuToTau ( const Double_t  maxbincontent,
const Double_t  sin2 
) [static]

Definition at line 80 of file GhostUtilities.cxx.

Referenced by GhostSample::InterpolateOscillatedSpectra().

00082 {
00083   return maxbincontent*sin2;
00084 }

Double_t GhostUtilities::OscillationWeight ( const Double_t  energy,
const Double_t  dm2,
const Double_t  sin2 
) [static]

Definition at line 53 of file GhostUtilities.cxx.

References FDDistance(), and Munits::km.

00056 {
00057   return 1-sn2*pow(sin(1.26693276*dm2*(FDDistance()/Munits::km)/energy),2);
00058 }

Double_t GhostUtilities::OscillationWeightMuToTau ( const Double_t  energy,
const Double_t  dm2,
const Double_t  sin2 
) [static]

Definition at line 62 of file GhostUtilities.cxx.

References FDDistance(), and Munits::km.

Referenced by GhostSample::FillHistogramsFromDST(), GhostSample::MakeOscillatedHistogramBinCentre(), and GhostSample::OscillateExtrapolatedTemplate().

00065 {
00066   return sn2*pow(sin(1.26693276*dm2*(FDDistance()/Munits::km)/energy),2);
00067 }


The documentation for this class was generated from the following files:

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1