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

NCType Namespace Reference

A collection of constants, enums and miscellaneous junk. More...


Classes

struct  NCType::ParamDef
 Struct to hold details of a systematic parameter. More...

Enumerations

enum  ECuts {
  kCCCuts = 0, kNCCuts = 1, kTOCuts = 2, kOxCuts = 3,
  kNCCCFidCuts = 4
}
 Cut suite designators. More...
enum  EEventType {
  kNC = 0, kCC = 1, kUnknown = 2, kMCTotal = 3,
  kTau = 4
}
 Event type designators. More...
enum  EFileType {
  kUnknownFile = 0, kBeamFile = 1, kTauFile = 2, kElectronFile = 3,
  kMockFile = 4
}
 File type designators. More...
enum  EOscMode {
  kNuMuToNuMu = 0, kNuMuToNuTau = 1, kNuMuToNuE = 2, kNuMuToNuS = 3,
  kNuEToNuE = 4
}
 Oscillation mode designators. More...
enum  EOscModel {
  kThreeFlavor, kNoOscillations, kFourFlavorGeneral, kFourFlavorDelta43IsBig,
  kFourFlavorDelta41Is0, kFourFlavorDelta43Is0, kSterileFraction, kSterileFractionTauNorm,
  kDecay, kDecoherence
}
 Oscillation model designators. More...
enum  EDataMC { kMC = 0, kData = 1 }
 Data type designators. More...
enum  EExtraction {
  kNCCCExtractionANN = 0, kNCCCExtractionANNNear = 1, kNCCCExtractionANNFar = 2, kNCCCExtractionMDA = 3,
  kNCCCExtractionCuts = 4, kNCCCExtractionPDF = 5, kNCCCExtractionkNN = 6, kNCCCExtractionUnk = 7,
  kNumExtractions = 8
}
 Extraction algorithm designators. More...
enum  { kTruthEnergy = 0, kTruthY = 1, kRecoEnergy = 2, kRecoY = 3 }
 Histogram number designators inside of vectors in extraction objects. More...
enum  EFitParam {
  kma_qe = 0, kma_res = 1, kqel_fa0 = 2, kqel_eta = 3,
  kres_omega = 4, kres_z = 5, kma_coh = 6, kcoh_r0 = 7,
  kcoh_rei = 8, kkno_a1 = 9, kkno_a2 = 10, kkno_a3 = 11,
  kkno_a4 = 12, kkno_b = 13, kkno_r112 = 14, kkno_r122 = 15,
  kkno_r132 = 16, kkno_r142 = 17, kkno_r113 = 18, kkno_r123 = 19,
  kkno_r133 = 20, kkno_r143 = 21, kkno_r212 = 22, kkno_r222 = 23,
  kkno_r232 = 24, kkno_r242 = 25, kkno_r213 = 26, kkno_r223 = 27,
  kkno_r233 = 28, kkno_r243 = 29, kDISFACT = 30, kCCMA = 31,
  kkno_r112122 = 32, kkno_r113123 = 33, kkno_r212222 = 34, kkno_r213223 = 35,
  kTrackEnergy = 36, kShowerEnergy = 37, kFiducialVolume = 38, kNormalization = 39,
  kAbsoluteHadronicCalibration = 40, kShowerEnergyOffset = 41, kNCBackground = 42, kPIDCut = 43,
  kRelativeHadronicCalibration = 44, kCCBackground = 45, kLowCompleteness = 46, kSKZP = 47,
  kNCCrossSection = 48, kNuBarCrossSection = 49, kNCFarCleanNoise = 50, kNCFarCleanCR = 51,
  kNCNearClean = 52, kNCCleanRunDiff = 53, kNCRunDiff = 54, kNumSystematicParameters,
  kUMu3Sqr, kUE3Sqr, kTheta12, kTheta13,
  kTheta23, kTheta14, kTheta24, kTheta34,
  kDelta1, kDelta2, kDelta13, kDeltaMSqr,
  kDeltaMSqr12, kDeltaMSqr31, kDeltaMSqr32, kDeltaMSqr41,
  kDeltaMSqr43, kFs, kAlpha, kTheta,
  kMu, kTauScale, kRockDensity, kNumParameters
}
 Systematic parameters that can be used in fits More...

Functions

