MCInfo Namespace Reference

Functions

Double_t GetMCPoT (Detector::Detector_t detType, BeamType::BeamType_t beamType, ReleaseType::Release_t mcType)
Int_t GetNoSnarlPerFile (Detector::Detector_t detType, BeamType::BeamType_t beamType, ReleaseType::Release_t mcType, Int_t RunPeriod=0, Int_t runNumber=0)

Variables

static const Double_t kUnknown = -9999.99

Function Documentation

Double_t MCInfo::GetMCPoT ( Detector::Detector_t  detType,
BeamType::BeamType_t  beamType,
ReleaseType::Release_t  mcType 
)

Definition at line 16 of file MCInfo.cxx.

References ReleaseType::IsCarrot(), ReleaseType::IsDaikon(), Detector::kFar, BeamType::kL000z200i, BeamType::kL010z000i, BeamType::kL010z000i_i209, BeamType::kL010z000i_i225, BeamType::kL010z000i_i232, BeamType::kL010z000i_i259, BeamType::kL010z000i_i300, BeamType::kL010z000i_i317, BeamType::kL010z000i_i326, BeamType::kL010z000i_i380, BeamType::kL010z170i, BeamType::kL010z185i, BeamType::kL010z185i_i124, BeamType::kL010z185i_i191, BeamType::kL010z185i_i213, BeamType::kL010z185i_i224, BeamType::kL010z185i_i232, BeamType::kL010z185i_i240, BeamType::kL010z185i_i243, BeamType::kL010z185i_i257, BeamType::kL010z185i_i282, BeamType::kL010z185i_i300, BeamType::kL010z185i_i303, BeamType::kL010z185i_i324, BeamType::kL010z185i_i361, BeamType::kL010z185i_i480, BeamType::kL010z185i_i600, BeamType::kL010z185i_lowi, BeamType::kL010z185i_lowintensity, BeamType::kL010z185i_medi, BeamType::kL010z185i_rev, BeamType::kL010z185i_rev_i200, BeamType::kL010z185i_rev_i277, BeamType::kL010z185i_rev_i306, BeamType::kL010z185i_rev_i312, BeamType::kL010z185i_rev_i314, BeamType::kL010z185i_rev_i348, BeamType::kL010z185i_rev_i349, BeamType::kL010z185i_rev_i353, BeamType::kL010z185i_rev_i410, BeamType::kL010z200i, BeamType::kL050z200i, BeamType::kL100z200i, BeamType::kL150z200i, BeamType::kL200z200i, BeamType::kL250z200i, BeamType::kL250z200i_i100, BeamType::kL250z200i_i114, BeamType::kL250z200i_i130, BeamType::kL250z200i_i152, BeamType::kL250z200i_i165, BeamType::kL250z200i_i194, BeamType::kL250z200i_i232, BeamType::kM000z000i_nova, BeamType::kM000z200i, BeamType::kM000z200i_i090, BeamType::kM000z200i_i100, BeamType::kM000z200i_i240, BeamType::kM000z200i_i250, BeamType::kM000z200i_i370, BeamType::kM000z200i_i417, BeamType::kM000z200i_i471, BeamType::kM000z200i_i490, BeamType::kM000z200i_i500, BeamType::kM000z200i_i750, BeamType::kM000z200i_nova, BeamType::kM000z200i_nova_i090, BeamType::kM000z200i_nova_i490, BeamType::kM000z200i_nova_rev, BeamType::kM000z200i_nova_rev_i490, Detector::kNear, BeamType::kUnknown, and kUnknown.

Referenced by MiniPlotMaker::CountPots(), MicroDSTMaker::ExtractNCCC(), NuBeam::IsGoodSpillAndFillPot(), NueBeamMonModule::Reco(), Anp::FillHeader::Run(), and Trimmer::RunTrimmer().

