BeamType Namespace Reference

Typedefs

typedef enum BeamType::EBeamType BeamType_t

Enumerations

enum  EBeamType {
  kUnknown, kInverseE, kL000z200i, kL010z185i,
  kL050z200i, kL100z200i, kL200z200i, kL250z200i,
  kUser, kL010z000i, kL010z170i, kL010z200i,
  kL010z185i_lowintensity, kL010z185i_lowi, kL010z185i_medi, kL150z200i,
  kL010z185i_i124, kL010z185i_i191, kL010z185i_i213, kL010z185i_i224,
  kL010z185i_i232, kL010z185i_i243, kL010z185i_i257, kL010z185i_i282,
  kL010z185i_i303, kL010z185i_i324, kL010z000i_i209, kL010z000i_i225,
  kL010z000i_i232, kL010z000i_i259, kL010z000i_i300, kL010z000i_i317,
  kL010z000i_i326, kL010z000i_i380, kL250z200i_i100, kL250z200i_i114,
  kL250z200i_i130, kL250z200i_i152, kL250z200i_i165, kL250z200i_i194,
  kL250z200i_i232, kL010z185i_rev, kL100z000i, kL250z000i,
  kM000z200i_nova, kM000z200i_nova_rev, kL010z185i_i361, kM000z000i_nova,
  kL010z185i_rev_i277, kL010z185i_rev_i314, kL010z185i_rev_i349, kL010z185i_rev_i312,
  kL010z185i_rev_i348, kL010z185i_rev_i306, kL010z185i_rev_i353, kM000z200i_nova_i090,
  kM000z200i_nova_i490, kM000z200i_nova_rev_i490, kM000z200i_i090, kM000z200i_i250,
  kM000z200i_i490, kL010z185i_i300, kL010z185i_i600, kL010z185i_i240,
  kL010z185i_i480, kM000z200i_i100, kM000z200i_i370, kM000z200i_i500,
  kM000z200i_i750, kM000z200i, kM000z200i_i240, kM000z200i_i471,
  kL010z185i_rev_i200, kL010z185i_rev_i410, kM000z200i_i417, kM000z200i_nova_R13,
  kEndOfList, kLE = kL000z200i, k010 = kL010z185i, k050 = kL050z200i,
  k100 = kL100z200i, k200 = kL200z200i, k250 = kL250z200i, kME = k100,
  kHE = k250
}

Functions

const Char_t * AsString (BeamType_t b)
const Char_t * AsTag (BeamType_t b)
BeamType::BeamType_t TagToEnum (const Char_t *s)
BeamType::BeamType_t FromBeamMon (unsigned int i)
BeamType::BeamType_t FromZarko (unsigned int izarko)
Int_t ToZarko (BeamType::BeamType_t)

Typedef Documentation


Enumeration Type Documentation

