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

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  ENDCleanAlg { kHighMultClean = 0, kLowMultClean = 1, kNoClean = 2 }
 Cleaning algorithms for ND. More...

enum  EStopper { kBRStopper = 0, kPittStopper = 1, kCCStopper = 2 }
 Algorithms to select stopping muons. More...

enum  EFidVol {
  kBRFiducialVolume = 0, kOxFiducialVolume = 1, kCCFiducialVolume = 2, kTOFiducialVolume = 3,
  kRockMuonFiducialVolume = 4
}
 Algorithms to select fiducial volume. More...

enum  EGoodEventAlg {
  kBREventAlgorithm = 0, kTOEventAlgorithm = 1, kCCEventAlgorithm = 2, kUnkEventAlgorithm = 3,
  kOxEventAlgorithm = 4
}
 Algorithms to select good events. More...

enum  EGoodSnarlAlg { kBRSnarlAlgorithm = 0, kCCSnarlAlgorithm = 1 }
 Algorithms to select good snarls. More...

enum  EGoodSpillAlg { kStandardSpillSelection = 0, kCCSpillSelection = 1 }
 Algorithms to select good spills. More...

enum  EFinalSelectionAlg { kCCFinalSelection = 0, kNCFinalSelection = 1 }
 Algorithms to make final cuts. More...

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  ERunType {
  kRunAll = 0, kRunI = 1, kRunII = 2, kRunIII = 3,
  kMaxRun = kRunII
}
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 {
  kNCCCExtractionTRann = 0, kNCCCExtractionTO = 1, kNCCCExtractionAS = 2, kNCCCExtractionNS = 3,
  kNCCCExtractionRO = 4, kNCCCExtractionKA = 5, kNCCCExtractionKAD = 6, kNCCCExtractionRPann = 7,
  kNCCCExtractionRPann2 = 8, kNCCCExtractionDP = 9, kNCCCExtractionADM = 10, kNCCCExtractionTR = 11,
  kNCCCExtractionPL = 12, kNCCCExtractionTOm = 13, kNCCCExtractionUnk = 14, kNumExtractions = 15
}
 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)
void ConstructBadRuns ()
bool IsNDRunGood (int, int)
ERunType FindRunType (ANtpHeaderInfo *header)
ERunType FindRunType (TString fileName)
 Takes a filename and works out what ERunType it is from.

std::vector< BeamType::BeamType_tBeamListFromString (const char *str)
 Converts a comma-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 int kBadRuns [38]
const TString kRunNames [kMaxRun+1]
const TString kExtractionNames [15]
const int kNumBeamNames = 14
const TString kBeamNames [14]
const int kNumEfficiencyAndPurityBaseNames = 4
const TString kEfficiencyAndPurityBaseNames [4]
const int kNumUMu3SqrBins = 100
const double kUMu3SqrStart = 1.e-3
const double kUMu3SqrEnd = 1.
const double kDeltaUMu3Sqr = (kUMu3SqrEnd-kUMu3SqrStart)/(1.*kNumUMu3SqrBins)
const int kNumUS3SqrBins = 100
const double kUS3SqrStart = 1.e-3
const double kUS3SqrEnd = 1.
const double kDeltaUS3Sqr = (kUS3SqrEnd-kUS3SqrStart)/(1.*kNumUS3SqrBins)
const int kNumDeltaMSqrBins = 300
const double kDeltaMSqrStart = 1.5
const double kDeltaMSqrEnd = 4.5
const double kDeltaDeltaMSqr = (kDeltaMSqrEnd-kDeltaMSqrStart)/(1.*kNumDeltaMSqrBins)
const int kNumTheta23Bins = 400
const double kTheta23Start = 0
const double kTheta23End = 2*TMath::Pi()
const double kDeltaTheta23 = (kTheta23End-kTheta23Start)/kNumTheta23Bins
const double k127 = 1.267
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 248 of file NCType.h.

00248       {
00249     kTruthEnergy = 0,
00250     kTruthY      = 1,
00251     kRecoEnergy  = 2,
00252     kRecoY       = 3
00253   };

enum NCType::ECuts
 

Cut suite designators.

Enumeration values:
kCCCuts 
kNCCuts 
kTOCuts 
kOxCuts 
kNCCCFidCuts 

Definition at line 88 of file NCType.h.