00018                                                       {
00019     
00020   // Returns (1/10^12) POT/file for FD and (1/10^12) POT/spill for ND
00021   
00022   if( detType == Detector::kFar ){
00023         if( ReleaseType::IsCarrot(mcType) ){
00024             switch (beamType){
00025             case BeamType::kL010z185i: return 2.91e8; 
00026             case BeamType::kUnknown:   return kUnknown; 
00027             default:                   return kUnknown; 
00028             }
00029         }else if( ReleaseType::IsDaikon(mcType) ){
00030             switch (beamType){
00031             case BeamType::kL010z185i: return 6.5e8;  
00032             case BeamType::kL100z200i: return 6.5e8;  
00033             case BeamType::kL250z200i: return 6.5e8;
00034             case BeamType::kL010z185i_rev: return 6.5e8;
00035             case BeamType::kM000z200i_nova: return 6.5e8;
00036             case BeamType::kM000z200i_nova_rev: return 6.5e8;
00037             case BeamType::kM000z000i_nova: return 6.5e8;
00038             case BeamType::kM000z200i: return 6.5e8;
00039             case BeamType::kUnknown:   return kUnknown; 
00040             default:                   return kUnknown; 
00041             }  
00042         } else return kUnknown;  //if(mcType)  
00043     }else if( detType == Detector::kNear ){
00044         if( ReleaseType::IsCarrot(mcType) ){
00045             switch (beamType){
00046             case BeamType::kL000z200i: return kUnknown; 
00047             case BeamType::kL010z185i: return 25.06; 
00048             case BeamType::kL050z200i: return kUnknown; 
00049             case BeamType::kL100z200i: return 10.17; 
00050             case BeamType::kL200z200i: return kUnknown; 
00051             case BeamType::kL250z200i: return 11.14; 
00052             case BeamType::kL010z000i: return 25.00; 
00053             case BeamType::kL010z170i: return 25.05; 
00054             case BeamType::kL010z200i: return 25.23;
00055             case BeamType::kL010z185i_lowintensity: return kUnknown;  
00056             case BeamType::kL150z200i: return kUnknown; 
00057             case BeamType::kUnknown:   return kUnknown; 
00058             default:                   return kUnknown; 
00059             }
00060         }else if( ReleaseType::IsDaikon(mcType) ){
00061             switch (beamType){
00062             case BeamType::kL000z200i: return kUnknown; 
00063             case BeamType::kL010z185i: return 24.20; 
00064             case BeamType::kL050z200i: return kUnknown; 
00065             case BeamType::kL100z200i: return 11.40; 
00066             case BeamType::kL200z200i: return kUnknown; 
00067             case BeamType::kL250z200i: return 11.40; 
00068             case BeamType::kL010z000i: return 24.20; 
00069             case BeamType::kL010z170i: return 24.20; 
00070             case BeamType::kL010z200i: return 24.20; 
00071             case BeamType::kL010z185i_lowintensity: return kUnknown; 
00072             case BeamType::kL010z185i_lowi: return 2.0; 
00073             case BeamType::kL010z185i_medi: return 6.0; 
00074             case BeamType::kL150z200i: return 11.40; 
00075               //
00076             case BeamType::kL010z185i_i124: return 12.4;
00077             case BeamType::kL010z185i_i191: return 19.1;
00078             case BeamType::kL010z185i_i213: return 21.3;
00079             case BeamType::kL010z185i_i224: return 22.4;
00080             case BeamType::kL010z185i_i232: return 23.2;
00081             case BeamType::kL010z185i_i240: return 24.0;
00082             case BeamType::kL010z185i_i243: return 24.3;
00083             case BeamType::kL010z185i_i257: return 25.7;
00084             case BeamType::kL010z185i_i282: return 28.2;
00085             case BeamType::kL010z185i_i300: return 30.0;
00086             case BeamType::kL010z185i_i303: return 30.3;
00087             case BeamType::kL010z185i_i324: return 32.4;
00088             case BeamType::kL010z185i_i361: return 36.1;
00089             case BeamType::kL010z185i_i480: return 48.0;
00090             case BeamType::kL010z185i_i600: return 60.0;
00091               //
00092             case BeamType::kL010z000i_i209: return 20.9;
00093             case BeamType::kL010z000i_i225: return 22.5;
00094             case BeamType::kL010z000i_i232: return 23.2;
00095             case BeamType::kL010z000i_i259: return 25.9;
00096             case BeamType::kL010z000i_i300: return 30.0;
00097             case BeamType::kL010z000i_i317: return 31.7;
00098             case BeamType::kL010z000i_i326: return 32.6;
00099             case BeamType::kL010z000i_i380: return 38.0;  
00100               //
00101             case BeamType::kL250z200i_i100: return 10.0;
00102             case BeamType::kL250z200i_i114: return 11.4;
00103             case BeamType::kL250z200i_i130: return 13.0;
00104             case BeamType::kL250z200i_i152: return 15.2;
00105             case BeamType::kL250z200i_i165: return 16.5;
00106             case BeamType::kL250z200i_i194: return 19.4;
00107             case BeamType::kL250z200i_i232: return 23.2;
00108               //
00109             case BeamType::kL010z185i_rev: return 33.0;
00110             case BeamType::kL010z185i_rev_i200: return 20.0;
00111             case BeamType::kL010z185i_rev_i277: return 27.7;
00112             case BeamType::kL010z185i_rev_i314: return 31.4;
00113             case BeamType::kL010z185i_rev_i349: return 34.9;
00114             case BeamType::kL010z185i_rev_i312: return 31.2;
00115             case BeamType::kL010z185i_rev_i348: return 34.8;
00116             case BeamType::kL010z185i_rev_i306: return 30.6;
00117             case BeamType::kL010z185i_rev_i353: return 35.3;
00118             case BeamType::kL010z185i_rev_i410: return 41.0;
00119 
00120               //
00121               // 49 intensity being commented out as we moved to 25
00122               // This may create POT counting issues later on 
00123               // the order of 3% in ND if care is not taken 
00124               // This should only be an issue for older d5 reco 
00125               // or series 1000 files
00126 
00127             case BeamType::kM000z200i_nova_i490: return 49.0;
00128             case BeamType::kM000z200i_nova_rev_i490: return 49.0;
00129             
00130             case BeamType::kM000z200i_nova: return 25.0;
00131             case BeamType::kM000z200i_nova_rev: return 25.0;
00132             case BeamType::kM000z000i_nova: return 25.0;
00133 
00134             case BeamType::kM000z200i_nova_i090: return 9.0;
00135 
00136             case BeamType::kM000z200i_i090: return 9.0;
00137             case BeamType::kM000z200i_i100: return 10.0;
00138             case BeamType::kM000z200i_i240: return 24.0;
00139             case BeamType::kM000z200i_i250: return 25.0;
00140             case BeamType::kM000z200i_i370: return 37.0;
00141             case BeamType::kM000z200i_i417: return 41.7;
00142             case BeamType::kM000z200i_i471: return 47.1;
00143             case BeamType::kM000z200i_i490: return 49.0;
00144             case BeamType::kM000z200i_i500: return 50.0;
00145             case BeamType::kM000z200i_i750: return 75.0;
00146 
00147               //
00148             case BeamType::kUnknown:   return kUnknown; 
00149             default:                   return kUnknown; 
00150             }
00151         } else return kUnknown;//if(mcType) 
00152     }else return kUnknown; //if(detType) 
00153 }