Enumerator:
kUnknown 
kInverseE 
kL000z200i 
kL010z185i 
kL050z200i 
kL100z200i 
kL200z200i 
kL250z200i 
kUser 
kL010z000i 
kL010z170i 
kL010z200i 
kL010z185i_lowintensity 
kL010z185i_lowi 
kL010z185i_medi 
kL150z200i 
kL010z185i_i124 
kL010z185i_i191 
kL010z185i_i213 
kL010z185i_i224 
kL010z185i_i232 
kL010z185i_i243 
kL010z185i_i257 
kL010z185i_i282 
kL010z185i_i303 
kL010z185i_i324 
kL010z000i_i209 
kL010z000i_i225 
kL010z000i_i232 
kL010z000i_i259 
kL010z000i_i300 
kL010z000i_i317 
kL010z000i_i326 
kL010z000i_i380 
kL250z200i_i100 
kL250z200i_i114 
kL250z200i_i130 
kL250z200i_i152 
kL250z200i_i165 
kL250z200i_i194 
kL250z200i_i232 
kL010z185i_rev 
kL100z000i 
kL250z000i 
kM000z200i_nova 
kM000z200i_nova_rev 
kL010z185i_i361 
kM000z000i_nova 
kL010z185i_rev_i277 
kL010z185i_rev_i314 
kL010z185i_rev_i349 
kL010z185i_rev_i312 
kL010z185i_rev_i348 
kL010z185i_rev_i306 
kL010z185i_rev_i353 
kM000z200i_nova_i090 
kM000z200i_nova_i490 
kM000z200i_nova_rev_i490 
kM000z200i_i090 
kM000z200i_i250 
kM000z200i_i490 
kL010z185i_i300 
kL010z185i_i600 
kL010z185i_i240 
kL010z185i_i480 
kM000z200i_i100 
kM000z200i_i370 
kM000z200i_i500 
kM000z200i_i750 
kM000z200i 
kM000z200i_i240 
kM000z200i_i471 
kL010z185i_rev_i200 
kL010z185i_rev_i410 
kM000z200i_i417 
kM000z200i_nova_R13 
kEndOfList 
kLE 
k010 
k050 
k100 
k200 
k250 
kME 
kHE 

Definition at line 37 of file BeamType.h.

00037                          {
00038       kUnknown,
00039       kInverseE,  // for 1/E beam reweighting
00040 
00041       // normal connonical form is k[h][zzz]z[iii]i
00042       // where [h]   is horn configuration:  L, M, H
00043       //       [zzz] is target position (pull back in cm)
00044       //       [iii] is nominal current (in kA)
00045 
00046       kL000z200i, // true LE (data has a few POTs before target broke)
00047       kL010z185i, // normal "LE"-like running condition (pLE)
00048       kL050z200i,
00049       kL100z200i, // pseudo-medium (pME)
00050       kL200z200i,
00051       kL250z200i, // pseudo-high (pHE)
00052       kUser,
00053       kL010z000i, // "horns off"
00054       kL010z170i, // pLE low current test run
00055       kL010z200i, // pLE high current test run
00056       kL010z185i_lowintensity,
00057       kL010z185i_lowi,
00058       kL010z185i_medi,
00059       kL150z200i, // pseudo-mediumhigh (pMHE)
00060 
00061       // HornOn, discrete intensity (10^11 POTs) MC
00062       kL010z185i_i124,
00063       kL010z185i_i191,
00064       kL010z185i_i213,
00065       kL010z185i_i224,
00066       kL010z185i_i232,
00067       kL010z185i_i243,
00068       kL010z185i_i257,
00069       kL010z185i_i282,
00070       kL010z185i_i303,
00071       kL010z185i_i324,
00072                             
00073       //HornOff, discrete intensity (10^11 POTs) MC
00074       kL010z000i_i209,
00075       kL010z000i_i225,
00076       kL010z000i_i232,
00077       kL010z000i_i259,
00078       kL010z000i_i300,
00079       kL010z000i_i317,
00080       kL010z000i_i326,
00081       kL010z000i_i380,
00082 
00083                             
00084       //pHE, discrete intensity (10^11 POTs) MC
00085       kL250z200i_i100,
00086       kL250z200i_i114,
00087       kL250z200i_i130,
00088       kL250z200i_i152,
00089       kL250z200i_i165,
00090       kL250z200i_i194,
00091       kL250z200i_i232,
00092 
00093       //Reverse Horn Current
00094       kL010z185i_rev,
00095 
00096       //HornOff, pME and pHE
00097       kL100z000i,
00098       kL250z000i,
00099 
00100       //MINOS+ beam types (NOvA beam)
00101       kM000z200i_nova,
00102       kM000z200i_nova_rev,
00103 
00104       kL010z185i_i361,
00105 
00106       kM000z000i_nova,
00107 
00108       kL010z185i_rev_i277,
00109       kL010z185i_rev_i314,
00110       kL010z185i_rev_i349,
00111       kL010z185i_rev_i312,
00112       kL010z185i_rev_i348,
00113       kL010z185i_rev_i306,
00114       kL010z185i_rev_i353,
00115 
00116       kM000z200i_nova_i090,
00117       kM000z200i_nova_i490,
00118       kM000z200i_nova_rev_i490,
00119 
00120       //MN beamtypes for run handling, not nova tag
00121       kM000z200i_i090,
00122       kM000z200i_i250,
00123       kM000z200i_i490,
00124 
00125 
00126       //MINOS bogus types for intensity studies
00127       kL010z185i_i300,
00128       kL010z185i_i600,
00129       kL010z185i_i240,
00130       kL010z185i_i480,
00131 
00132       //MINOS+ types for intensity studies
00133       kM000z200i_i100,
00134       kM000z200i_i370,
00135       kM000z200i_i500,
00136       kM000z200i_i750,
00137 
00138       //MINOS+ corrected types
00139       kM000z200i,
00140       kM000z200i_i240,
00141       kM000z200i_i471,
00142 
00143       //MINOS RHC Intensity Study
00144       kL010z185i_rev_i200,
00145       kL010z185i_rev_i410,
00146 
00147       //Additional MINOS+ corrected types
00148       kM000z200i_i417,
00149 
00150       // specific beam type for beam fits for systematic error purposes for run13
00151       kM000z200i_nova_R13,
00152 
00153       // (new values go before this)
00154       kEndOfList,
00155 
00156       // retain old (obsolete) forms
00157       kLE  = kL000z200i,
00158       k010 = kL010z185i,
00159       k050 = kL050z200i,
00160       k100 = kL100z200i,
00161       k200 = kL200z200i,
00162       k250 = kL250z200i,
00163       kME  = k100,  // obsolete (ambiguiously used for pME vs. true-ME)
00164       kHE  = k250   // obsolete (ambiguiously used for pHE vs. true-HE)
00165 
00166   } BeamType_t;


