AtNuSettings Class Reference

#include <AtNuSettings.h>

List of all members.

Public Member Functions

void SetSpillCalibrationRejection ()
void SetBFieldReversal ()
Bool_t ReturnSpillCalibrationRejection ()
Bool_t ReturnBFieldReversal ()
void RunPrintSettings ()

Static Public Member Functions

static AtNuSettingsInstance ()
static void PrintSettings ()
static void RejectBadSpillCalibration ()
static Bool_t RejectingBadSpillCalibration ()
static void ReverseBField ()
static Bool_t ReversingBField ()

Private Member Functions

 AtNuSettings ()
 ~AtNuSettings ()

Private Attributes

Bool_t fDoSpillCalibrationRejection
Bool_t fDoReverseBField


Detailed Description

Definition at line 6 of file AtNuSettings.h.


Constructor & Destructor Documentation

AtNuSettings::AtNuSettings (  )  [private]

Definition at line 27 of file AtNuSettings.cxx.

References fDoReverseBField, and fDoSpillCalibrationRejection.

00028 {
00029   fDoSpillCalibrationRejection = 1; // make rejection the default
00030   fDoReverseBField = 0;             // hack reverse field MC
00031 }

AtNuSettings::~AtNuSettings (  )  [private]

Definition at line 33 of file AtNuSettings.cxx.

00034 {
00035 
00036 }


Member Function Documentation

AtNuSettings * AtNuSettings::Instance (  )  [static]

Definition at line 10 of file AtNuSettings.cxx.

Referenced by PrintSettings(), RejectBadSpillCalibration(), RejectingBadSpillCalibration(), ReverseBField(), and ReversingBField().

00011 {
00012   if( !fgAtNuSettings ){
00013     fgAtNuSettings = new AtNuSettings();
00014   }
00015 
00016   if( !fgAtNuSettings ){
00017     assert(fgAtNuSettings);
00018   }
00019 
00020   if( fgAtNuSettings ){
00021 
00022   }
00023 
00024   return fgAtNuSettings;
00025 }

void AtNuSettings::PrintSettings (  )  [static]

Definition at line 38 of file AtNuSettings.cxx.

References Instance(), and RunPrintSettings().

Referenced by AtNuEventSelector::Initialize().

00039 {
00040   AtNuSettings::Instance()->RunPrintSettings();
00041 }

void AtNuSettings::RejectBadSpillCalibration (  )  [static]

Definition at line 43 of file AtNuSettings.cxx.

References Instance(), and SetSpillCalibrationRejection().

Bool_t AtNuSettings::RejectingBadSpillCalibration (  )  [static]

Definition at line 48 of file AtNuSettings.cxx.

References Instance(), and ReturnSpillCalibrationRejection().

Referenced by AtNuEventSelectionAB::SelectGoodEvent().

00049 {
00050   return AtNuSettings::Instance()->ReturnSpillCalibrationRejection();
00051 }  

Bool_t AtNuSettings::ReturnBFieldReversal (  )  [inline]

Definition at line 23 of file AtNuSettings.h.

References fDoReverseBField.

Referenced by ReversingBField().

00023 { return fDoReverseBField;             }

Bool_t AtNuSettings::ReturnSpillCalibrationRejection (  )  [inline]

Definition at line 22 of file AtNuSettings.h.

References fDoSpillCalibrationRejection.

Referenced by RejectingBadSpillCalibration().

00022 { return fDoSpillCalibrationRejection; }

void AtNuSettings::ReverseBField (  )  [static]

Definition at line 53 of file AtNuSettings.cxx.

References Instance(), and SetBFieldReversal().

00054 {
00055   AtNuSettings::Instance()->SetBFieldReversal();
00056 }

Bool_t AtNuSettings::ReversingBField (  )  [static]

Definition at line 58 of file AtNuSettings.cxx.

References Instance(), and ReturnBFieldReversal().

Referenced by AtNuEventSelectionAB::SelectNegativeCharge(), AtNuEventSelectionAB::SelectPositiveCharge(), and AtNuEventNtuple::WriteVariables().

00059 {
00060   return AtNuSettings::Instance()->ReturnBFieldReversal();
00061 }

void AtNuSettings::RunPrintSettings (  ) 

Definition at line 63 of file AtNuSettings.cxx.

References fDoReverseBField, and fDoSpillCalibrationRejection.

Referenced by PrintSettings().

00064 {
00065   std::cout << " *** AtNuSettings::PrintSettings() *** " << std::endl;
00066   std::cout << "  DoSpillCalibrationRejection = " << fDoSpillCalibrationRejection << std::endl;
00067   std::cout << "  DoReverseBField = " << fDoReverseBField << std::endl;
00068 
00069   return;
00070 }

void AtNuSettings::SetBFieldReversal (  )  [inline]

Definition at line 20 of file AtNuSettings.h.

References fDoReverseBField.

Referenced by ReverseBField().

00020 { fDoReverseBField = 1;             } 

void AtNuSettings::SetSpillCalibrationRejection (  )  [inline]

Definition at line 19 of file AtNuSettings.h.

References fDoSpillCalibrationRejection.

Referenced by RejectBadSpillCalibration().


Member Data Documentation

Bool_t AtNuSettings::fDoReverseBField [private]

Definition at line 33 of file AtNuSettings.h.

Referenced by AtNuSettings(), ReturnBFieldReversal(), RunPrintSettings(), and SetBFieldReversal().

Bool_t AtNuSettings::fDoSpillCalibrationRejection [private]

Definition at line 32 of file AtNuSettings.h.

Referenced by AtNuSettings(), ReturnSpillCalibrationRejection(), RunPrintSettings(), and SetSpillCalibrationRejection().


The documentation for this class was generated from the following files:
Generated on Wed Sep 10 22:50:50 2014 for loon by  doxygen 1.4.7