NCType Namespace Reference

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

Classes

struct  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, kNCCCExtractionCutswkNN = 5, kNCCCExtractionPDF = 6, kNCCCExtractionkNN = 7,
  kNCCCExtractionUnk = 8, kNumExtractions = 9
}
 

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, kNCFarCleanDogwoodNoise = 55,
  kNCFarCleanDogwoodCR = 56, kNCFarCleanCRwrong = 57, 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]
static 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.

Enumerator:
kTruthEnergy 
kTruthY 
kRecoEnergy 
kRecoY 

Definition at line 149 of file NCType.h.

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

Cut suite designators.

Enumerator:
kCCCuts 
kNCCuts 
kTOCuts 
kOxCuts 
kNCCCFidCuts 

Definition at line 37 of file NCType.h.

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

Data type designators.

Enumerator:
kMC 
kData 

Definition at line 103 of file NCType.h.

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

Event type designators.

Enumerator:
kNC 
kCC 
kUnknown 
kMCTotal 
kTau 

Definition at line 46 of file NCType.h.

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

Extraction algorithm designators.

Enumerator:
kNCCCExtractionANN 
kNCCCExtractionANNNear 
kNCCCExtractionANNFar 
kNCCCExtractionMDA 
kNCCCExtractionCuts 
kNCCCExtractionCutswkNN 
kNCCCExtractionPDF 
kNCCCExtractionkNN 
kNCCCExtractionUnk 
kNumExtractions 

Definition at line 109 of file NCType.h.

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

File type designators.

Enumerator:
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   };

Systematic parameters that can be used in fits

Enumerator:
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 
kNCFarCleanDogwoodNoise 
kNCFarCleanDogwoodCR 
kNCFarCleanCRwrong 
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 166 of file NCType.h.

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

Oscillation mode designators.

Enumerator:
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   };

Oscillation model designators.

Enumerator:
kThreeFlavor 
kNoOscillations 
kFourFlavorGeneral 
kFourFlavorDelta43IsBig 
kFourFlavorDelta41Is0 
kFourFlavorDelta43Is0 
kSterileFraction 
kSterileFractionTauNorm 
kDecay 
kDecoherence 

Definition at line 89 of file NCType.h.


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::kEndOfList, n, 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 kBeamFile, kElectronFile, kMockFile, kTauFile, and 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 163 of file NCType.h.

Referenced by NC::OscProb::FindSinSqrDeltaMSqr(), and NC::OscProb::Decay::TransitionProbability().

const double NCType::kBaseLineFar = 735.
const double NCType::kBaseLineNear = 1.

Definition at line 31 of file NCType.h.

Referenced by NCBeam::FillResultHistograms().

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 133 of file NCType.h.

Initial value:
 {"truthEnergy",
                                                    "truthY",
                                                    "recoEnergy",
                                                    "recoY"}

Definition at line 157 of file NCType.h.

const TString NCType::kExtractionNames[kNumExtractions]
Initial value:
 {"ANN.",
                                                     "ANNNear.",
                                                     "ANNFar.",
                                                     "MDA.",
                                                     "Cuts.",
                                                     "CutswkNN.",
                                                     "PDF.",
                                                     "kNN.",
                                                     "Unk."}

Definition at line 122 of file NCType.h.

Referenced by NCExtrapolationModule::Run(), and set_extraction().

const double NCType::kMuMassGeV = 0.105658357

muon mass in GeV/c

Definition at line 71 of file NCType.h.

Referenced by NCEventInfo::GetTrackEnergy().

const double NCType::kNDBeamAngle = -0.0575958653

Beam is this angle downward at near detector.

Definition at line 63 of file NCType.h.

Referenced by NCEventInfo::GetEventVertex().

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

Definition at line 64 of file NCType.h.

Referenced by NCEventInfo::GetEventVertex().

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

Definition at line 65 of file NCType.h.

Referenced by NCEventInfo::GetEventVertex().

const int NCType::kNumBeamNames = 14

Definition at line 132 of file NCType.h.

Definition at line 156 of file NCType.h.

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

Definition at line 260 of file NCType.h.

Referenced by NCEventInfo::FindMODBYRSWeight().

const ParamDef NCType::kParams[kNumSystematicParameters]
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.

Referenced by NCDataQualityModule::DrawFarDataQualityPlots(), and NCDataQualityModule::DrawNearDataQualityPlots().

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.

Referenced by NCEventInfo::GetEventVertex(), and NCAnalysisCutsNC::InBeamFiducialVolume().


Generated on 19 Jan 2018 for loon by  doxygen 1.6.1