Function Documentation

const Char_t * BeamType::AsString ( BeamType::BeamType_t  b  ) 

Definition at line 25 of file BeamType.cxx.

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

Referenced by NCType::BeamListFromString(), MadDpID::ChoosePDFs(), NuFluxHelper::MakeHelperHistos(), Zbeam::MakeHistogram(), Anp::FillHeader::Run(), set_beamtype(), and set_output().

00025                                                      {
00026   // return char string in cannonical offline form
00027   switch (b) {
00028   case kL000z200i: return "L000z200i";
00029   case kL010z185i: return "L010z185i";
00030   case kL050z200i: return "L050z200i";
00031   case kL100z200i: return "L100z200i";
00032   case kL200z200i: return "L200z200i";
00033   case kL250z200i: return "L250z200i";
00034   case kL010z000i: return "L010z000i";
00035   case kL010z170i: return "L010z170i";
00036   case kL010z200i: return "L010z200i";
00037   case kL010z185i_lowintensity: return "L010z185i_lowint";
00038   case kL010z185i_lowi: return "L010z185i_lowi";
00039   case kL010z185i_medi: return "L010z185i_medi";
00040   case kL150z200i: return "L150z200i";
00041     //
00042   case kL010z185i_i124: return "L010z185i_i124";
00043   case kL010z185i_i191: return "L010z185i_i191";
00044   case kL010z185i_i213: return "L010z185i_i213";
00045   case kL010z185i_i224: return "L010z185i_i224";
00046   case kL010z185i_i232: return "L010z185i_i232";
00047   case kL010z185i_i240: return "L010z185i_i240";
00048   case kL010z185i_i243: return "L010z185i_i243";
00049   case kL010z185i_i257: return "L010z185i_i257";
00050   case kL010z185i_i282: return "L010z185i_i282";
00051   case kL010z185i_i300: return "L010z185i_i300";
00052   case kL010z185i_i303: return "L010z185i_i303";
00053   case kL010z185i_i324: return "L010z185i_i324";
00054   case kL010z185i_i361: return "L010z185i_i361";
00055   case kL010z185i_i480: return "L010z185i_i480";
00056   case kL010z185i_i600: return "L010z185i_i600";
00057     //
00058   case kL010z000i_i209: return "L010z000i_i209";
00059   case kL010z000i_i225: return "L010z000i_i225";
00060   case kL010z000i_i232: return "L010z000i_i232";
00061   case kL010z000i_i259: return "L010z000i_i259";
00062   case kL010z000i_i300: return "L010z000i_i300";
00063   case kL010z000i_i317: return "L010z000i_i317";
00064   case kL010z000i_i326: return "L010z000i_i326";
00065   case kL010z000i_i380: return "L010z000i_i380";
00066     //
00067   case kL250z200i_i100: return "L250z200i_i100";
00068   case kL250z200i_i114: return "L250z200i_i114";
00069   case kL250z200i_i130: return "L250z200i_i130";
00070   case kL250z200i_i152: return "L250z200i_i152";
00071   case kL250z200i_i165: return "L250z200i_i165";
00072   case kL250z200i_i194: return "L250z200i_i194";
00073   case kL250z200i_i232: return "L250z200i_i232";
00074     //
00075   case kL010z185i_rev:      return "L010z185i_rev";
00076   case kL010z185i_rev_i200: return "L010z185i_rev_i200";//RHC Intensity Study
00077   case kL010z185i_rev_i277: return "L010z185i_rev_i277";
00078   case kL010z185i_rev_i314: return "L010z185i_rev_i314";
00079   case kL010z185i_rev_i349: return "L010z185i_rev_i349";//R4 Run4 sets
00080   case kL010z185i_rev_i312: return "L010z185i_rev_i312";
00081   case kL010z185i_rev_i348: return "L010z185i_rev_i348";//R4 Run7 sets
00082   case kL010z185i_rev_i306: return "L010z185i_rev_i306";
00083   case kL010z185i_rev_i353: return "L010z185i_rev_i353";//R4 Run9 sets
00084   case kL010z185i_rev_i410: return "L010z185i_rev_i410";//RHC Intensity Study
00085 
00086     //
00087   case kL100z000i: return "L100z000i";
00088   case kL250z000i: return "L250z000i";
00089     //
00090   case kM000z200i_nova: return "M000z200i_nova";
00091   case kM000z200i_nova_rev: return "M000z200i_nova_rev";
00092   case kM000z000i_nova: return "M000z000i_nova";  //Nova era Horn-off (Dec 2013)
00093  
00094   case kM000z200i_nova_i090: return "M000z200i_nova_i090"; //low intensity
00095   case kM000z200i_nova_i490: return "M000z200i_nova_i490"; //high intensity
00096 
00097   case kM000z200i_i090: return "M000z200i_i090"; //low intensity
00098   case kM000z200i_i250: return "M000z200i_i250"; //std intensity
00099   case kM000z200i_i490: return "M000z200i_i490"; //high intensity
00100 
00101   case kM000z200i_i100: return "M000z200i_i100"; //study intensity
00102   case kM000z200i_i370: return "M000z200i_i370";  //study intensity near snarl avg
00103   case kM000z200i_i500: return "M000z200i_i500"; //study intensity
00104   case kM000z200i_i750: return "M000z200i_i750"; //study intensity
00105 
00106   case kM000z200i_i240: return "M000z200i_i240"; //RP XI corrected intensity 
00107                                                  
00108   case kM000z200i_i417: return "M000z200i_i417"; //RP XII corrected slipstk intensity (4.58%)
00109   case kM000z200i_i471: return "M000z200i_i471"; //RP XII corrected slipstk intensity
00110 
00111   case kM000z200i: return "M000z200i"; // lets get rid of that nova tag once and for all
00112 
00113   case kM000z200i_nova_R13: return "M000z200i_nova_R13";
00114 
00115     //
00116     //case kLE:       return "LE beam"; break;
00117     //case k010:      return "target -10 cm"; break;
00118     //case k050:      return "target -50 cm"; break;
00119     //case k100:      return "target -100 cm"; break;
00120     //case k200:      return "target -200 cm"; break;
00121     //case k250:      return "target -250 cm"; break;
00122   case kInverseE:  return "1/E flux"; break;  
00123   case kUnknown:   return "Unknown"; break;
00124   case kUser:      return "User specific flux"; break;
00125   default:         return "!?Bad Value Passed?!"; break;
00126   }
00127 }

