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

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.

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 79 of file NCCoordinateConverter.cxx.

References fShifts.

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

00080 {
00081   return 1+fShifts[kCCBackground];
00082 }

double NC::SystPars::NCBkgScale  )  const
 

Factor by which the NC background component should be scaled.

Definition at line 73 of file NCCoordinateConverter.cxx.

References fShifts.

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

00074 {
00075   return 1+fShifts[kNCBackground];
00076 }

double NC::SystPars::NDCleaningScale NCType::EEventType  ,
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.

Referenced by NCExtrapolationFarNear::FillDataMCHistogramsNear().

00062 {
00063   if(nccc == NCType::kCC) return 1;
00064 
00065   if(showerEnergy <= 0.5) return 1 + 0.152*fShifts[kNCNearClean];
00066   if(showerEnergy <= 1.0) return 1 + 0.029*fShifts[kNCNearClean];
00067   if(showerEnergy <= 1.5) return 1 + 0.004*fShifts[kNCNearClean];
00068 
00069   return 1;
00070 }

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.

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

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, and s().

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 85 of file NCCoordinateConverter.cxx.

References fShifts.

Referenced by NCExtrapolation::FindChiSqrForPars().

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

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

Factor by which the shower energy should be scaled.

Definition at line 39 of file NCCoordinateConverter.cxx.

References det, and fShifts.

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

00040 {
00041   if(det == Detector::kNear) return 1+fShifts[kAbsoluteHadronicCalibration];
00042 
00043   return (1+fShifts[kRelativeHadronicCalibration])*
00044          (1+fShifts[kAbsoluteHadronicCalibration]);
00045 }

double NC::SystPars::TrackScale  )  const
 

Factor by which the track energy should be scaled.

Definition at line 48 of file NCCoordinateConverter.cxx.

References fShifts.

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]
 

Definition at line 63 of file NCCoordinateConverter.h.

Referenced by CCBkgScale(), NCBkgScale(), NDCleaningScale(), NormScale(), operator!=(), PenaltyForShifts(), ShowerScale(), TrackScale(), and NC::CoordinateConverter::VectorFromSystPars().


The documentation for this class was generated from the following files:
Generated on Mon Feb 15 11:10:38 2010 for loon by  doxygen 1.3.9.1