NC::SystPars Class Reference

Hold the values of the various systematic shifts, and perform simple conversions. More...

#include <NCCoordinateConverter.h>

List of all members.

Public Member Functions

 SystPars ()
bool operator!= (const SystPars &s) const
bool operator== (const SystPars &s) const
double ShowerScale (Detector::Detector_t det) const
 Factor by which the shower energy should be scaled.
double TrackScale () const
 Factor by which the track energy should be scaled.
double NormScale () const
 Factor by which the weight of the event should be scaled due to the normalization systematic.
double NDCleaningScale (NCType::EEventType, double showerEnergy) const
 Factor by which the weight of the event should be scaled due to the cleaning systematic.
double NCBkgScale () const
 Factor by which the NC background component should be scaled.
double CCBkgScale () const
 Factor by which the CC background component should be scaled.
double PenaltyForShifts () const
 The fit penalty incurred by all these systematic shifts.

Protected Attributes

double fShifts [NCType::kNumSystematicParameters]

Friends

class CoordinateConverter

Detailed Description

Hold the values of the various systematic shifts, and perform simple conversions.

Definition at line 24 of file NCCoordinateConverter.h.


Constructor & Destructor Documentation

NC::SystPars::SystPars (  ) 

Definition at line 18 of file NCCoordinateConverter.cxx.

References NCType::kNumSystematicParameters, and n.

00019 {
00020   for(int n = 0; n < kNumSystematicParameters; ++n) fShifts[n] = 0;
00021 }


Member Function Documentation

double NC::SystPars::CCBkgScale (  )  const

Factor by which the CC background component should be scaled.

Definition at line 81 of file NCCoordinateConverter.cxx.

References fShifts, and NCType::kCCBackground.

Referenced by NCExtrapolationFarNear::FillDataMCHistogramsFar(), and NCExtrapolationFarNear::FillDataMCHistogramsNear().

00082 {
00083   return 1+fShifts[kCCBackground];
00084 }

double NC::SystPars::NCBkgScale (  )  const

Factor by which the NC background component should be scaled.

Definition at line 75 of file NCCoordinateConverter.cxx.

References fShifts, and NCType::kNCBackground.

Referenced by NCExtrapolationFarNear::FillDataMCHistogramsFar(), and NCExtrapolationFarNear::FillDataMCHistogramsNear().

00076 {
00077   return 1+fShifts[kNCBackground];
00078 }

double NC::SystPars::NDCleaningScale ( NCType::EEventType  nccc,
double  showerEnergy 
) const

Factor by which the weight of the event should be scaled due to the cleaning systematic.

Near detector only

Definition at line 60 of file NCCoordinateConverter.cxx.

References fShifts, NCType::kCC, and NCType::kNCNearClean.

Referenced by NCExtrapolationFarNear::FillDataMCHistogramsNear().

00062 {
00063   if(nccc == NCType::kCC) return 1;
00064 
00065   if(showerEnergy <= 0.5) return 1 + 0.104*fShifts[kNCNearClean];
00066   if(showerEnergy <= 1.0) return 1 + 0.095*fShifts[kNCNearClean];
00067   if(showerEnergy <= 1.5) return 1 + 0.048*fShifts[kNCNearClean];
00068   if(showerEnergy <= 2.0) return 1 + 0.033*fShifts[kNCNearClean];
00069   if(showerEnergy <= 2.5) return 1 + 0.021*fShifts[kNCNearClean];
00070 
00071   return 1;
00072 }

double NC::SystPars::NormScale (  )  const

Factor by which the weight of the event should be scaled due to the normalization systematic.

Definition at line 54 of file NCCoordinateConverter.cxx.

References fShifts, and NCType::kNormalization.

Referenced by NCExtrapolationFarNear::FillDataMCHistogramsFar(), and NCBeam::FillResultHistograms().

00055 {
00056   return 1+fShifts[kNormalization];
00057 }

bool NC::SystPars::operator!= ( const SystPars s  )  const

Definition at line 24 of file NCCoordinateConverter.cxx.

References fShifts, NCType::kNumSystematicParameters, and n.

00025 {
00026   for(int n = 0; n < kNumSystematicParameters; ++n)
00027     if(s.fShifts[n] != fShifts[n]) return true;
00028 
00029   return false;
00030 }

bool NC::SystPars::operator== ( const SystPars s  )  const

Definition at line 33 of file NCCoordinateConverter.cxx.

00034 {
00035   return !(*this != s);
00036 }

double NC::SystPars::PenaltyForShifts (  )  const

The fit penalty incurred by all these systematic shifts.

\[ {\rm Penalty} = \sum_i{s_i^2\over\sigma_i^2} \]

Definition at line 87 of file NCCoordinateConverter.cxx.

References fShifts, NCType::kNumSystematicParameters, NCType::kParams, n, and SQR.

Referenced by NCExtrapolation::FindChiSqrForPars().

00088 {
00089   double pen = 0;
00090 
00091   for(int n = 0; n < kNumSystematicParameters; ++n){
00092     const double shift = fShifts[n];
00093     if(shift) pen += SQR(shift/NCType::kParams[n].sigma);
00094   }
00095 
00096   return pen;
00097 }

double NC::SystPars::ShowerScale ( Detector::Detector_t  det  )  const
double NC::SystPars::TrackScale (  )  const

Factor by which the track energy should be scaled.

Definition at line 48 of file NCCoordinateConverter.cxx.

References fShifts, and NCType::kTrackEnergy.

Referenced by NCExtrapolationFarNear::FillDataMCHistogramsFar(), NCExtrapolationFarNear::FillDataMCHistogramsNear(), and NCBeam::FillResultHistograms().

00049 {
00050   return 1+fShifts[kTrackEnergy];
00051 }


Friends And Related Function Documentation

friend class CoordinateConverter [friend]

Definition at line 26 of file NCCoordinateConverter.h.


Member Data Documentation

double NC::SystPars::fShifts[NCType::kNumSystematicParameters] [protected]

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

Generated on 3 Dec 2018 for loon by  doxygen 1.6.1