const Char_t * BeamType::AsTag ( BeamType::BeamType_t  b  ) 

Definition at line 129 of file BeamType.cxx.

References k010, k050, k100, k200, k250, kInverseE, kLE, kUnknown, and kUser.

Referenced by BeamEnergyCalculator::GetHist().

00129                                                   {
00130   switch (b) {
00131   case kLE:       return "z_000"; break;
00132   case k010:      return "z_010"; break;
00133   case k050:      return "z_050"; break;
00134   case k100:      return "z_100"; break;
00135   case k200:      return "z_200"; break;
00136   case k250:      return "z_250"; break;
00137   case kInverseE: return "inv_e"; break;  
00138   case kUnknown:  return "unkn"; break;
00139   case kUser:     return "user"; break;
00140   default:        return "???"; break;
00141   }
00142 }

BeamType::BeamType_t BeamType::FromBeamMon ( unsigned int  i  ) 

Definition at line 244 of file BeamType.cxx.

References kHE, kLE, kME, and kUnknown.

Referenced by MadMKAnalysis::CreatePAN().

00244                                                        {
00245   BeamType::BeamType_t result=BeamType::kUnknown;
00246   switch (i) {
00247   case 1:
00248     result=BeamType::kLE;
00249     break;
00250   case 4:
00251     result=BeamType::kME;
00252     break;
00253   case 5:
00254     result=BeamType::kHE;
00255     break;
00256   default:
00257     break;
00258   }
00259   return result;
00260 }