00088             {
00089     kCCCuts = 0,
00090     kNCCuts = 1,
00091     kTOCuts = 2,
00092     kOxCuts = 3,
00093     kNCCCFidCuts = 4
00094   };

enum NCType::EDataMC
 

Data type designators.

Enumeration values:
kMC 
kData 

Definition at line 190 of file NCType.h.

00190               {
00191     kMC   = 0,
00192     kData = 1
00193   };

enum NCType::EEventType
 

Event type designators.

Enumeration values:
kNC 
kCC 
kUnknown 
kMCTotal 
kTau 

Definition at line 97 of file NCType.h.

Referenced by NCExtrapolation::DrawBestFitRatios(), and NCExtrapolation::DrawBestFitSpectra().

00097                  {
00098     kNC      = 0,
00099     kCC      = 1,
00100     kUnknown = 2,
00101     kMCTotal = 3,
00102     kTau     = 4
00103   };

enum NCType::EExtraction
 

Extraction algorithm designators.

Enumeration values:
kNCCCExtractionTRann 
kNCCCExtractionTO 
kNCCCExtractionAS 
kNCCCExtractionNS 
kNCCCExtractionRO 
kNCCCExtractionKA 
kNCCCExtractionKAD 
kNCCCExtractionRPann 
kNCCCExtractionRPann2 
kNCCCExtractionDP 
kNCCCExtractionADM 
kNCCCExtractionTR 
kNCCCExtractionPL 
kNCCCExtractionTOm 
kNCCCExtractionUnk 
kNumExtractions 

Definition at line 196 of file NCType.h.

Referenced by NCExtrapolationModule::Config().

00196                   {
00197     kNCCCExtractionTRann = 0,
00198     kNCCCExtractionTO    = 1,
00199     kNCCCExtractionAS    = 2,
00200     kNCCCExtractionNS    = 3,
00201     kNCCCExtractionRO    = 4,
00202     kNCCCExtractionKA    = 5,
00203     kNCCCExtractionKAD   = 6,
00204     kNCCCExtractionRPann = 7,
00205     kNCCCExtractionRPann2= 8,
00206     kNCCCExtractionDP    = 9,
00207     kNCCCExtractionADM   = 10,
00208     kNCCCExtractionTR    = 11,
00209     kNCCCExtractionPL    = 12,
00210     kNCCCExtractionTOm   = 13,
00211     kNCCCExtractionUnk   = 14,
00212     kNumExtractions      = 15
00213   };

enum NCType::EFidVol
 

Algorithms to select fiducial volume.

Enumeration values:
kBRFiducialVolume 
kOxFiducialVolume 
kCCFiducialVolume 
kTOFiducialVolume 
kRockMuonFiducialVolume 

Definition at line 52 of file NCType.h.

00052               {
00053     kBRFiducialVolume       = 0,
00054     kOxFiducialVolume       = 1,
00055     kCCFiducialVolume       = 2,
00056     kTOFiducialVolume       = 3,
00057     kRockMuonFiducialVolume = 4
00058   };

enum NCType::EFileType
 

File type designators.

Enumeration values:
kUnknownFile 
kBeamFile 
kTauFile 
kElectronFile 
kMockFile 

Definition at line 106 of file NCType.h.

00106                 {
00107     kUnknownFile  = 0,
00108     kBeamFile     = 1,
00109     kTauFile      = 2,
00110     kElectronFile = 3,
00111     kMockFile     = 4
00112   };

enum NCType::EFinalSelectionAlg
 

Algorithms to make final cuts.

Enumeration values:
kCCFinalSelection 
kNCFinalSelection 

Definition at line 82 of file NCType.h.

00082                          {
00083     kCCFinalSelection = 0,
00084     kNCFinalSelection = 1
00085   };

enum NCType::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 285 of file NCType.h.

Referenced by NC::CoordinateConverter::CoordNDimFromOscPars().