Int_t MCInfo::GetNoSnarlPerFile ( Detector::Detector_t  detType,
BeamType::BeamType_t  beamType,
ReleaseType::Release_t  mcType,
Int_t  RunPeriod = 0,
Int_t  runNumber = 0 
)

Definition at line 157 of file MCInfo.cxx.

References ReleaseType::IsCarrot(), ReleaseType::IsDaikon(), Detector::kFar, BeamType::kL000z200i, BeamType::kL010z000i, BeamType::kL010z000i_i209, BeamType::kL010z000i_i225, BeamType::kL010z000i_i232, BeamType::kL010z000i_i259, BeamType::kL010z000i_i300, BeamType::kL010z000i_i317, BeamType::kL010z000i_i326, BeamType::kL010z000i_i380, BeamType::kL010z170i, BeamType::kL010z185i, BeamType::kL010z185i_i124, BeamType::kL010z185i_i191, BeamType::kL010z185i_i213, BeamType::kL010z185i_i224, BeamType::kL010z185i_i232, BeamType::kL010z185i_i240, BeamType::kL010z185i_i243, BeamType::kL010z185i_i257, BeamType::kL010z185i_i282, BeamType::kL010z185i_i300, BeamType::kL010z185i_i303, BeamType::kL010z185i_i324, BeamType::kL010z185i_i361, BeamType::kL010z185i_i480, BeamType::kL010z185i_i600, BeamType::kL010z185i_lowi, BeamType::kL010z185i_lowintensity, BeamType::kL010z185i_medi, BeamType::kL010z185i_rev, BeamType::kL010z185i_rev_i200, BeamType::kL010z185i_rev_i277, BeamType::kL010z185i_rev_i306, BeamType::kL010z185i_rev_i312, BeamType::kL010z185i_rev_i314, BeamType::kL010z185i_rev_i348, BeamType::kL010z185i_rev_i349, BeamType::kL010z185i_rev_i353, BeamType::kL010z185i_rev_i410, BeamType::kL010z200i, BeamType::kL050z200i, BeamType::kL100z200i, BeamType::kL150z200i, BeamType::kL200z200i, BeamType::kL250z200i, BeamType::kL250z200i_i100, BeamType::kL250z200i_i114, BeamType::kL250z200i_i130, BeamType::kL250z200i_i152, BeamType::kL250z200i_i165, BeamType::kL250z200i_i194, BeamType::kL250z200i_i232, BeamType::kM000z000i_nova, BeamType::kM000z200i_i100, BeamType::kM000z200i_i240, BeamType::kM000z200i_i250, BeamType::kM000z200i_i370, BeamType::kM000z200i_i417, BeamType::kM000z200i_i471, BeamType::kM000z200i_i490, BeamType::kM000z200i_i500, BeamType::kM000z200i_i750, BeamType::kM000z200i_nova, BeamType::kM000z200i_nova_i090, BeamType::kM000z200i_nova_i490, BeamType::kM000z200i_nova_rev, BeamType::kM000z200i_nova_rev_i490, Detector::kNear, BeamType::kUnknown, and kUnknown.