BeamType::BeamType_t BeamType::FromZarko ( unsigned int  izarko  ) 

Definition at line 262 of file BeamType.cxx.

References kL000z200i, kL010z000i, kL010z170i, kL010z185i, kL010z185i_lowi, kL010z185i_lowintensity, kL010z185i_medi, kL010z200i, kL100z200i, kL150z200i, kL250z200i, kM000z000i_nova, kM000z200i_nova, kM000z200i_nova_R13, kM000z200i_nova_rev, and kUnknown.

Referenced by SKZPWeightCalculator::GetBeamWeight(), SKZPWeightCalculator::GetFluxError(), SKZPWeightCalculator::GetRunPeriodWeight(), Zbeam::GetWeight(), SKZPWeightCalculator::SetRunFrac(), and ToZarko().

00262                                                           {
00263   switch (izarko) {
00264   case 1:  return kL000z200i;
00265   case 2:  return kL010z185i;
00266   case 3:  return kL100z200i;
00267   case 4:  return kL250z200i;
00268   case 5:  return kL010z185i_lowintensity;
00269   case 6:  return kL010z170i;
00270   case 7:  return kL010z200i;
00271   case 8:  return kL010z000i;
00272   case 9:  return kL150z200i;
00273   case 10:  return kL010z185i_lowi;
00274   case 11:  return kL010z185i_medi;
00275   case 12: return kM000z200i_nova;
00276   case 13: return kM000z000i_nova;
00277   case 14: return kM000z200i_nova_rev;
00278   case 15: return kM000z200i_nova_R13;
00279   default: return kUnknown;
00280   }
00281 }

BeamType::BeamType_t BeamType::TagToEnum ( const Char_t *  s  ) 

Definition at line 144 of file BeamType.cxx.