00285                 {
00286     // Neugen parameters
00287     kma_qe       = 0,
00288     kma_res      = 1,
00289     kqel_fa0     = 2,
00290     kqel_eta     = 3,
00291     kres_omega   = 4,
00292     kres_z       = 5,
00293     kma_coh      = 6,
00294     kcoh_r0      = 7,
00295     kcoh_rei     = 8,
00296     kkno_a1      = 9,
00297     kkno_a2      = 10,
00298     kkno_a3      = 11,
00299     kkno_a4      = 12,
00300     kkno_b       = 13,
00301     kkno_r112    = 14,
00302     kkno_r122    = 15,
00303     kkno_r132    = 16,
00304     kkno_r142    = 17,
00305     kkno_r113    = 18,
00306     kkno_r123    = 19,
00307     kkno_r133    = 20,
00308     kkno_r143    = 21,
00309     kkno_r212    = 22,
00310     kkno_r222    = 23,
00311     kkno_r232    = 24,
00312     kkno_r242    = 25,
00313     kkno_r213    = 26,
00314     kkno_r223    = 27,
00315     kkno_r233    = 28,
00316     kkno_r243    = 29,
00317     kDISFACT     = 30,
00318     kCCMA        = 31,
00319     kkno_r112122 = 32,
00320     kkno_r113123 = 33,
00321     kkno_r212222 = 34,
00322     kkno_r213223 = 35,
00323 
00324     kTrackEnergy                 = 36,
00325     kShowerEnergy                = 37,
00326     kFiducialVolume              = 38,
00327     kNormalization               = 39,
00328     kAbsoluteHadronicCalibration = 40,
00329     kShowerEnergyOffset          = 41,
00330     kNCBackground                = 42,
00331     kPIDCut                      = 43,
00332     kRelativeHadronicCalibration = 44,
00333     kCCBackground                = 45,
00334     kLowCompleteness             = 46,
00335 
00336     kSKZP = 47,
00337 
00338     kNCCrossSection = 48,
00339     kNuBarCrossSection = 49,
00340     kNCFarCleanNoise = 50,
00341     kNCFarCleanCR = 51,
00342     kNCNearClean = 52,
00343     kNCCleanRunDiff = 53,
00344     kNCRunDiff = 54,
00345 
00346     kNumSystematicParameters,
00347 
00348     kUMu3Sqr,
00349     kUE3Sqr,
00350     kTheta12,
00351     kTheta13,
00352     kTheta23,
00353     kTheta14,
00354     kTheta24,
00355     kTheta34,
00356     kDelta1,
00357     kDelta2,
00358     kDelta13,
00359     kDeltaMSqr,
00360     kDeltaMSqr12,
00361     kDeltaMSqr31,
00362     kDeltaMSqr32,
00363     kDeltaMSqr41,
00364     kDeltaMSqr43,
00365     kFs,
00366     kAlpha,
00367     kTheta,
00368     kMu,
00369     kTauScale,
00370     kRockDensity,
00371     kNumParameters
00372   };

enum NCType::EGoodEventAlg
 

Algorithms to select good events.

Enumeration values:
kBREventAlgorithm 
kTOEventAlgorithm 
kCCEventAlgorithm 
kUnkEventAlgorithm 
kOxEventAlgorithm 

Definition at line 61 of file NCType.h.

00061                     {
00062     kBREventAlgorithm  = 0,
00063     kTOEventAlgorithm  = 1,
00064     kCCEventAlgorithm  = 2,
00065     kUnkEventAlgorithm = 3,
00066     kOxEventAlgorithm  = 4
00067   };

enum NCType::EGoodSnarlAlg
 

Algorithms to select good snarls.

Enumeration values:
kBRSnarlAlgorithm 
kCCSnarlAlgorithm 

Definition at line 70 of file NCType.h.

00070                     {
00071     kBRSnarlAlgorithm = 0,
00072     kCCSnarlAlgorithm = 1
00073   };

enum NCType::EGoodSpillAlg
 

Algorithms to select good spills.

Enumeration values:
kStandardSpillSelection 
kCCSpillSelection 

Definition at line 76 of file NCType.h.

00076                     {
00077     kStandardSpillSelection = 0,
00078     kCCSpillSelection       = 1
00079   };

enum NCType::ENDCleanAlg
 

Cleaning algorithms for ND.

Enumeration values:
kHighMultClean 
kLowMultClean 
kNoClean 

Definition at line 38 of file NCType.h.

00038                   {
00039     kHighMultClean = 0,
00040     kLowMultClean  = 1,
00041     kNoClean       = 2
00042   };

enum NCType::EOscMode
 

Oscillation mode designators.