Referenced by NuBeam::IsGoodSpillAndFillPot().

00161                                                 {
00162    
00163   //Use RunPeriod=0 (default) for D04 and earlier values
00164   //Use RunPeriod=[1,3] for D07 FHC values
00165   //Use RunPeriod=4 for D07 RHC values
00166   //RunPeriod 10 is for run 10 MC, which has a single intensity (361).
00167 
00168 
00169   //Right now only know about  RunPeriod = 0-4 & 10.
00170   //Note that the MINOS+ MC is currently run 0
00171   if (RunPeriod > 99) return static_cast<Int_t>(kUnknown);
00172       
00173   if( detType == Detector::kFar ){
00174     return static_cast<Int_t>(kUnknown);  
00175   }else if( detType == Detector::kNear ){
00176     if( ReleaseType::IsCarrot(mcType) ){
00177       switch (beamType){
00178       case BeamType::kL000z200i: 
00179         return static_cast<Int_t>(kUnknown); 
00180       case BeamType::kL010z185i: return 400; 
00181       case BeamType::kL050z200i: 
00182         return static_cast<Int_t>(kUnknown); 
00183       case BeamType::kL100z200i: return 500; 
00184       case BeamType::kL200z200i: 
00185         return static_cast<Int_t>(kUnknown); 
00186       case BeamType::kL250z200i: return 130; 
00187       case BeamType::kL010z000i: return 400; 
00188       case BeamType::kL010z170i: return 400; 
00189       case BeamType::kL010z200i: return 400; 
00190       case BeamType::kL010z185i_lowintensity:
00191         return static_cast<Int_t>(kUnknown);   
00192       case BeamType::kL150z200i:
00193         return static_cast<Int_t>(kUnknown);  
00194       case BeamType::kUnknown: 
00195         return static_cast<Int_t>(kUnknown);  
00196       default: 
00197         return static_cast<Int_t>(kUnknown);  
00198       }
00199     }else if( ReleaseType::IsDaikon(mcType) ){
00200       switch (beamType){
00201       case BeamType::kL000z200i: 
00202         return static_cast<Int_t>(kUnknown);  
00203       case BeamType::kL010z185i: return 800; 
00204       case BeamType::kL050z200i: 
00205         return static_cast<Int_t>(kUnknown);  
00206       case BeamType::kL100z200i: switch(RunPeriod){ 
00207         case 0: return 1000;
00208         case 1: return 800;
00209         case 2: return static_cast<Int_t>(kUnknown);
00210         case 3: return static_cast<Int_t>(kUnknown); 
00211         case 4: return static_cast<Int_t>(kUnknown); 
00212         case 10: return static_cast<Int_t>(kUnknown);
00213         }  
00214       case BeamType::kL200z200i: 
00215         return static_cast<Int_t>(kUnknown);  
00216       case BeamType::kL250z200i: switch(RunPeriod){ 
00217         case 0: return 1000;
00218         case 1: return 800;
00219         case 2: return 800;
00220         case 3: return static_cast<Int_t>(kUnknown); 
00221         case 4: return static_cast<Int_t>(kUnknown); 
00222         case 10: return static_cast<Int_t>(kUnknown);
00223         }
00224       case BeamType::kL010z000i: return 800; 
00225       case BeamType::kL010z170i: switch(RunPeriod){ 
00226         case 0: return 800;
00227         case 1: return 800;
00228         case 2: return static_cast<Int_t>(kUnknown);
00229         case 3: return static_cast<Int_t>(kUnknown);
00230         case 4: return static_cast<Int_t>(kUnknown); 
00231         case 10: return static_cast<Int_t>(kUnknown);
00232         } 
00233       case BeamType::kL010z200i: switch(RunPeriod){ 
00234         case 0: return 800;
00235         case 1: return 800;
00236         case 2: return static_cast<Int_t>(kUnknown);
00237         case 3: return static_cast<Int_t>(kUnknown);
00238         case 4: return static_cast<Int_t>(kUnknown); 
00239         case 10: return static_cast<Int_t>(kUnknown);
00240         } 
00241       case BeamType::kL010z185i_lowintensity:   
00242         return static_cast<Int_t>(kUnknown);   
00243       case BeamType::kL010z185i_lowi: return 800;
00244       case BeamType::kL010z185i_medi: return 800; 
00245       case BeamType::kL150z200i: switch(RunPeriod){ 
00246         case 0: return 1000;
00247         case 1: return static_cast<Int_t>(kUnknown);
00248         case 2: return 800;
00249         case 3: return static_cast<Int_t>(kUnknown);
00250         case 4: return static_cast<Int_t>(kUnknown); 
00251         case 10: return static_cast<Int_t>(kUnknown);
00252         }
00253 
00254 
00255       
00256 
00257         //Below here I want to add the runNumber case JJW 20110420
00258                   
00259       case BeamType::kL010z185i_i124: switch(RunPeriod){ 
00260         case 0: return 1286;
00261         case 1: switch(runNumber){
00262           case 5000: return 1156;
00263           case 6000: return 1593;
00264           }
00265         case 2: switch(runNumber){
00266           case 5000: return 1153;
00267           case 6000: return 1638;
00268           }
00269         case 3: switch(runNumber){
00270           case 1000: return 1457;
00271           case 5000: return 1400; 
00272           case 6000: return 1589;
00273           case 7000: return 1400;
00274           }
00275         case 4: return static_cast<Int_t>(kUnknown); 
00276         case 10: return static_cast<Int_t>(kUnknown);
00277         }
00278       case BeamType::kL010z185i_i191: switch(RunPeriod){ 
00279         case 0: return 951;
00280         case 1: switch(runNumber){
00281           case 5000: return 918;
00282           case 6000: return 1012;
00283           }
00284         case 2: switch(runNumber){  
00285           case 5000: return 855;
00286           case 6000: return 1042;
00287           }
00288         case 3: switch(runNumber){
00289           case 1000: return 1059;
00290           case 5000: return 858; 
00291           case 6000: return 1021;
00292           case 7000: return 858;
00293           } 
00294         case 4: return static_cast<Int_t>(kUnknown); 
00295         case 10: return static_cast<Int_t>(kUnknown);
00296         }
00297       case BeamType::kL010z185i_i213: switch(RunPeriod){ 
00298         case 0: return 784;
00299         case 1: switch(runNumber){ 
00300           case 5000: return 905;
00301           case 6000: return 917;
00302           }
00303         case 2: switch(runNumber){ 
00304           case 5000: return 904;
00305           case 6000: return 907;
00306           }
00307         case 3: switch(runNumber){
00308           case 1000: return 902;
00309           case 5000: return 966; 
00310           case 6000: return 902;
00311           case 7000: return 966;
00312           } 
00313         case 4: return static_cast<Int_t>(kUnknown); 
00314         case 10: return static_cast<Int_t>(kUnknown);
00315         }
00316       case BeamType::kL010z185i_i224: switch(RunPeriod){ 
00317         case 0: return 782;
00318         case 1: switch(runNumber){
00319           case 5000: return 785;
00320           case 6000: return 865;
00321           }
00322         case 2: switch(runNumber){
00323           case 5000: return 731;
00324           case 6000: return 866;
00325           }
00326         case 3: switch(runNumber){
00327           case 1000: return 907;
00328           case 5000: return 418; 
00329           case 6000: return 907;
00330           case 7000: return 418;
00331           }  
00332         case 4: return static_cast<Int_t>(kUnknown); 
00333         case 10: return static_cast<Int_t>(kUnknown);
00334         }
00335       case BeamType::kL010z185i_i232: switch(RunPeriod){ 
00336         case 0: return 800;
00337         case 1: switch(runNumber){ 
00338           case 5000: return 635;
00339           case 6000: return 875;
00340           }
00341         case 2: switch(runNumber){
00342           case 5000: return 707;
00343           case 6000: return 846;  
00344           }
00345         case 3: switch(runNumber){
00346           case 1000: return 788;
00347           case 5000: return 400; 
00348           case 6000: return 788;
00349           case 7000: return 400;
00350           }   
00351         case 4: return static_cast<Int_t>(kUnknown); 
00352         case 10: return static_cast<Int_t>(kUnknown);
00353         }
00354 
00355 
00356       case BeamType::kL010z185i_i240:switch(RunPeriod){ 
00357         case 0: return 846;
00358         case 1: return static_cast<Int_t>(kUnknown);
00359         case 2: return static_cast<Int_t>(kUnknown);
00360         case 3: switch(runNumber){
00361           case 9000: return 846;
00362           }
00363         case 4: return static_cast<Int_t>(kUnknown); 
00364         case 10: return static_cast<Int_t>(kUnknown);
00365         }
00366 
00367       case BeamType::kL010z185i_i243: switch(RunPeriod){ 
00368         case 0: return 771;
00369         case 1: switch(runNumber){ 
00370           case 5000: return 611;
00371           case 6000: return 701;
00372           }
00373         case 2: switch(runNumber){ 
00374           case 5000: return 811;
00375           case 6000: return 806;
00376           }
00377         case 3: switch(runNumber){
00378           case 1000: return 712;
00379           case 5000: return 778; 
00380           case 6000: return 777;
00381           case 7000: return 778;
00382           }     
00383         case 4: return static_cast<Int_t>(kUnknown); 
00384         case 10: return static_cast<Int_t>(kUnknown);
00385         }
00386       case BeamType::kL010z185i_i257: switch(RunPeriod){ 
00387         case 0: return 760;
00388         case 1: switch(runNumber){
00389           case 5000: return 736;
00390           case 6000: return 761;
00391           }
00392         case 2:switch(runNumber){
00393           case 5000: return 630;
00394           case 6000: return 768;
00395           }
00396         case 3: switch(runNumber){
00397           case 1000: return 745;
00398           case 5000: return 731; 
00399           case 6000: return 759;
00400           case 7000: return 731;
00401           } 
00402         case 4: return static_cast<Int_t>(kUnknown); 
00403         case 10: return static_cast<Int_t>(kUnknown);
00404         }
00405       case BeamType::kL010z185i_i282: switch(RunPeriod){ 
00406         case 0: return 635;
00407         case 1:switch(runNumber){ 
00408           case 5000: return 726;
00409           case 6000: return 714;
00410           }
00411         case 2:switch(runNumber){
00412           case 5000: return 457;
00413           case 6000: return 709;
00414           }
00415         case 3: switch(runNumber){
00416           case 1000: return 696;
00417           case 5000: return 600; 
00418           case 6000: return 687;
00419           case 7000: return 600;
00420           }  
00421         case 4: return static_cast<Int_t>(kUnknown); 
00422         case 10: return static_cast<Int_t>(kUnknown);
00423         }
00424 
00425       case BeamType::kL010z185i_i300:switch(RunPeriod){ 
00426         case 0: return 677;
00427         case 1: return static_cast<Int_t>(kUnknown);
00428         case 2: return static_cast<Int_t>(kUnknown);
00429         case 3: switch(runNumber){
00430           case 9000: return 677;
00431           }
00432         case 4: return static_cast<Int_t>(kUnknown); 
00433         case 10: return static_cast<Int_t>(kUnknown);
00434         }
00435 
00436 
00437 
00438 
00439       case BeamType::kL010z185i_i303:switch(RunPeriod){ 
00440         case 0: return 661;
00441         case 1: return static_cast<Int_t>(kUnknown);
00442         case 2: switch(runNumber){
00443           case 5000: return 674;
00444           case 6000: return 638;
00445           }
00446         case 3: switch(runNumber){
00447           case 1000: return 638;
00448           case 5000: return 567; 
00449           case 6000: return 643;
00450           case 7000: return 567;
00451           }  
00452         case 4: return static_cast<Int_t>(kUnknown); 
00453         case 10: return static_cast<Int_t>(kUnknown);
00454         }
00455       case BeamType::kL010z185i_i324:switch(RunPeriod){ 
00456         case 0: return 627;
00457         case 1: return static_cast<Int_t>(kUnknown);
00458         case 2: switch(runNumber){
00459           case 5000: return 494;
00460           case 6000: return 602;
00461           }
00462         case 3: switch(runNumber){
00463           case 1000: return 618;
00464           case 5000: return 559; 
00465           case 6000: return 601;
00466           case 7000: return 559;
00467           }  
00468         case 4: return static_cast<Int_t>(kUnknown); 
00469         case 10: return static_cast<Int_t>(kUnknown);
00470         }
00471       case BeamType::kL010z185i_i361:switch(RunPeriod){
00472         case 0: return static_cast<Int_t>(kUnknown);
00473         case 1: return static_cast<Int_t>(kUnknown);
00474         case 2: return static_cast<Int_t>(kUnknown);
00475         case 3: return static_cast<Int_t>(kUnknown);
00476         case 4: return static_cast<Int_t>(kUnknown);
00477         case 10: return 562;
00478         }
00479 
00480 
00481 
00482       case BeamType::kL010z185i_i480:switch(RunPeriod){ 
00483         case 0: return 423;
00484         case 1: return static_cast<Int_t>(kUnknown);
00485         case 2: return static_cast<Int_t>(kUnknown);
00486         case 3: switch(runNumber){
00487           case 9000: return 423;
00488           }
00489         case 4: return static_cast<Int_t>(kUnknown); 
00490         case 10: return static_cast<Int_t>(kUnknown);
00491         }
00492 
00493       case BeamType::kL010z185i_i600:switch(RunPeriod){ 
00494         case 0: return 338;
00495         case 1: return static_cast<Int_t>(kUnknown);
00496         case 2: return static_cast<Int_t>(kUnknown);
00497         case 3: switch(runNumber){
00498           case 9000: return 338;
00499           }
00500         case 4: return static_cast<Int_t>(kUnknown); 
00501         case 10: return static_cast<Int_t>(kUnknown);
00502         }
00503 
00504 
00505 
00506         //JJW 20110420 End of edits to add runnumber in
00507 
00508 
00509 
00510 
00511 
00512 
00513               //
00514       case BeamType::kL010z000i_i209: switch(RunPeriod){ 
00515         case 0: return 853;
00516         case 1: return 945;
00517         case 2: return 694;
00518         case 3: return static_cast<Int_t>(kUnknown);
00519         case 4: return static_cast<Int_t>(kUnknown); 
00520         case 10: return static_cast<Int_t>(kUnknown);
00521         }
00522       case BeamType::kL010z000i_i225: switch(RunPeriod){ 
00523         case 0: return 884;
00524         case 1: return 883;
00525         case 2: return 662;
00526         case 3: return static_cast<Int_t>(kUnknown);
00527         case 4: return static_cast<Int_t>(kUnknown); 
00528         case 10: return static_cast<Int_t>(kUnknown);
00529         }
00530       case BeamType::kL010z000i_i232: switch(RunPeriod){ 
00531         case 0: return 809;
00532         case 1: return 538;
00533         case 2: return 856;
00534         case 3: return static_cast<Int_t>(kUnknown);
00535         case 4: return static_cast<Int_t>(kUnknown); 
00536         case 10: return static_cast<Int_t>(kUnknown);
00537         }
00538       case BeamType::kL010z000i_i259:switch(RunPeriod){ 
00539         case 0: return 664;
00540         case 1: return 722;
00541         case 2: return 191;
00542         case 3: return static_cast<Int_t>(kUnknown);
00543         case 4: return static_cast<Int_t>(kUnknown); 
00544         case 10: return static_cast<Int_t>(kUnknown);
00545         }
00546       case BeamType::kL010z000i_i300: switch(RunPeriod){ 
00547         case 0: return 640;
00548         case 1: return static_cast<Int_t>(kUnknown);
00549         case 2: return 616;
00550         case 3: return 639;
00551         case 4: return static_cast<Int_t>(kUnknown); 
00552         case 10: return static_cast<Int_t>(kUnknown);
00553         }
00554       case BeamType::kL010z000i_i317: switch(RunPeriod){ 
00555         case 0: return 596;
00556         case 1: return static_cast<Int_t>(kUnknown);
00557         case 2: return static_cast<Int_t>(kUnknown);
00558         case 3: return 628;
00559         case 4: return static_cast<Int_t>(kUnknown); 
00560         case 10: return static_cast<Int_t>(kUnknown);
00561         }
00562       case BeamType::kL010z000i_i326:switch(RunPeriod){ 
00563         case 0: return 604;
00564         case 1: return static_cast<Int_t>(kUnknown);
00565         case 2: return static_cast<Int_t>(kUnknown);
00566         case 3: return 603;
00567         case 4: return static_cast<Int_t>(kUnknown); 
00568         case 10: return static_cast<Int_t>(kUnknown);
00569         }
00570       case BeamType::kL010z000i_i380: switch(RunPeriod){ 
00571         case 0: return 487;
00572         case 1: return static_cast<Int_t>(kUnknown);
00573         case 2: return static_cast<Int_t>(kUnknown);
00574         case 3: return 481;
00575         case 4: return static_cast<Int_t>(kUnknown); 
00576         case 10: return static_cast<Int_t>(kUnknown);
00577         }
00578         //
00579       case BeamType::kL250z200i_i100:switch(RunPeriod){ 
00580         case 0: return 1204;
00581         case 1: return static_cast<Int_t>(kUnknown);
00582         case 2: return static_cast<Int_t>(kUnknown);
00583         case 3: return static_cast<Int_t>(kUnknown);
00584         case 4: return static_cast<Int_t>(kUnknown); 
00585         case 10: return static_cast<Int_t>(kUnknown);
00586         }
00587       case BeamType::kL250z200i_i114: switch(RunPeriod){ 
00588         case 0: return 1017;
00589         case 1: return static_cast<Int_t>(kUnknown);
00590         case 2: return static_cast<Int_t>(kUnknown);
00591         case 3: return static_cast<Int_t>(kUnknown);
00592         case 4: return static_cast<Int_t>(kUnknown); 
00593         case 10: return static_cast<Int_t>(kUnknown);
00594         }
00595       case BeamType::kL250z200i_i130: switch(RunPeriod){ 
00596         case 0: return 937;
00597         case 1: return static_cast<Int_t>(kUnknown);
00598         case 2: return static_cast<Int_t>(kUnknown);
00599         case 3: return static_cast<Int_t>(kUnknown);
00600         case 4: return static_cast<Int_t>(kUnknown); 
00601         case 10: return static_cast<Int_t>(kUnknown);
00602         }
00603       case BeamType::kL250z200i_i152: switch(RunPeriod){ 
00604         case 0: return 800;
00605         case 1: return static_cast<Int_t>(kUnknown);
00606         case 2: return static_cast<Int_t>(kUnknown);
00607         case 3: return static_cast<Int_t>(kUnknown);
00608         case 4: return static_cast<Int_t>(kUnknown); 
00609         case 10: return static_cast<Int_t>(kUnknown);
00610         }
00611       case BeamType::kL250z200i_i165: switch(RunPeriod){ 
00612         case 0: return 703;
00613         case 1: return static_cast<Int_t>(kUnknown);
00614         case 2: return static_cast<Int_t>(kUnknown);
00615         case 3: return static_cast<Int_t>(kUnknown);
00616         case 4: return static_cast<Int_t>(kUnknown); 
00617         case 10: return static_cast<Int_t>(kUnknown);
00618         }
00619       case BeamType::kL250z200i_i194: switch(RunPeriod){ 
00620         case 0: return 599;
00621         case 1: return static_cast<Int_t>(kUnknown);
00622         case 2: return static_cast<Int_t>(kUnknown);
00623         case 3: return static_cast<Int_t>(kUnknown);
00624         case 4: return static_cast<Int_t>(kUnknown); 
00625         case 10: return static_cast<Int_t>(kUnknown);
00626         }
00627       case BeamType::kL250z200i_i232: switch(RunPeriod){ 
00628         case 0: return 409;
00629         case 1: return static_cast<Int_t>(kUnknown);
00630         case 2: return static_cast<Int_t>(kUnknown);
00631         case 3: return static_cast<Int_t>(kUnknown);
00632         case 4: return static_cast<Int_t>(kUnknown); 
00633         case 10: return static_cast<Int_t>(kUnknown);
00634         }
00635         //
00636       case BeamType::kL010z185i_rev: switch(RunPeriod){ 
00637         case 0: return 586;
00638         case 1: return static_cast<Int_t>(kUnknown);
00639         case 2: return static_cast<Int_t>(kUnknown);
00640         case 3: return static_cast<Int_t>(kUnknown);
00641         case 4: return 600; 
00642         case 10: return static_cast<Int_t>(kUnknown);
00643         }
00644       case BeamType::kL010z185i_rev_i200: return 1004;
00645       case BeamType::kL010z185i_rev_i277: return 707;
00646       case BeamType::kL010z185i_rev_i314: return 624;
00647       case BeamType::kL010z185i_rev_i349: return 575;
00648       case BeamType::kL010z185i_rev_i312: return 592;
00649       case BeamType::kL010z185i_rev_i348: return 577;
00650       case BeamType::kL010z185i_rev_i306: return 656;
00651       case BeamType::kL010z185i_rev_i353: return 541;
00652       case BeamType::kL010z185i_rev_i410: return 490;
00653        
00654         //
00655      
00656 
00657         // Change in intensity 49->25 yielded change in snarls
00658         //  Only d5 reco might be affected by this
00659       case BeamType::kM000z200i_nova_i490: return 410;
00660       case BeamType::kM000z200i_nova_rev_i490: return 410;
00661 
00662       case BeamType::kM000z200i_nova: return 780;
00663       case BeamType::kM000z200i_nova_rev: return 780;
00664  
00665       case BeamType::kM000z000i_nova: return 754;
00666 
00667       case BeamType::kM000z200i_nova_i090: return 2150;
00668 
00669         //new high intensity mn files
00670       case BeamType::kM000z200i_i490: return 400;
00671 
00672         //Intensity study beam types
00673       case BeamType::kM000z200i_i100: return 1961;
00674       case BeamType::kM000z200i_i250: return 784;
00675       case BeamType::kM000z200i_i370: return 530;
00676       case BeamType::kM000z200i_i500: return 392;
00677       case BeamType::kM000z200i_i750: return 261; 
00678 
00679         //The real damn beam types
00680         //Note, we are now using snarl intensity to mimic avg intensity per batch
00681       case BeamType::kM000z200i_i240: switch(RunPeriod){
00682         case 11: return 817;
00683         case 12: return 817;
00684         case 13: return static_cast<Int_t>(kUnknown);
00685         }
00686       case BeamType::kM000z200i_i417: return 470;
00687       case BeamType::kM000z200i_i471: return 416;
00688 
00689       case BeamType::kUnknown:   
00690         return static_cast<Int_t>(kUnknown);   
00691       default:                   
00692         return static_cast<Int_t>(kUnknown);   
00693       }//End the massive switch on beamType
00694     } else                 
00695       return static_cast<Int_t>(kUnknown);//if(mcType) 
00696   }else                 
00697     return static_cast<Int_t>(kUnknown);//if(detType) 
00698 }


Variable Documentation

const Double_t MCInfo::kUnknown = -9999.99 [static]

Definition at line 28 of file MCInfo.h.

Referenced by GetMCPoT(), and GetNoSnarlPerFile().


Generated on 3 Oct 2018 for loon by  doxygen 1.6.1