References k010, k050, k100, k200, k250, kInverseE, kL000z200i, kL010z000i, kL010z000i_i209, kL010z000i_i225, kL010z000i_i232, kL010z000i_i259, kL010z000i_i300, kL010z000i_i317, kL010z000i_i326, kL010z000i_i380, kL010z170i, kL010z185i, kL010z185i_i124, kL010z185i_i191, kL010z185i_i213, kL010z185i_i224, kL010z185i_i232, kL010z185i_i240, kL010z185i_i243, kL010z185i_i257, kL010z185i_i282, kL010z185i_i300, kL010z185i_i303, kL010z185i_i324, kL010z185i_i361, kL010z185i_i480, kL010z185i_i600, kL010z185i_lowi, kL010z185i_lowintensity, kL010z185i_medi, kL010z185i_rev, kL010z185i_rev_i200, kL010z185i_rev_i277, kL010z185i_rev_i306, kL010z185i_rev_i312, kL010z185i_rev_i314, kL010z185i_rev_i348, kL010z185i_rev_i349, kL010z185i_rev_i353, kL010z185i_rev_i410, kL010z200i, kL050z200i, kL100z000i, kL100z200i, kL150z200i, kL200z200i, kL250z000i, kL250z200i, kL250z200i_i100, kL250z200i_i114, kL250z200i_i130, kL250z200i_i152, kL250z200i_i165, kL250z200i_i194, kL250z200i_i232, kLE, kM000z000i_nova, kM000z200i, kM000z200i_i090, kM000z200i_i100, kM000z200i_i240, kM000z200i_i250, kM000z200i_i370, kM000z200i_i417, kM000z200i_i471, kM000z200i_i490, kM000z200i_i500, kM000z200i_i750, kM000z200i_nova, kM000z200i_nova_i090, kM000z200i_nova_i490, kM000z200i_nova_R13, kM000z200i_nova_rev, kM000z200i_nova_rev_i490, kUnknown, and kUser.

Referenced by Anp::FillHeader::Config(), MicroDSTMaker::Config(), Anp::SelectSpill::Config(), NCExtractionCuts::NCExtractionCuts(), NCExtractionCutswkNN::NCExtractionCutswkNN(), Anp::FillMadId::Reset(), Anp::FillFlux::Run(), Anp::FillHeader::Run(), and Anp::FillMadId::Run().