Enumeration values:
kNuMuToNuMu 
kNuMuToNuTau 
kNuMuToNuE 
kNuMuToNuS 
kNuEToNuE 

Definition at line 167 of file NCType.h.

00167                {
00168     kNuMuToNuMu  = 0,
00169     kNuMuToNuTau = 1,
00170     kNuMuToNuE   = 2,
00171     kNuMuToNuS   = 3,
00172     kNuEToNuE    = 4
00173   };

enum NCType::EOscModel
 

Oscillation model designators.

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

Definition at line 176 of file NCType.h.

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

enum NCType::ERunType
 

Enumeration values:
kRunAll 
kRunI 
kRunII 
kRunIII 
kMaxRun 

Definition at line 128 of file NCType.h.

Referenced by NCExtrapolationModule::Config().

00128                {
00129     kRunAll = 0,
00130     kRunI = 1,
00131     kRunII = 2,
00132     kRunIII = 3,
00133     kMaxRun = kRunII
00134   };

enum NCType::EStopper
 

Algorithms to select stopping muons.

Enumeration values:
kBRStopper 
kPittStopper 
kCCStopper 

Definition at line 45 of file NCType.h.

00045                {
00046     kBRStopper   = 0,
00047     kPittStopper = 1,
00048     kCCStopper   = 2
00049   };


Function Documentation

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

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

Definition at line 149 of file NCType.cxx.

References BeamType::AsString(), and BeamType::BeamType_t.

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

00150 {
00151   vector<BeamType::BeamType_t> ret;
00152 
00153   TObjArray* useBeams = (TString(str)).Tokenize(",");
00154   for(int i = 0; i <= useBeams->GetLast(); ++i){
00155     TObjString* os = (TObjString*)(useBeams->At(i));
00156     for(int b = 0; b < int(BeamType::kEndOfList); ++b){
00157       BeamType::BeamType_t beam = BeamType::BeamType_t(b);
00158       if(os->GetString() == BeamType::AsString(beam))
00159         ret.push_back(beam);
00160     } // end for b
00161   } // end for i
00162   delete useBeams;
00163 
00164   return ret;
00165 }

void NCType::ConstructBadRuns  ) 
 

Definition at line 110 of file NCType.cxx.

References mBadRuns, and mBadRunsIter.

Referenced by NCExtrapolationModule::NCExtrapolationModule().

00110                              {
00111   vector<int> temp;
00112 
00113   for(unsigned int i=0; i < sizeof(kBadRuns)/sizeof(*kBadRuns); ++i ){
00114     mBadRuns[ kBadRuns[i] ] = temp;
00115   }
00116 
00117   mBadRuns[9805].push_back(17);
00118   mBadRuns[9805].push_back(18);
00119 
00120   mBadRunsIter = mBadRuns.begin();
00121 }

NCType::EFileType NCType::FindFileType ANtpHeaderInfo header  ) 
 

Definition at line 85 of file NCType.cxx.

References ANtpHeaderInfo::run.

Referenced by NCExtrapolationModule::AddEventsToExtrapolations(), and NCExtrapolationModule::AddEventToExtrapolations().

00086 {
00087   //check if the event is from a tau file.  the mc run numbers have the convention
00088   //<ikey><itgt><iflv><S><RRRR>
00089   //<ikey> = 1 near, 2 far
00090   //<itgt> = 1 in detector only, 2 in rock only, 3 detector + rock, 4 in fiducial only
00091   //<iflv> = 0 beam, 1 nue, 3 nutau, 4 numu, nue inverted, 5 far oscillated mock data
00092   //<S> = split set
00093   //<RRRR> = run number
00094 
00095   if(header->run > 21300000 &&
00096      header->run < 21400000) return NCType::kTauFile;
00097 
00098   //dont know what these runs are just now
00099   if(header->run > 21400000 &&
00100      header->run < 21510000) return NCType::kElectronFile;
00101 
00102   if(header->run > 21910000 &&
00103      header->run < 21910004) return NCType::kMockFile;
00104 
00105   return NCType::kBeamFile;
00106 }

NCType::ERunType NCType::FindRunType TString  fileName  ) 
 

Takes a filename and works out what ERunType it is from.

It does this based on the date. MC files are considered to be RunI

Definition at line 53 of file NCType.cxx.