EFileType FindFileType (ANtpHeaderInfo *header)
TString FileTypeAsString (EFileType f)
std::vector< BeamType::BeamType_tBeamListFromString (const char *str)
 Converts a space-seperated string of beams to corresponding BeamType_t's.

Variables

const double kBaseLineFar = 735.
const double kBaseLineNear = 1.
const double kPotMC = 2.5e20
 MC is scaled to 2.5e20 POT when written out by analysis module.
const double kNDBeamAngle = -0.0575958653
 Beam is this angle downward at near detector.
const double kNDBeamCenterX = 1.4885 * Munits::m
const double kNDBeamCenterY = 0.1397 * Munits::m
const double kTrackVtxAdjustment = 3.92 * Munits::cm
const double kMuMassGeV = 0.105658357
 muon mass in GeV/c
const TString kExtractionNames [kNumExtractions]
const int kNumBeamNames = 14
const TString kBeamNames [14]
const int kNumEfficiencyAndPurityBaseNames = 4
const TString kEfficiencyAndPurityBaseNames [4]
const double k127 = 1.267
 Constant value in argument of sin^2 for Delta m^2.
const int kNumNeugenParameters = kkno_r213223-kma_qe+1
const ParamDef kParams [kNumSystematicParameters]


Detailed Description

A collection of constants, enums and miscellaneous junk.

Enumeration Type Documentation

anonymous enum
 

Histogram number designators inside of vectors in extraction objects.

Enumeration values:
kTruthEnergy 
kTruthY 
kRecoEnergy 
kRecoY 

Definition at line 147 of file NCType.h.

00147       {
00148     kTruthEnergy = 0,
00149     kTruthY      = 1,
00150     kRecoEnergy  = 2,
00151     kRecoY       = 3
00152   };

enum ECuts
 

Cut suite designators.

Enumeration values:
kCCCuts 
kNCCuts 
kTOCuts 
kOxCuts 
kNCCCFidCuts 

Definition at line 37 of file NCType.h.

Referenced by MicroDSTMaker::Config().

00037             {
00038     kCCCuts = 0,
00039     kNCCuts = 1,
00040     kTOCuts = 2,
00041     kOxCuts = 3,
00042     kNCCCFidCuts = 4
00043   };

enum EDataMC
 

Data type designators.

Enumeration values:
kMC 
kData 

Definition at line 103 of file NCType.h.

00103               {
00104     kMC   = 0,
00105     kData = 1
00106   };

enum EEventType
 

Event type designators.

Enumeration values:
kNC 
kCC 
kUnknown 
kMCTotal 
kTau 

Definition at line 46 of file NCType.h.

Referenced by NCExtrapolation::DrawBestFitRatios(), NCExtrapolation::DrawBestFitSpectra(), NCBeam::FillResultHistograms(), and NCExtrapolationPID::WriteResources().

00046                  {
00047     kNC      = 0,
00048     kCC      = 1,
00049     kUnknown = 2,
00050     kMCTotal = 3,
00051     kTau     = 4
00052   };

enum EExtraction
 

Extraction algorithm designators.

Enumeration values:
kNCCCExtractionANN 
kNCCCExtractionANNNear 
kNCCCExtractionANNFar 
kNCCCExtractionMDA 
kNCCCExtractionCuts 
kNCCCExtractionPDF 
kNCCCExtractionkNN 
kNCCCExtractionUnk 
kNumExtractions 

Definition at line 109 of file NCType.h.

Referenced by NCExtrapolationModule::Config().

00109                   {
00110     kNCCCExtractionANN     = 0,
00111     kNCCCExtractionANNNear = 1,
00112     kNCCCExtractionANNFar  = 2,
00113     kNCCCExtractionMDA     = 3,
00114     kNCCCExtractionCuts    = 4,
00115     kNCCCExtractionPDF     = 5,
00116     kNCCCExtractionkNN     = 6,
00117     kNCCCExtractionUnk     = 7,
00118     kNumExtractions        = 8
00119   };

enum EFileType
 

File type designators.

Enumeration values:
kUnknownFile 
kBeamFile 
kTauFile 
kElectronFile 
kMockFile 

Definition at line 55 of file NCType.h.