00144                                                        {
00145   BeamType::BeamType_t b=kUnknown;
00146   std::string s=cs;
00147   
00148   // canonical AsString form
00149   if      (s=="L000z200i") b = kL000z200i;
00150   else if (s=="L010z185i") b = kL010z185i;
00151   else if (s=="L050z200i") b = kL050z200i;
00152   else if (s=="L100z200i") b = kL100z200i;
00153   else if (s=="L200z200i") b = kL200z200i;
00154   else if (s=="L250z200i") b = kL250z200i;
00155   else if (s=="L010z000i") b = kL010z000i;
00156   else if (s=="L010z170i") b = kL010z170i;
00157   else if (s=="L010z200i") b = kL010z200i;
00158   else if (s=="L010z185i_lowint") b = kL010z185i_lowintensity;
00159   else if (s=="L010z185i_lowi") b = kL010z185i_lowi;
00160   else if (s=="L010z185i_medi") b = kL010z185i_medi;
00161   else if (s=="L150z200i") b = kL150z200i;
00162     //
00163   else if (s=="L010z185i_i124") b = kL010z185i_i124;
00164   else if (s=="L010z185i_i191") b = kL010z185i_i191;
00165   else if (s=="L010z185i_i213") b = kL010z185i_i213;
00166   else if (s=="L010z185i_i224") b = kL010z185i_i224;
00167   else if (s=="L010z185i_i232") b = kL010z185i_i232;
00168   else if (s=="L010z185i_i240") b = kL010z185i_i240;
00169   else if (s=="L010z185i_i243") b = kL010z185i_i243;
00170   else if (s=="L010z185i_i257") b = kL010z185i_i257;
00171   else if (s=="L010z185i_i282") b = kL010z185i_i282;
00172   else if (s=="L010z185i_i300") b = kL010z185i_i300;
00173   else if (s=="L010z185i_i303") b = kL010z185i_i303;
00174   else if (s=="L010z185i_i324") b = kL010z185i_i324;
00175   else if (s=="L010z185i_i361") b = kL010z185i_i361;
00176   else if (s=="L010z185i_i480") b = kL010z185i_i480;
00177   else if (s=="L010z185i_i600") b = kL010z185i_i600;
00178     //
00179   else if (s=="L010z000i_i209") b = kL010z000i_i209;
00180   else if (s=="L010z000i_i225") b = kL010z000i_i225;
00181   else if (s=="L010z000i_i232") b = kL010z000i_i232;
00182   else if (s=="L010z000i_i259") b = kL010z000i_i259;
00183   else if (s=="L010z000i_i300") b = kL010z000i_i300;
00184   else if (s=="L010z000i_i317") b = kL010z000i_i317;
00185   else if (s=="L010z000i_i326") b = kL010z000i_i326;
00186   else if (s=="L010z000i_i380") b = kL010z000i_i380;
00187     //
00188   else if (s=="L250z200i_i100") b = kL250z200i_i100;
00189   else if (s=="L250z200i_i114") b = kL250z200i_i114;
00190   else if (s=="L250z200i_i130") b = kL250z200i_i130;
00191   else if (s=="L250z200i_i152") b = kL250z200i_i152;
00192   else if (s=="L250z200i_i165") b = kL250z200i_i165;
00193   else if (s=="L250z200i_i194") b = kL250z200i_i194;
00194   else if (s=="L250z200i_i232") b = kL250z200i_i232;
00195     //
00196   else if (s=="L010z185i_rev") b = kL010z185i_rev;
00197   else if (s=="L010z185i_rev_i200") b = kL010z185i_rev_i200;
00198   else if (s=="L010z185i_rev_i277") b = kL010z185i_rev_i277;
00199   else if (s=="L010z185i_rev_i314") b = kL010z185i_rev_i314;
00200   else if (s=="L010z185i_rev_i349") b = kL010z185i_rev_i349;
00201   else if (s=="L010z185i_rev_i312") b = kL010z185i_rev_i312;
00202   else if (s=="L010z185i_rev_i348") b = kL010z185i_rev_i348;
00203   else if (s=="L010z185i_rev_i306") b = kL010z185i_rev_i306;
00204   else if (s=="L010z185i_rev_i353") b = kL010z185i_rev_i353;
00205   else if (s=="L010z185i_rev_i410") b = kL010z185i_rev_i410;
00206     //
00207   else if (s=="L100z000i") b = kL100z000i;
00208   else if (s=="L250z000i") b = kL250z000i;
00209   //
00210   else if (s=="M000z200i_nova") b = kM000z200i_nova;
00211   else if (s=="M000z200i_nova_rev") b = kM000z200i_nova_rev;
00212   else if (s=="M000z000i_nova") b = kM000z000i_nova;
00213   else if (s=="M000z200i_nova_i090") b = kM000z200i_nova_i090;
00214   else if (s=="M000z200i_nova_i490") b = kM000z200i_nova_i490;
00215   else if (s=="M000z200i_nova_rev_i490") b = kM000z200i_nova_rev_i490;
00216   else if (s=="M000z200i_i090") b = kM000z200i_i090;
00217   else if (s=="M000z200i_i240") b = kM000z200i_i240;
00218   else if (s=="M000z200i_i250") b = kM000z200i_i250;
00219   else if (s=="M000z200i_i417") b = kM000z200i_i417;
00220   else if (s=="M000z200i_i471") b = kM000z200i_i471;
00221   else if (s=="M000z200i_i490") b = kM000z200i_i490;
00222   else if (s=="M000z200i_i100") b = kM000z200i_i100;
00223   else if (s=="M000z200i_i370") b = kM000z200i_i370;
00224   else if (s=="M000z200i_i500") b = kM000z200i_i500;
00225   else if (s=="M000z200i_i750") b = kM000z200i_i750;
00226   else if (s=="M000z200i") b = kM000z200i;
00227   else if (s=="M000z200i_nova_R13") b = kM000z200i_nova_R13;
00228   //
00229   // tag forms
00230   else if (s=="z_000") b=kLE;
00231   else if (s=="z_010") b=k010;
00232   else if (s=="z_050") b=k050;
00233   else if (s=="z_100") b=k100;
00234   else if (s=="z_200") b=k200;
00235   else if (s=="z_250") b=k250;
00236   else if (s=="inv_e") b=kInverseE;
00237   else if (s=="user")  b=kUser;
00238   else                 b=kUnknown;
00239 
00240   return b;
00241 
00242 }