00054 {
00055   // May 2005 - Dec 2005
00056   for(int month = 5; month <= 12; ++month)
00057     if(fileName.Contains(TString::Format("2005-%02d", month)))
00058       return NCType::kRunI;
00059 
00060   // Jan 2006 - Feb 2006
00061   for(int month = 1; month <= 2; ++month)
00062     if(fileName.Contains(TString::Format("2006-%02d", month)))
00063       return NCType::kRunI;
00064 
00065   // May 2006 - Dec 2006
00066   for(int month = 5; month <= 12; ++month)
00067     if(fileName.Contains(TString::Format("2006-%02d", month)))
00068       return NCType::kRunII;
00069 
00070   // Jan 2007 - Aug 2007
00071   for(int month = 1; month <= 8; ++month)
00072     if(fileName.Contains(TString::Format("2007-%02d", month)))
00073       return NCType::kRunII;
00074 
00075   // This is what the old code did
00076   if(fileName.Contains("mc") ||
00077      fileName.Contains("tau") ||
00078      fileName.Contains("electron") || 
00079      fileName.Contains("mock")) return NCType::kRunI;
00080 
00081   assert(0 && "Don't know what run this is");
00082 }

NCType::ERunType NCType::FindRunType ANtpHeaderInfo header  ) 
 

Definition at line 29 of file NCType.cxx.

References ANtpHeaderInfo::dataType, ANtpHeaderInfo::detector, and ANtpHeaderInfo::run.

Referenced by NCExtrapolationModule::AddEventsToExtrapolations(), NCExtrapolationModule::AddEventToExtrapolations(), NCDataQualityModule::CombineDataQualityPlots(), NCExtrapolationModule::FillDataQualityPlotsSpecial(), NCPOTCounter::GetListOfFiles(), and NCPOTCounter::SetPOTValues().

00030 {
00031   //run I corresponds to anything before run 10160 in the near detector and
00032   //35724 in the far detector
00033   if(header->detector == int(Detector::kFar) &&
00034      header->dataType == int(SimFlag::kData)){
00035     // Runs > 21910000 are mock files - defined for now to be run I
00036     if(header->run > 35723 && header->run < 21910000){
00037       return NCType::kRunII;
00038     }
00039   }
00040   else if(header->detector == int(Detector::kNear) &&
00041           header->dataType == int(SimFlag::kData)){
00042     if(header->run > 10159){
00043       return NCType::kRunII;
00044     }
00045   }
00046 
00047   return NCType::kRunI;
00048 }

bool NCType::IsNDRunGood int  ,
int 
 

Definition at line 125 of file NCType.cxx.

References mBadRuns, mBadRunsIter, and run().

Referenced by NCExtrapolationModule::FinalEventCheck(), and NCEventInfo::FinalEventCheck().

00125                                              {
00126 
00127   if( run > (--mBadRuns.end())->first ){ return true;}// run is beyond NCType::kBadRuns[] index
00128   else{
00129 
00130     mBadRunsIter = mBadRuns.find( run );
00131 
00132     if( mBadRunsIter == mBadRuns.end() ){ return true;}// run is not in NCType::kBadRuns[] list
00133     else if( mBadRunsIter->second.size() == 0 ){ return false;}// Whole run is bad
00134     else{
00135 
00136       for(unsigned int i=0; i < mBadRunsIter->second.size(); ++i){
00137         if( subrun == mBadRunsIter->second.at(i) ){ return false;}// subrun is bad
00138       }
00139 
00140       return true;
00141 
00142     }
00143   }
00144 
00145   return true;
00146 }


Variable Documentation

const double NCType::k127 = 1.267 [static]
 

Definition at line 282 of file NCType.h.

const int NCType::kBadRuns[38] [static]
 

Initial value:

 { 7629, 7683, 7697, 7716, 7937, 7942,
                                    7981, 7982, 7988, 8165, 8168, 8169,
                                    8214, 8308, 8385, 8423, 8426, 8645,
                                    9805, 9809, 9831, 9867, 10271, 10896,
                                    11231, 11318, 11386, 11598, 11778, 11782,
                                    11785, 11881, 11893, 11977, 12200, 12540,
                                    12543, 12587}
Establishes the bad runs. If only a set of the subruns are bad, then these need to be added in the NCType::ConstructBadRuns() function.