00055                 {
00056     kUnknownFile  = 0,
00057     kBeamFile     = 1,
00058     kTauFile      = 2,
00059     kElectronFile = 3,
00060     kMockFile     = 4
00061   };

enum EFitParam
 

Systematic parameters that can be used in fits

Enumeration values:
kma_qe 
kma_res 
kqel_fa0 
kqel_eta 
kres_omega 
kres_z 
kma_coh 
kcoh_r0 
kcoh_rei 
kkno_a1 
kkno_a2 
kkno_a3 
kkno_a4 
kkno_b 
kkno_r112 
kkno_r122 
kkno_r132 
kkno_r142 
kkno_r113 
kkno_r123 
kkno_r133 
kkno_r143 
kkno_r212 
kkno_r222 
kkno_r232 
kkno_r242 
kkno_r213 
kkno_r223 
kkno_r233 
kkno_r243 
kDISFACT 
kCCMA 
kkno_r112122 
kkno_r113123 
kkno_r212222 
kkno_r213223 
kTrackEnergy 
kShowerEnergy 
kFiducialVolume 
kNormalization 
kAbsoluteHadronicCalibration 
kShowerEnergyOffset 
kNCBackground 
kPIDCut 
kRelativeHadronicCalibration 
kCCBackground 
kLowCompleteness 
kSKZP 
kNCCrossSection 
kNuBarCrossSection 
kNCFarCleanNoise 
kNCFarCleanCR 
kNCNearClean 
kNCCleanRunDiff 
kNCRunDiff 
kNumSystematicParameters 
kUMu3Sqr 
kUE3Sqr 
kTheta12 
kTheta13 
kTheta23 
kTheta14 
kTheta24 
kTheta34 
kDelta1 
kDelta2 
kDelta13 
kDeltaMSqr 
kDeltaMSqr12 
kDeltaMSqr31 
kDeltaMSqr32 
kDeltaMSqr41 
kDeltaMSqr43 
kFs 
kAlpha 
kTheta 
kMu 
kTauScale 
kRockDensity 
kNumParameters 

Definition at line 164 of file NCType.h.

Referenced by NC::CoordinateConverter::CoordNDimFromOscPars(), and NC::CoordinateConverter::VectorFromSystPars().

00164                 {
00165     // Neugen parameters
00166     kma_qe       = 0,
00167     kma_res      = 1,
00168     kqel_fa0     = 2,
00169     kqel_eta     = 3,
00170     kres_omega   = 4,
00171     kres_z       = 5,
00172     kma_coh      = 6,
00173     kcoh_r0      = 7,
00174     kcoh_rei     = 8,
00175     kkno_a1      = 9,
00176     kkno_a2      = 10,
00177     kkno_a3      = 11,
00178     kkno_a4      = 12,
00179     kkno_b       = 13,
00180     kkno_r112    = 14,
00181     kkno_r122    = 15,
00182     kkno_r132    = 16,
00183     kkno_r142    = 17,
00184     kkno_r113    = 18,
00185     kkno_r123    = 19,
00186     kkno_r133    = 20,
00187     kkno_r143    = 21,
00188     kkno_r212    = 22,
00189     kkno_r222    = 23,
00190     kkno_r232    = 24,
00191     kkno_r242    = 25,
00192     kkno_r213    = 26,
00193     kkno_r223    = 27,
00194     kkno_r233    = 28,
00195     kkno_r243    = 29,
00196     kDISFACT     = 30,
00197     kCCMA        = 31,
00198     kkno_r112122 = 32,
00199     kkno_r113123 = 33,
00200     kkno_r212222 = 34,
00201     kkno_r213223 = 35,
00202 
00203     kTrackEnergy                 = 36,
00204     kShowerEnergy                = 37,
00205     kFiducialVolume              = 38,
00206     kNormalization               = 39,
00207     kAbsoluteHadronicCalibration = 40,
00208     kShowerEnergyOffset          = 41,
00209     kNCBackground                = 42,
00210     kPIDCut                      = 43,
00211     kRelativeHadronicCalibration = 44,
00212     kCCBackground                = 45,
00213     kLowCompleteness             = 46,
00214 
00215     kSKZP = 47,
00216 
00217     kNCCrossSection = 48,
00218     kNuBarCrossSection = 49,
00219     kNCFarCleanNoise = 50,
00220     kNCFarCleanCR = 51,
00221     kNCNearClean = 52,
00222     kNCCleanRunDiff = 53,
00223     kNCRunDiff = 54,
00224 
00225     kNumSystematicParameters,
00226 
00227     kUMu3Sqr,
00228     kUE3Sqr,
00229     kTheta12,
00230     kTheta13,
00231     kTheta23,
00232     kTheta14,
00233     kTheta24,
00234     kTheta34,
00235     kDelta1,
00236     kDelta2,
00237     kDelta13,
00238     kDeltaMSqr,
00239     kDeltaMSqr12,
00240     kDeltaMSqr31,
00241     kDeltaMSqr32,
00242     kDeltaMSqr41,
00243     kDeltaMSqr43,
00244     kFs,
00245     kAlpha,
00246     kTheta,
00247     kMu,
00248     kTauScale,
00249     kRockDensity,
00250 
00251     kNumParameters
00252   };