Int_t BeamType::ToZarko ( BeamType::BeamType_t  b  ) 

Definition at line 283 of file BeamType.cxx.

References FromZarko(), kEndOfList, kL010z000i, kL010z000i_i209, kL010z000i_i380, kL010z185i, kL010z185i_i124, kL010z185i_i324, kL010z185i_i361, kL250z200i, kL250z200i_i100, kL250z200i_i232, and kUnknown.

Referenced by ParticleBeamMonAna::ana(), MCTrueAna::ana(), NueFluxWeightsAna::Analyze(), Anp::FillFlux::Fill(), NCEventInfo::FindMEGAFitWeight(), NCEventInfo::FindMEGAFitWeightUncertainty(), NueStandard::GetSKZPBeamWeight(), NuZBeamReweight::GetSKZPWeightCalculator(), NuZBeamReweight::GetSKZPWeightCalculatorCustom(), NuZBeamReweight::GetWeightHelium(), NuZBeamReweight::GetWeights(), ParticleFinder::Reco(), and NueBeamMonModule::Reco().

00283                                             {
00284   
00285   for (int itry=BeamType::kUnknown; itry < BeamType::kEndOfList; itry++) {
00286     
00287     if ( b == BeamType::FromZarko(itry) )
00288       return itry;
00289     else if ( itry >= (Int_t)(BeamType::kL010z185i_i124) &&
00290               itry <= (Int_t)(BeamType::kL010z185i_i324) &&
00291               b == (BeamType_t)itry )
00292       return ToZarko(BeamType::kL010z185i);
00293     else if (itry == (Int_t)(BeamType::kL010z185i_i361) &&
00294              b == (BeamType_t)itry )
00295       return ToZarko(BeamType::kL010z185i);
00296     else if ( itry >= (Int_t)(BeamType::kL010z000i_i209) &&
00297               itry <= (Int_t)(BeamType::kL010z000i_i380) &&
00298               b == (BeamType_t)itry )
00299       return ToZarko(BeamType::kL010z000i);
00300     else if ( itry >= (Int_t)(BeamType::kL250z200i_i100) &&
00301               itry <= (Int_t)(BeamType::kL250z200i_i232) &&
00302               b == (BeamType_t)itry )
00303       return ToZarko(BeamType::kL250z200i);
00304     //code used in R3.04 to force pseudo beam weights for new beamtype
00305     // else if (itry == (Int_t)(BeamType::kM000z200i_nova) &&
00306     //              b == (BeamType_t)itry )
00307     //       return ToZarko(BeamType::kL100z200i);   
00308     //     else if (itry == (Int_t)(BeamType::kM000z000i_nova) &&
00309     //              b == (BeamType_t)itry )
00310     //       return ToZarko(BeamType::kL010z000i);  
00311     
00312  else continue;
00313     
00314   }//for()
00315   // no match
00316   return -1;
00317 }


Generated on 14 Dec 2017 for loon by  doxygen 1.6.1