Definition at line 140 of file NCType.h.

const double NCType::kBaseLineFar = 735. [static]
 

Definition at line 31 of file NCType.h.

const double NCType::kBaseLineNear = 1. [static]
 

Definition at line 32 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 232 of file NCType.h.

const double NCType::kDeltaDeltaMSqr = (kDeltaMSqrEnd-kDeltaMSqrStart)/(1.*kNumDeltaMSqrBins) [static]
 

Definition at line 275 of file NCType.h.

const double NCType::kDeltaMSqrEnd = 4.5 [static]
 

Definition at line 274 of file NCType.h.

const double NCType::kDeltaMSqrStart = 1.5 [static]
 

Definition at line 273 of file NCType.h.

const double NCType::kDeltaTheta23 = (kTheta23End-kTheta23Start)/kNumTheta23Bins [static]
 

Definition at line 280 of file NCType.h.

const double NCType::kDeltaUMu3Sqr = (kUMu3SqrEnd-kUMu3SqrStart)/(1.*kNumUMu3SqrBins) [static]
 

Definition at line 265 of file NCType.h.

const double NCType::kDeltaUS3Sqr = (kUS3SqrEnd-kUS3SqrStart)/(1.*kNumUS3SqrBins) [static]
 

Definition at line 270 of file NCType.h.

const TString NCType::kEfficiencyAndPurityBaseNames[4]
 

Initial value:

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

Definition at line 256 of file NCType.h.

const TString NCType::kExtractionNames[15]
 

Initial value:

 {"TRann.",
                                        "TO.",
                                        "AS.",
                                        "NS.",
                                        "RO.",
                                        "KA.",
                                        "KAD.",
                                        "RPann.",
                                        "RPann2.",
                                        "DP.",
                                        "ADM.",
                                        "TR.",
                                        "PL.",
                                        "TOm.",
                                        "Unk."}

Definition at line 215 of file NCType.h.

const double NCType::kMuMassGeV = 0.105658357
 

muon mass in GeV/c

Definition at line 122 of file NCType.h.

const double NCType::kNDBeamAngle = -0.0575958653
 

Beam is this angle downward at near detector.

Definition at line 114 of file NCType.h.

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

Definition at line 115 of file NCType.h.

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

Definition at line 116 of file NCType.h.

const int NCType::kNumBeamNames = 14 [static]
 

Definition at line 231 of file NCType.h.

const int NCType::kNumDeltaMSqrBins = 300 [static]
 

Definition at line 272 of file NCType.h.

const int NCType::kNumEfficiencyAndPurityBaseNames = 4 [static]
 

Definition at line 255 of file NCType.h.

const int NCType::kNumNeugenParameters = kkno_r213223-kma_qe+1 [static]
 

Definition at line 374 of file NCType.h.

const int NCType::kNumTheta23Bins = 400 [static]
 

Definition at line 277 of file NCType.h.

const int NCType::kNumUMu3SqrBins = 100 [static]
 

Definition at line 262 of file NCType.h.

const int NCType::kNumUS3SqrBins = 100 [static]
 

Definition at line 267 of file NCType.h.

const ParamDef NCType::kParams[kNumSystematicParameters]
 

Definition at line 391 of file NCType.h.

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

const double NCType::kPotMC = 2.5e20 [static]
 

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

Definition at line 35 of file NCType.h.

const TString NCType::kRunNames[kMaxRun+1]
 

Initial value:

 {"RunAll",
                                        "RunI",
                                        "RunII"}

Definition at line 162 of file NCType.h.

const double NCType::kTheta23End = 2*TMath::Pi() [static]
 

Definition at line 279 of file NCType.h.

const double NCType::kTheta23Start = 0 [static]
 

Definition at line 278 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 120 of file NCType.h.

const double NCType::kUMu3SqrEnd = 1. [static]
 

Definition at line 264 of file NCType.h.

const double NCType::kUMu3SqrStart = 1.e-3 [static]
 

Definition at line 263 of file NCType.h.

const double NCType::kUS3SqrEnd = 1. [static]
 

Definition at line 269 of file NCType.h.

const double NCType::kUS3SqrStart = 1.e-3 [static]
 

Definition at line 268 of file NCType.h.


Generated on Mon Feb 16 22:57:32 2009 for loon by doxygen 1.3.5