enum EOscMode
 

Oscillation mode designators.

Enumeration values:
kNuMuToNuMu 
kNuMuToNuTau 
kNuMuToNuE 
kNuMuToNuS 
kNuEToNuE 

Definition at line 80 of file NCType.h.

00080                {
00081     kNuMuToNuMu  = 0,
00082     kNuMuToNuTau = 1,
00083     kNuMuToNuE   = 2,
00084     kNuMuToNuS   = 3,
00085     kNuEToNuE    = 4
00086   };

enum EOscModel
 

Oscillation model designators.

Enumeration values:
kThreeFlavor 
kNoOscillations 
kFourFlavorGeneral 
kFourFlavorDelta43IsBig 
kFourFlavorDelta41Is0 
kFourFlavorDelta43Is0 
kSterileFraction 
kSterileFractionTauNorm 
kDecay 
kDecoherence 

Definition at line 89 of file NCType.h.

Referenced by NCExtrapolationModule::Config(), NCExtrapolation::Prepare(), and NC::CoordinateConverter::Prepare().

00089                 {
00090     kThreeFlavor,
00091     kNoOscillations,
00092     kFourFlavorGeneral,
00093     kFourFlavorDelta43IsBig,
00094     kFourFlavorDelta41Is0,
00095     kFourFlavorDelta43Is0,
00096     kSterileFraction,
00097     kSterileFractionTauNorm,
00098     kDecay,
00099     kDecoherence
00100   };


Function Documentation

vector< BeamType::BeamType_t > NCType::BeamListFromString const char *  str  ) 
 

Converts a space-seperated string of beams to corresponding BeamType_t's.

Definition at line 59 of file NCType.cxx.

References BeamType::AsString(), BeamType::BeamType_t, and NC::Utility::ParseStringList().

Referenced by NCExtrapolationModule::Config(), and NCDataQualityModule::Config().

00060 {
00061   const vector<TString> sl = NC::Utility::ParseStringList(str);
00062 
00063   using BeamType::BeamType_t;
00064 
00065   vector<BeamType_t> ret;
00066 
00067   for(unsigned int n = 0; n < sl.size(); ++n){
00068     // BeamType doesn't have a FromString function
00069     for(BeamType_t beam = BeamType_t(0);
00070         beam < BeamType::kEndOfList;
00071         beam = BeamType_t(int(beam)+1)){
00072       if(sl[n] == BeamType::AsString(beam)) ret.push_back(beam);
00073     } // end for beam
00074   } // end for n
00075 
00076   return ret;
00077 }

TString NCType::FileTypeAsString EFileType  f  ) 
 

Definition at line 46 of file NCType.cxx.

References kBeamFile, kElectronFile, kMockFile, kTauFile, and kUnknownFile.

Referenced by NCExtrapolationModule::AddFilesToChain().

00047 {
00048   switch(f){
00049   case kUnknownFile:  return "Unknown filetype";
00050   case kBeamFile:     return "Beam";
00051   case kTauFile:      return "Tau";
00052   case kElectronFile: return "Electron";
00053   case kMockFile:     return "Mock";
00054   default:
00055     assert(0 && "This really shouldn't happen");
00056   }
00057 }

NCType::EFileType NCType::FindFileType ANtpHeaderInfo header  ) 
 

Definition at line 22 of file NCType.cxx.

References ANtpHeaderInfo::run.

Referenced by NC::MockDataAdder::AddEventsToExtrapolations(), NCExtrapolationModule::AddEventToExtrapolations(), and NCExtrapolationModule::SetEventWeight().

00023 {
00024   assert(header);
00025   //check if the event is from a tau file.  the mc run numbers have the convention
00026   //<ikey><itgt><iflv><S><RRRR>
00027   //<ikey> = 1 near, 2 far
00028   //<itgt> = 1 in detector only, 2 in rock only, 3 detector + rock, 4 in fiducial only
00029   //<iflv> = 0 beam, 1 nue, 3 nutau, 4 numu, nue inverted, 5 far oscillated mock data
00030   //<S> = split set
00031   //<RRRR> = run number
00032 
00033   if(header->run > 21300000 &&
00034      header->run < 21400000) return NCType::kTauFile;
00035 
00036   //dont know what these runs are just now
00037   if(header->run > 21400000 &&
00038      header->run < 21510000) return NCType::kElectronFile;
00039 
00040   if(header->run > 21910000 &&
00041      header->run < 21910004) return NCType::kMockFile;
00042 
00043   return NCType::kBeamFile;
00044 }


Variable Documentation

const double NCType::k127 = 1.267
 

Constant value in argument of sin^2 for Delta m^2.

Definition at line 161 of file NCType.h.

const double NCType::kBaseLineFar = 735.
 

Definition at line 30 of file NCType.h.

const double NCType::kBaseLineNear = 1.
 

Definition at line 31 of file NCType.h.

const TString NCType::kBeamNames[14]
 

Initial value:

 {"Do Not Use",
                                  "LE10_185kA",
                                  "ME",
                                  "HE",
                                  "pME",
                                  "pHE",
                                  "LE10_LowIntensity",
                                  "LE10_170kA",
                                  "LE10_200kA",
                                  "LE10_NoHorn",
                                  "LE10_All",
                                  "LE10_All185",
                                  "LE10_Far",
                                  "All"}

Definition at line 131 of file NCType.h.

const TString NCType::kEfficiencyAndPurityBaseNames[4]
 

Initial value:

 {"truthEnergy",
                                                    "truthY",
                                                    "recoEnergy",
                                                    "recoY"}

Definition at line 155 of file NCType.h.

const TString NCType::kExtractionNames[kNumExtractions]
 

Initial value:

 {"ANN.",
                                                     "ANNNear.",
                                                     "ANNFar.",
                                                     "MDA.",
                                                     "Cuts.",
                                                     "PDF.",
                                                     "kNN.",
                                                     "Unk."}

Definition at line 121 of file NCType.h.

const double NCType::kMuMassGeV = 0.105658357
 

muon mass in GeV/c

Definition at line 71 of file NCType.h.

const double NCType::kNDBeamAngle = -0.0575958653
 

Beam is this angle downward at near detector.

Definition at line 63 of file NCType.h.

const double NCType::kNDBeamCenterX = 1.4885 * Munits::m
 

Definition at line 64 of file NCType.h.

const double NCType::kNDBeamCenterY = 0.1397 * Munits::m
 

Definition at line 65 of file NCType.h.

const int NCType::kNumBeamNames = 14
 

Definition at line 130 of file NCType.h.

const int NCType::kNumEfficiencyAndPurityBaseNames = 4 [static]
 

Definition at line 154 of file NCType.h.

const int NCType::kNumNeugenParameters = kkno_r213223-kma_qe+1
 

Definition at line 254 of file NCType.h.

const ParamDef NCType::kParams[kNumSystematicParameters]
 

Definition at line 271 of file NCType.h.

Referenced by NC::CoordinateConverter::AddSystematicParameter(), and NC::CoordinateConverter::VectorFromSystPars().

const double NCType::kPotMC = 2.5e20
 

MC is scaled to 2.5e20 POT when written out by analysis module.

Definition at line 34 of file NCType.h.

const double NCType::kTrackVtxAdjustment = 3.92 * Munits::cm
 

Need to move track vertices back into the preceding steel plane See docdb-2409v3 p14

Definition at line 69 of file NCType.h.


Generated on Mon Feb 15 11:10:39 2010 for loon by  doxygen 1.3.9.1