Typedefs | |
| typedef enum ReleaseType::EDataMCRelease | DataMC_t |
| typedef enum ReleaseType::ERecoRelease | Reco_t |
| typedef enum ReleaseType::ESubMCRelease | SubMC_t |
| typedef enum ReleaseType::ESubRecoRelease | SubReco_t |
| typedef enum ReleaseType::ETestFlag | RecoTest_t |
| typedef Int_t | Release_t |
| typedef enum ReleaseType::EFieldMaskRelease | FieldMask_t |
Enumerations | |
| enum | EDataMCRelease { kData = 0x00, kAvocado = 0x01, kBeet = 0x02, kCarrot = 0x03, kDaikon = 0x04, kEggplant = 0x05, kFava = 0x06, kGarlic = 0x07, kHops = 0x08, kIceberg = 0x09, kJicama = 0x0A } |
| enum | ERecoRelease { kAsh = 0x10, kBirch = 0x20, kCedar = 0x30, kDogwood = 0x40, kElm = 0x50, kFir = 0x60, kGinkgo = 0x70, kHickory = 0x80, kIvy = 0x90, kJuniper = 0xA0 } |
| enum | ESubMCRelease { k00 = 0x0000, k01 = 0x0100, k02 = 0x0200, k03 = 0x0300, k04 = 0x0400, k05 = 0x0500, k06 = 0x0600, k07 = 0x0700, k08 = 0x0800, k09 = 0x0900, k10 = 0x0A00 } |
| enum | ESubRecoRelease { kR00 = 0x0000, kR01 = 0x1000, kR02 = 0x2000, kR03 = 0x3000, kR04 = 0x4000, kR05 = 0x5000, kR06 = 0x6000, kR07 = 0x7000, kR08 = 0x8000, kR09 = 0x9000, kR10 = 0xA000 } |
| enum | ETestFlag { kStandard = 0x00000, kTest = 0x10000 } |
| enum | EFieldMaskRelease { kUnknown = -1, DataMCMask = 0x0000F, RecoMask = 0x000F0, SubMCMask = 0x00F00, SubRecoMask = 0x0F000, RecoTestMask = 0xF0000 } |
Functions | |
| Release_t | GetRecoInfo (int type) |
| Release_t | GetMCInfo (int type) |
| bool | IsData (int type) |
| bool | IsMC (int type) |
| bool | IsTest (int type) |
| bool | IsAvocado (int type) |
| bool | IsBeet (int type) |
| bool | IsCarrot (int type) |
| bool | IsDaikon (int type) |
| bool | IsEggplant (int type) |
| bool | IsFava (int type) |
| bool | IsGarlic (int type) |
| bool | IsHops (int type) |
| bool | IsIceberg (int type) |
| bool | IsJicama (int type) |
| bool | IsAsh (int type) |
| bool | IsBirch (int type) |
| bool | IsCedar (int type) |
| bool | IsDogwood (int type) |
| bool | IsElm (int type) |
| bool | IsFir (int type) |
| bool | IsGinkgo (int type) |
| bool | IsHickory (int type) |
| bool | IsIvy (int type) |
| bool | IsJuniper (int type) |
| int | GetMCSubVersion (int type) |
| int | GetRecoSubVersion (int type) |
| Release_t | GetRecoRelease (const char *recoreleasename) |
| Release_t | GetSubRecoRelease (const char *subrecoreleasename) |
| Release_t | GetDataMCRelease (const char *mcreleasename) |
| Release_t | GetSubMCRelease (const char *submcreleasename) |
| Release_t | GetTestFlag (const char *testflagname) |
| Release_t | GetProductionRelease (const char *prodreleasename) |
| const char * | AsString (ERecoRelease recorelease) |
| const char * | AsString (ESubRecoRelease subrecorelease) |
| const char * | AsString (EDataMCRelease datamcrelease) |
| const char * | AsString (ESubMCRelease submcrelease) |
| const char * | AsString (ReleaseType::ETestFlag testflag) |
| std::string | AsString (int type) |
| std::string | GetVersionString (int val) |
| Release_t | StringToType (const char *nameChar) |
| Release_t | MakeReleaseType (std::string fTitle, std::string mcinfo="") |
| const std::pair< std::string, std::string > | AsBatchString (int type) |
Variables | |
| const Release_t | kBirchData = kBirch | kData |
| const Release_t | kBirchCarrot = kBirch | kCarrot |
| const Release_t | kCedarData = kCedar | kData |
| const Release_t | kCedarCarrot = kCedar | kCarrot |
| const Release_t | kCedarDaikon = kCedar | kDaikon |
| const Release_t | kR1_24_0 = kCedar | kR00 |
| const Release_t | kR1_24_1 = kCedar | kR01 |
| const Release_t | kR1_24_2 = kCedar | kR02 |
| const Release_t | kR1_24_Cal = kCedar | kR08 |
| const Release_t | kR1_24_CalB = kCedar | kR09 |
| const Release_t | kR1_24_3 = kCedar | kR03 |
| const Release_t | kCedar_Phy = kCedar | kR02 |
| const Release_t | kCedarPhy = kCedar | kR02 |
| const Release_t | kCedarPhyData = kCedar | kR02 | kData |
| const Release_t | kCedar_PhyData = kCedar | kR02 | kData |
| const Release_t | kCedarPhyDaikon = kCedarPhy | kDaikon |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 183 of file ReleaseType.h. Referenced by StringToType(). |
|
|
|
|
|
|
|
|
Definition at line 123 of file ReleaseType.h. 00123 {
00124 kData = 0x00,
00125 kAvocado = 0x01,
00126 kBeet = 0x02,
00127 kCarrot = 0x03,
00128 kDaikon = 0x04, //Production began December 2006
00129 kEggplant = 0x05,
00130 kFava = 0x06,
00131 kGarlic = 0x07,
00132 kHops = 0x08,
00133 kIceberg = 0x09,
00134 kJicama = 0x0A
00135 } DataMC_t;
|
|
|
Definition at line 185 of file ReleaseType.h. 00185 {
00186 kUnknown = -1,
00187 DataMCMask = 0x0000F,
00188 RecoMask = 0x000F0,
00189 SubMCMask = 0x00F00,
00190 SubRecoMask = 0x0F000,
00191 RecoTestMask = 0xF0000
00192 } FieldMask_t;
|
|
|
Definition at line 137 of file ReleaseType.h. 00137 {
00138 kAsh = 0x10, // R1.18
00139 kBirch = 0x20, // R1.18.{2/4}
00140 kCedar = 0x30, // Fall 2006 (R1.24.{0/1}
00141 kDogwood = 0x40, //
00142 kElm = 0x50,
00143 kFir = 0x60,
00144 kGinkgo = 0x70,
00145 kHickory = 0x80,
00146 kIvy = 0x90,
00147 kJuniper = 0xA0
00148 } Reco_t;
|
|
|
Definition at line 150 of file ReleaseType.h. 00150 {
00151 k00 = 0x0000, // first order release and backwards comp
00152 k01 = 0x0100, //
00153 k02 = 0x0200, //
00154 k03 = 0x0300, //
00155 k04 = 0x0400, //
00156 k05 = 0x0500,
00157 k06 = 0x0600,
00158 k07 = 0x0700,
00159 k08 = 0x0800,
00160 k09 = 0x0900,
00161 k10 = 0x0A00
00162 } SubMC_t;
|
|
|
Definition at line 164 of file ReleaseType.h. 00164 {
00165 kR00 = 0x0000, // first order release and backwards comp
00166 kR01 = 0x1000, //
00167 kR02 = 0x2000, //
00168 kR03 = 0x3000, //
00169 kR04 = 0x4000, //
00170 kR05 = 0x5000,
00171 kR06 = 0x6000,
00172 kR07 = 0x7000,
00173 kR08 = 0x8000,
00174 kR09 = 0x9000,
00175 kR10 = 0xA000
00176 } SubReco_t;
|
|
|
Definition at line 178 of file ReleaseType.h.
|
|
|
Definition at line 348 of file ReleaseType.cxx. References GetMCSubVersion(), GetRecoSubVersion(), IsAsh(), IsAvocado(), IsBeet(), IsBirch(), IsCarrot(), IsCedar(), IsDaikon(), IsDogwood(), IsEggplant(), IsElm(), IsFava(), IsFir(), IsGarlic(), IsGinkgo(), IsHickory(), IsHops(), IsIceberg(), IsIvy(), IsJicama(), IsJuniper(), IsMC(), and IsTest(). 00349 {
00350 //
00351 // Return pair of strings:
00352 // 1st element is reconstruction release name as used for pnfs file storage
00353 // 2nd element is Monte-Carlo release name as used for pnfs file storage
00354 //
00355
00356 string dmc = "unknown_mc";
00357 string reco = "unknown_reco";
00358
00359 if(ReleaseType::IsMC(type))
00360 {
00361 if(ReleaseType::IsAvocado(type)) dmc = "avocado";
00362 else if(ReleaseType::IsBeet(type)) dmc = "beet";
00363 else if(ReleaseType::IsCarrot(type)) dmc = "carrot";
00364 else if(ReleaseType::IsDaikon(type)) dmc = "daikon";
00365 else if(ReleaseType::IsEggplant(type)) dmc = "eggplant";
00366 else if(ReleaseType::IsFava(type)) dmc = "fava";
00367 else if(ReleaseType::IsGarlic(type)) dmc = "garlic";
00368 else if(ReleaseType::IsHops(type)) dmc = "hops";
00369 else if(ReleaseType::IsIceberg(type)) dmc = "iceberg";
00370 else if(ReleaseType::IsJicama(type)) dmc = "jicama";
00371
00372 if(ReleaseType::GetMCSubVersion(type) < 0 || ReleaseType::GetMCSubVersion(type) > 99)
00373 {
00374 std::cerr << "ReleaseType::AsBatchString - bad Monte-Carlo version: "
00375 << ReleaseType::GetMCSubVersion(type) << std::endl;
00376 }
00377 else
00378 {
00379 std::stringstream mver;
00380 mver << std::setw(2) << std::setfill('0') << ReleaseType::GetMCSubVersion(type);
00381 dmc = dmc + "_" + mver.str();
00382 }
00383 }
00384 else
00385 {
00386 dmc = "data";
00387 }
00388
00389 if(ReleaseType::IsAsh(type)) reco = "ash";
00390 if(ReleaseType::IsBirch(type)) reco = "birch";
00391 if(ReleaseType::IsCedar(type))
00392 {
00393 if(ReleaseType::GetRecoSubVersion(type) == 0)
00394 {
00395 reco = "cedar";
00396 }
00397 else if(ReleaseType::GetRecoSubVersion(type) == 1)
00398 {
00399 reco = "cedar";
00400 }
00401 else if(ReleaseType::GetRecoSubVersion(type) == 2)
00402 {
00403 reco = "cedar_phy";
00404 }
00405 else if(ReleaseType::GetRecoSubVersion(type) == 3)
00406 {
00407 reco = "cedar_phy_bhcurv";
00408 }
00409 else
00410 {
00411 std::cerr << "ReleaseType::AsBatchString - bad cedar reconstuction version: "
00412 << ReleaseType::GetRecoSubVersion(type) << std::endl;
00413 }
00414 }
00415 if(ReleaseType::IsDogwood(type)) reco = "dogwood";
00416 if(ReleaseType::IsElm(type)) reco = "elm";
00417 if(ReleaseType::IsFir(type)) reco = "fir";
00418 if(ReleaseType::IsGinkgo(type)) reco = "ginkgo";
00419 if(ReleaseType::IsHickory(type)) reco = "hickory";
00420 if(ReleaseType::IsIvy(type)) reco = "ivy";
00421 if(ReleaseType::IsJuniper(type)) reco = "juniper";
00422
00423 if(ReleaseType::IsTest(type)) reco += "test";
00424
00425 return std::pair<std::string, std::string>(dmc, reco);
00426 }
|
|
|
Definition at line 147 of file ReleaseType.cxx. References GetRecoInfo(), GetVersionString(), IsAsh(), IsAvocado(), IsBeet(), IsBirch(), IsCarrot(), IsCedar(), IsDaikon(), IsDogwood(), IsEggplant(), IsElm(), IsFava(), IsFir(), IsGarlic(), IsGinkgo(), IsHickory(), IsHops(), IsIceberg(), IsIvy(), IsJicama(), IsJuniper(), IsMC(), and IsTest(). 00148 {
00149 string dmc = "unknown";
00150 string reco = "unknownRel";
00151
00152 if(ReleaseType::IsMC(type)){
00153 if(ReleaseType::IsAvocado(type)) dmc = "Avocado";
00154 else if(ReleaseType::IsBeet(type)) dmc = "Beet";
00155 else if(ReleaseType::IsCarrot(type)) dmc = "Carrot";
00156 else if(ReleaseType::IsDaikon(type)) dmc = "Daikon";
00157 else if(ReleaseType::IsEggplant(type)) dmc = "Eggplant";
00158 else if(ReleaseType::IsFava(type)) dmc = "Fava";
00159 else if(ReleaseType::IsGarlic(type)) dmc = "Garlic";
00160 else if(ReleaseType::IsHops(type)) dmc = "Hops";
00161 else if(ReleaseType::IsIceberg(type)) dmc = "Iceberg";
00162 else if(ReleaseType::IsJicama(type)) dmc = "Jicama";
00163 else dmc = "unknown MC";
00164
00165 dmc += GetVersionString(ReleaseType::GetMCSubVersion(type));
00166 }else{
00167 dmc = "Data";
00168 }
00169
00170 if(ReleaseType::IsAsh(type)) reco = "Ash";
00171 if(ReleaseType::IsBirch(type)) reco = "Birch";
00172 if(ReleaseType::IsCedar(type)){
00173 if(ReleaseType::GetRecoInfo(type) == ReleaseType::kCedarPhy ||
00174 ReleaseType::GetRecoInfo(type) == ReleaseType::kR1_24_3 )
00175 reco = "CedarPhy";
00176 else reco = "Cedar";
00177 }
00178 if(ReleaseType::IsDogwood(type)) reco = "Dogwood";
00179 if(ReleaseType::IsElm(type)) reco = "Elm";
00180 if(ReleaseType::IsFir(type)) reco = "Fir";
00181 if(ReleaseType::IsGinkgo(type)) reco = "Ginkgo";
00182 if(ReleaseType::IsHickory(type)) reco = "Hickory";
00183 if(ReleaseType::IsIvy(type)) reco = "Ivy";
00184 if(ReleaseType::IsJuniper(type)) reco = "Juniper";
00185
00186 if(ReleaseType::IsTest(type)) reco += "Test";
00187 reco += GetVersionString(ReleaseType::GetRecoSubVersion(type));
00188
00189 string name = reco + " " + dmc;
00190
00191 return name;
00192 }
|
|
|
Definition at line 645 of file ReleaseType.cxx. References kStandard, kTest, and MSG. 00646 {
00647 switch ( testflag) {
00648 case kStandard: return "";
00649 case kTest: return "test";
00650 default:
00651 MSG("Conv",Msg::kError) << "ReleaseType::AsString for unknown "
00652 << "ETestFlag " << testflag
00653 << ". Fix method. Abort." << endl;
00654 abort();
00655 }
00656 }
|
|
|
Definition at line 605 of file ReleaseType.cxx. References k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k10, and MSG. 00605 {
00606 // Purpose: Convert enumerated submcrelease to string
00607
00608 switch ( submcrelease ) {
00609
00610 case k00: return "00";
00611 case k01: return "01";
00612 case k02: return "02";
00613 case k03: return "03";
00614 case k04: return "04";
00615 case k05: return "05";
00616 case k06: return "06";
00617 case k07: return "07";
00618 case k08: return "08";
00619 case k09: return "09";
00620 case k10: return "10";
00621 default:
00622 MSG("Conv",Msg::kError) << "ReleaseType::AsString for unknown "
00623 << "ESubMCRelease " << submcrelease
00624 << ". Fix method. Abort." << endl;
00625 abort();
00626 }
00627
00628 }
|
|
|
Definition at line 555 of file ReleaseType.cxx. References kAvocado, kBeet, kCarrot, kDaikon, kEggplant, kFava, kGarlic, kHops, kIceberg, kJicama, and MSG. 00555 {
00556 // Purpose: Convert enumerated datamcrelease to string
00557
00558 switch ( datamcrelease ) {
00559
00560 case kData: return "Data";
00561 case kAvocado: return "Avocado";
00562 case kBeet: return "Beet";
00563 case kCarrot: return "Carrot";
00564 case kDaikon: return "Daikon";
00565 case kEggplant: return "Eggplant";
00566 case kFava: return "Fava";
00567 case kGarlic: return "Garlic";
00568 case kHops: return "Hops";
00569 case kIceberg: return "Iceberg";
00570 case kJicama: return "Jicama";
00571 default:
00572 MSG("Conv",Msg::kError) << "ReleaseType::AsString for unknown "
00573 << "EDataMCRelease " << datamcrelease
00574 << ". Fix method. Abort." << endl;
00575 abort();
00576 }
00577
00578 }
|
|
|
Definition at line 504 of file ReleaseType.cxx. References kR00, kR01, kR02, kR03, kR04, kR05, kR06, kR07, kR08, kR09, kR10, and MSG. 00504 {
00505 // Purpose: Convert enumerated subrecorelease to string
00506
00507 switch ( subrecorelease ) {
00508
00509 case kR00: return "00";
00510 case kR01: return "01";
00511 case kR02: return "02";
00512 case kR03: return "03";
00513 case kR04: return "04";
00514 case kR05: return "05";
00515 case kR06: return "06";
00516 case kR07: return "07";
00517 case kR08: return "08";
00518 case kR09: return "09";
00519 case kR10: return "10";
00520 default:
00521 MSG("Conv",Msg::kError) << "ReleaseType::AsString for unknown "
00522 << "ESubRecoRelease " << subrecorelease
00523 << ". Fix method. Abort." << endl;
00524 abort();
00525 }
00526
00527 }
|
|
|
Definition at line 456 of file ReleaseType.cxx. References kAsh, kBirch, kCedar, kDogwood, kElm, kFir, kGinkgo, kHickory, kIvy, kJuniper, and MSG. Referenced by MNtpModule::Ana(), MuonRemovalInfoAna::Analyze(), AnalysisInfoAna::Analyze(), ANtpRecoNtpManipulator::ANtpRecoNtpManipulator(), EnergyCorrections::CalibrationGroupEnergyCorrections(), MadTVAnalysis::CreatePAN(), NuAnalysis::EnergySpect(), NuAnalysis::ExtractConfig(), NuAnalysis::LIRejectionTest(), NuPIDInterface::PrintReleaseTypeEtc(), NueModule::Reco(), and NuAnalysis::SetAnaFlags(). 00456 {
00457 // Purpose: Convert enumerated recorelease to string
00458
00459 switch ( recorelease ) {
00460
00461 case kAsh: return "Ash";
00462 case kBirch: return "Birch";
00463 case kCedar: return "Cedar";
00464 case kDogwood: return "Dogwood";
00465 case kElm: return "Elm";
00466 case kFir: return "Fir";
00467 case kGinkgo: return "Ginkgo";
00468 case kHickory: return "Hickory";
00469 case kIvy: return "Ivy";
00470 case kJuniper: return "Juniper";
00471 default:
00472 MSG("Conv",Msg::kError) << "ReleaseType::AsString for unknown "
00473 << "ERecoRelease " << recorelease
00474 << ". Fix method. Abort." << endl;
00475 abort();
00476 }
00477
00478 }
|
|
|
Definition at line 530 of file ReleaseType.cxx. Referenced by GetProductionRelease(). 00531 {
00532 // Purpose: Search for substring in datamcreleasename corresponding to
00533 // an EDataMCRelease. Returns EDataMCRelease if found, else
00534 // kUnknown.
00535
00536 TString tmpstr(datamcreleasename);
00537 tmpstr.ToLower();
00538 if ( strstr(tmpstr.Data(),"data") != 0 ) return kData;
00539 else if ( strstr(tmpstr.Data(),"avocado") != 0 ) return kAvocado;
00540 else if ( strstr(tmpstr.Data(),"beet") != 0 ) return kBeet;
00541 else if ( strstr(tmpstr.Data(),"carrot") != 0 ) return kCarrot;
00542 else if ( strstr(tmpstr.Data(),"daikon") != 0 ) return kDaikon;
00543 else if ( strstr(tmpstr.Data(),"eggplant") != 0 ) return kEggplant;
00544 else if ( strstr(tmpstr.Data(),"fava") != 0 ) return kFava;
00545 else if ( strstr(tmpstr.Data(),"garlic") != 0 ) return kGarlic;
00546 else if ( strstr(tmpstr.Data(),"hops") != 0 ) return kHops;
00547 else if ( strstr(tmpstr.Data(),"iceberg") != 0 ) return kIceberg;
00548 else if ( strstr(tmpstr.Data(),"jicama") != 0 ) return kJicama;
00549 return kUnknown;
00550
00551 }
|
|
|
Definition at line 125 of file ReleaseType.cxx. Referenced by NuAnalysis::ExtractConfig(). 00125 {
00126 return (type & (ReleaseType::DataMCMask + ReleaseType::SubMCMask));
00127 }
|
|
|
Definition at line 133 of file ReleaseType.cxx. References SubMCMask. Referenced by AsBatchString(), and Anp::Header::GetMCRLTYPE(). 00134 {
00135 int temp = type & SubMCMask;
00136 return temp/(SubMCMask/0xF);
00137 }
|
|
|
Definition at line 659 of file ReleaseType.cxx. References GetDataMCRelease(), GetRecoRelease(), GetSubMCRelease(), GetSubRecoRelease(), and GetTestFlag(). Referenced by RecJobRecord::GetProdReleaseType(). 00660 {
00661 // Purpose: Convert text string prodreleasename to release type.
00662 // Returns kUnknown if unknown.
00663 // If prodreleasename is from reco batch production,
00664 // e.g. "dogwood2" or "dogwoodtest0", returns ReleaseType as combination of
00665 // ERecoRelease, ESubReco, and ETestFlag.
00666 // If prodreleasename is from MC production, e.g. Daikon_00, returns
00667 // ReleaseType as combination of EDataMCRelease and ESubMCRelease.
00668
00669 ReleaseType::Release_t result = kUnknown;
00670
00671 result = ReleaseType::GetRecoRelease(prodreleasename);
00672
00673 if ( result != kUnknown ) {
00674 // Batch production. Add test flag.
00675 result |= ReleaseType::GetTestFlag(prodreleasename);
00676 // Add version
00677 std::string tmpstr = std::string(prodreleasename);
00678 // char version = tmpstr[tmpstr.size()-1];
00679 char ver[2]; sprintf(ver, "0%c", tmpstr[tmpstr.size()-1]);
00680 ReleaseType::Release_t subver = ReleaseType::GetSubRecoRelease(ver);
00681 if ( subver != kUnknown ) result |= subver;
00682 }
00683 else {
00684 result = ReleaseType::GetDataMCRelease(prodreleasename);
00685 if ( result != kUnknown ) {
00686 // MC production. Add version.
00687 ReleaseType::Release_t subver
00688 = ReleaseType::GetSubMCRelease(prodreleasename);
00689 if ( subver != kUnknown ) result |= subver;
00690 }
00691 }
00692
00693 return result;
00694 }
|
|
|
Definition at line 121 of file ReleaseType.cxx. Referenced by AsString(), EnergyCorrections::CalibrationGroupEnergyCorrections(), NuAnalysis::ExtractConfig(), and EnergyCorrections::FullyCorrectShowerEnergy(). 00121 {
00122 return (type & (ReleaseType::RecoMask + ReleaseType::SubRecoMask));
00123 }
|
|
|
Definition at line 429 of file ReleaseType.cxx. Referenced by GetProductionRelease(). 00430 {
00431 // Purpose: Convert text string recoreleasename to an ERecoRelease.
00432 // Returns kUnknown if unknown.
00433 ReleaseType::Release_t result = kUnknown;
00434
00435 TString tmpstr(recoreleasename);
00436 tmpstr.ToLower();
00437 if ( strstr(tmpstr.Data(),"ash") != 0 ) result = kAsh;
00438 else if ( strstr(tmpstr.Data(),"birch") != 0 ) result = kBirch;
00439 else if ( strstr(tmpstr.Data(),"cedar") != 0 ) result = kCedar;
00440 else if ( strstr(tmpstr.Data(),"dogwood") != 0 ) result = kDogwood;
00441 else if ( strstr(tmpstr.Data(),"elm") != 0 ) result = kElm;
00442 else if ( strstr(tmpstr.Data(),"fir") != 0 ) result = kFir;
00443 else if ( strstr(tmpstr.Data(),"ginkgo") != 0 ) result = kGinkgo;
00444 else if ( strstr(tmpstr.Data(),"hickory") != 0 ) result = kHickory;
00445 else if ( strstr(tmpstr.Data(),"ivy") != 0 ) result = kIvy;
00446 else if ( strstr(tmpstr.Data(),"juniper") != 0 ) result = kJuniper;
00447
00448 if(result == kUnknown) return result;
00449
00450 if(strstr(tmpstr.Data(),"test") != 0) result |= kTest;
00451
00452 return result;
00453 }
|
|
|
Definition at line 139 of file ReleaseType.cxx. References SubRecoMask. Referenced by AsBatchString(), Anp::Header::GetRECOTYPE(), and NueConvention::NueEnergyCorrection(). 00140 {
00141 int temp = type & SubRecoMask;
00142 return temp/(SubRecoMask/0xF);
00143 }
|
|
|
Definition at line 581 of file ReleaseType.cxx. Referenced by GetProductionRelease(). 00582 {
00583 // Purpose: Search for substring in submcreleasename corresponding to
00584 // an ESubMCRelease. Returns matching ESubMCRelease if found,
00585 // else kUnknown if no match.
00586
00587 TString tmpstr(submcreleasename);
00588 tmpstr.ToLower();
00589 if ( strstr(tmpstr.Data(),"00") != 0 ) return k00;
00590 else if ( strstr(tmpstr.Data(),"01") != 0 ) return k01;
00591 else if ( strstr(tmpstr.Data(),"02") != 0 ) return k02;
00592 else if ( strstr(tmpstr.Data(),"03") != 0 ) return k03;
00593 else if ( strstr(tmpstr.Data(),"04") != 0 ) return k04;
00594 else if ( strstr(tmpstr.Data(),"05") != 0 ) return k05;
00595 else if ( strstr(tmpstr.Data(),"06") != 0 ) return k06;
00596 else if ( strstr(tmpstr.Data(),"07") != 0 ) return k07;
00597 else if ( strstr(tmpstr.Data(),"08") != 0 ) return k08;
00598 else if ( strstr(tmpstr.Data(),"09") != 0 ) return k09;
00599 else if ( strstr(tmpstr.Data(),"10") != 0 ) return k10;
00600 return kUnknown;
00601
00602 }
|
|
|
Definition at line 481 of file ReleaseType.cxx. Referenced by GetProductionRelease(). 00482 {
00483 // Purpose: Search for substring in subrecoreleasename corresponding to
00484 // an ESubRecoRelease code. Returns kUnknown if no match.
00485
00486 TString tmpstr(subrecoreleasename);
00487 tmpstr.ToLower();
00488 if ( strstr(tmpstr.Data(),"00") != 0 ) return kR00;
00489 else if ( strstr(tmpstr.Data(),"01") != 0 ) return kR01;
00490 else if ( strstr(tmpstr.Data(),"02") != 0 ) return kR02;
00491 else if ( strstr(tmpstr.Data(),"03") != 0 ) return kR03;
00492 else if ( strstr(tmpstr.Data(),"04") != 0 ) return kR04;
00493 else if ( strstr(tmpstr.Data(),"05") != 0 ) return kR05;
00494 else if ( strstr(tmpstr.Data(),"06") != 0 ) return kR06;
00495 else if ( strstr(tmpstr.Data(),"07") != 0 ) return kR07;
00496 else if ( strstr(tmpstr.Data(),"08") != 0 ) return kR08;
00497 else if ( strstr(tmpstr.Data(),"09") != 0 ) return kR09;
00498 else if ( strstr(tmpstr.Data(),"10") != 0 ) return kR10;
00499 return kUnknown;
00500
00501 }
|
|
|
Definition at line 631 of file ReleaseType.cxx. Referenced by GetProductionRelease(). 00632 {
00633 // Purpose: Search for substring in testflagname corresponding to
00634 // an ETestFlag. Returns matching ETestFlag if found, else
00635 // ETestFlag::kStandard.
00636
00637 TString tmpstr(testflagname);
00638 tmpstr.ToLower();
00639 if ( strstr(tmpstr.Data(),"test") != 0 ) return kTest;
00640 return kStandard; // default
00641
00642 }
|
|
|
Definition at line 194 of file ReleaseType.cxx. Referenced by AsString(). 00195 {
00196 char dum[4];
00197 sprintf(dum, "V%02d", val);
00198 std::string temp = dum;
00199 return temp;
00200 }
|
|
|
Definition at line 78 of file ReleaseType.cxx. Referenced by AsBatchString(), and AsString(). 00078 {
00079 return ((type & ReleaseType::RecoMask) == ReleaseType::kAsh);
00080 }
|
|
|
Definition at line 33 of file ReleaseType.cxx. Referenced by AsBatchString(), and AsString(). 00033 {
00034 return ((type & ReleaseType::DataMCMask) == ReleaseType::kAvocado);
00035 }
|
|
|
Definition at line 37 of file ReleaseType.cxx. Referenced by AsBatchString(), and AsString(). 00037 {
00038 return ((type & ReleaseType::DataMCMask) == ReleaseType::kBeet);
00039 }
|
|
|
Definition at line 82 of file ReleaseType.cxx. Referenced by NueDisplayModule::Ana(), MNtpModule::Ana(), MuonRemovalInfoAna::Analyze(), FracVarAna::Analyze(), ANtpTrackInfoAna::Analyze(), ANtpShowerInfoAna::Analyze(), AsBatchString(), AsString(), EnergyCorrections::CalibrationGroupEnergyCorrections(), EnergyCorrections::FullyCorrectEnergyFromRange(), EnergyCorrections::FullyCorrectMomentumFromRange(), EnergyCorrections::FullyCorrectShowerEnergy(), EnergyCorrections::FullyCorrectSignedMomentumFromCurvature(), NuReco::GetContainmentFlag(), NCAnalysisCuts::IsFibreNoiseInSpillOx(), NCAnalysisCutsOx::IsGoodBeamEvent(), NCAnalysisCutsNCCCFid::IsGoodBeamEvent(), NCAnalysisCutsNC::IsGoodBeamEvent(), NuCuts::IsInFidVol(), and NueModule::Reco(). 00082 {
00083 return ((type & ReleaseType::RecoMask) == ReleaseType::kBirch);
00084 }
|
|
|
Definition at line 41 of file ReleaseType.cxx. Referenced by NueXsecWeightAna::Analyze(), AnalysisInfoAna::Analyze(), AsBatchString(), AsString(), NCAnalysisUtils::FindEventWeight(), NCAnalysisUtils::FindMEGAFitWeight(), NCAnalysisUtils::FindNeugenWeight(), NCEnergyBinGradients::FindWeight(), MCInfo::GetMCPoT(), MCInfo::GetNoSnarlPerFile(), ANtpTruthInfoBeamAna::GetNueWeight(), NueConvention::NueEnergyCorrection(), NueModule::Reco(), NCType::WhichCCPIDFiles(), and NCType::WhichMdaCoeffHistDef(). 00041 {
00042 return ((type & ReleaseType::DataMCMask) == ReleaseType::kCarrot);
00043 }
|
|
|
|
Definition at line 45 of file ReleaseType.cxx. Referenced by AsBatchString(), AsString(), AnalysisInfoAna::BuildABPIDFile(), AnalysisInfoAna::BuildROPIDFile(), NuZBeamReweight::CalcGeneratorReweight(), EnergyCorrections::CalibrationGroupEnergyCorrections(), NCAnalysisUtils::FindNeugenWeight(), NuPIDInterface::GetFileNameAbID(), NuPIDInterface::GetFileNameJeID(), NuPIDInterface::GetFileNameRoID(), NCExtractionTRann::GetIdProbability(), MCInfo::GetMCPoT(), Anp::Header::GetMCRLTYPE(), MCInfo::GetNoSnarlPerFile(), ANtpTruthInfoBeamAna::GetNueWeight(), NuSystematic::NeugenXSecShift(), NueConvention::NueEnergyCorrection(), NCType::WhichCCPIDFiles(), and NCType::WhichMdaCoeffHistDef(). 00045 {
00046 return ((type & ReleaseType::DataMCMask) == ReleaseType::kDaikon);
00047 }
|
|
|
Definition at line 19 of file ReleaseType.cxx. Referenced by AnalysisInfoAna::BuildABPIDFile(), AnalysisInfoAna::BuildROPIDFile(), NueData::IsData(), NueConvention::NueEnergyCorrection(), and NueModule::Reco(). 00019 {
00020 return ((type & ReleaseType::DataMCMask) == ReleaseType::kData);
00021 }
|
|
|
Definition at line 90 of file ReleaseType.cxx. Referenced by AsBatchString(), AsString(), and EnergyCorrections::FullyCorrectShowerEnergy(). 00090 {
00091 return ((type & ReleaseType::RecoMask) == ReleaseType::kDogwood);
00092 }
|
|
|
Definition at line 49 of file ReleaseType.cxx. Referenced by AsBatchString(), and AsString(). 00049 {
00050 return ((type & ReleaseType::DataMCMask) == ReleaseType::kEggplant);
00051 }
|
|
|
Definition at line 94 of file ReleaseType.cxx. Referenced by AsBatchString(), and AsString(). 00094 {
00095 return ((type & ReleaseType::RecoMask) == ReleaseType::kElm);
00096 }
|
|
|
Definition at line 53 of file ReleaseType.cxx. Referenced by AsBatchString(), and AsString(). 00053 {
00054 return ((type & ReleaseType::DataMCMask) == ReleaseType::kFava);
00055 }
|
|
|
Definition at line 98 of file ReleaseType.cxx. Referenced by AsBatchString(), and AsString(). 00098 {
00099 return ((type & ReleaseType::RecoMask) == ReleaseType::kFir);
00100 }
|
|
|
Definition at line 57 of file ReleaseType.cxx. Referenced by AsBatchString(), and AsString(). 00057 {
00058 return ((type & ReleaseType::DataMCMask) == ReleaseType::kGarlic);
00059 }
|
|
|
Definition at line 102 of file ReleaseType.cxx. Referenced by AsBatchString(), and AsString(). 00102 {
00103 return ((type & ReleaseType::RecoMask) == ReleaseType::kGinkgo);
00104 }
|
|
|
Definition at line 106 of file ReleaseType.cxx. Referenced by AsBatchString(), and AsString(). 00106 {
00107 return ((type & ReleaseType::RecoMask) == ReleaseType::kHickory);
00108 }
|
|
|
Definition at line 61 of file ReleaseType.cxx. Referenced by AsBatchString(), and AsString(). 00061 {
00062 return ((type & ReleaseType::DataMCMask) == ReleaseType::kHops);
00063 }
|
|
|
Definition at line 65 of file ReleaseType.cxx. Referenced by AsBatchString(), and AsString(). 00065 {
00066 return ((type & ReleaseType::DataMCMask) == ReleaseType::kIceberg);
00067 }
|
|
|
Definition at line 110 of file ReleaseType.cxx. Referenced by AsBatchString(), and AsString(). 00110 {
00111 return ((type & ReleaseType::RecoMask) == ReleaseType::kIvy);
00112 }
|
|
|
Definition at line 69 of file ReleaseType.cxx. Referenced by AsBatchString(), and AsString(). 00069 {
00070 return ((type & ReleaseType::DataMCMask) == ReleaseType::kJicama);
00071 }
|
|
|
Definition at line 114 of file ReleaseType.cxx. Referenced by AsBatchString(), and AsString(). 00114 {
00115 return ((type & ReleaseType::RecoMask) == ReleaseType::kJuniper);
00116 }
|
|
|
Definition at line 23 of file ReleaseType.cxx. Referenced by AsBatchString(), and AsString(). 00023 {
00024 return ((type & ReleaseType::DataMCMask) > 0);
00025 }
|
|
|
Definition at line 27 of file ReleaseType.cxx. Referenced by AsBatchString(), and AsString(). 00027 {
00028 return ((type & ReleaseType::RecoTestMask) > 0);
00029 }
|
|
||||||||||||
|
Definition at line 276 of file ReleaseType.cxx. Referenced by MNtpModule::Ana(), ANtpRecoNtpManipulator::ANtpRecoNtpManipulator(), MadTVAnalysis::CreatePAN(), and NtpStRecord::GetRelease(). 00284 {
00285 mcinfo = "Carrot";
00286 string temp = str->mchdr.geninfo.codename;
00287 if(temp.size() != 0){ mcinfo = temp; }
00288 }
00289 release = ReleaseType::MakeReleaseType(relName, mcinfo);
00290 */
00291 {
00292 string relName = fTitle;
00293 string reco = relName.substr(0,relName.find_first_of("("));
00294 ReleaseType::Release_t release = ReleaseType::kUnknown;
00295
00296 //Setting for dealing with Cedar and Cedar Variants
00297 if(strstr(reco.c_str(), "CEDAR") != 0 ||
00298 strstr(reco.c_str(), "CHERRY") != 0 ){
00299
00300 if(reco == "CEDAR"){
00301 release = ReleaseType::kCedar; //Fine for Data or Carrot
00302 string temp = relName.substr(22,1);
00303 if(temp == "1") release = ReleaseType::kR1_24_1;
00304 }
00305
00306 if(reco == "CEDAR_PHY"){
00307 release = ReleaseType::kCedarPhy;
00308 if(strstr(fTitle.c_str(), "Daikon") != 0) release = ReleaseType::kR1_24_2;
00309
00310 std::string software = relName.substr(relName.find_first_of(":")+1,
00311 relName.find_first_of(",") - relName.find_first_of(":") - 1);
00312
00313 if(software == "R1.24.2") release = ReleaseType::kR1_24_2;
00314 if(software == "R1.24.3") release = ReleaseType::kR1_24_3;
00315
00316 }
00317
00318 if(reco == "CHERRY") release = ReleaseType::kR1_24_Cal;
00319 }
00320 else release = ReleaseType::kBirch;
00321
00322
00323 //Setting Data/MC version
00324 if(mcinfo.size() > 0){
00325 if(strstr(mcinfo.c_str(), "daikon") != 0)
00326 release += ReleaseType::kDaikon;
00327 else
00328 release += ReleaseType::kCarrot;
00329
00330 if(strstr(mcinfo.c_str(), "00") != 0) release += ReleaseType::k00;
00331 if(strstr(mcinfo.c_str(), "01") != 0) release += ReleaseType::k01;
00332 if(strstr(mcinfo.c_str(), "02") != 0) release += ReleaseType::k02;
00333 if(strstr(mcinfo.c_str(), "03") != 0) release += ReleaseType::k03;
00334 if(strstr(mcinfo.c_str(), "04") != 0) release += ReleaseType::k04;
00335 if(strstr(mcinfo.c_str(), "05") != 0) release += ReleaseType::k05;
00336 if(strstr(mcinfo.c_str(), "06") != 0) release += ReleaseType::k06;
00337 if(strstr(mcinfo.c_str(), "07") != 0) release += ReleaseType::k07;
00338 if(strstr(mcinfo.c_str(), "08") != 0) release += ReleaseType::k08;
00339 if(strstr(mcinfo.c_str(), "09") != 0) release += ReleaseType::k09;
00340 }
00341 else
00342 release += ReleaseType::kData;
00343
00344 return release;
00345 }
|
|
|
Definition at line 203 of file ReleaseType.cxx. References Release_t. Referenced by NCExtractionTRann::DoExtraction(), NCExtractionTOm::DoExtraction(), NCExtractionTO::DoExtraction(), NCAnalysisModule::ExtractNCCC(), NCExtractionDP::FillPDFs(), NCAnalysisUtils::FindEventWeight(), NCAnalysisUtils::FindMEGAFitWeight(), NCAnalysisUtils::FindNeugenWeight(), NCEnergyBinGradients::FindWeight(), NCAnalysisCuts::GetReleaseType(), and NCExtractionAS::ReadCalibInfoFromFile(). 00203 {
00204 string name(nameChar);
00205 Release_t type = 0x00;
00206
00207 string dmc = name.substr(1+name.find(" "));
00208 if(dmc.find("Data") != string::npos) type += kData;
00209
00210 // Now could just check the first letter if speed is an issue.
00211 else if(dmc.find("Avocado") != string::npos ) type += kAvocado;
00212 else if(dmc.find("Beet") != string::npos) type += kBeet;
00213 else if(dmc.find("Carrot") != string::npos) type += kCarrot;
00214 else if(dmc.find("Daikon") != string::npos) type += kDaikon;
00215 else if(dmc.find("Eggplant") != string::npos) type += kEggplant;
00216 else if(dmc.find("Fava") != string::npos) type += kFava;
00217 else if(dmc.find("Garlic") != string::npos) type += kGarlic;
00218 else if(dmc.find("Hops") != string::npos) type += kHops;
00219 else if(dmc.find("Iceberg") != string::npos) type += kIceberg;
00220 else if(dmc.find("Jicama") != string::npos) type += kJicama;
00221 // No good way to treat "unknown MC"; leave it as "kUnknown"
00222 else type = kUnknown;
00223
00224 string dmcver = dmc.substr(1 + dmc.find_last_of("V"));
00225 if(dmcver.find("00") != string::npos) type += k00;
00226 else if(dmcver.find("01") != string::npos) type += k01;
00227 else if(dmcver.find("02") != string::npos) type += k02;
00228 else if(dmcver.find("03") != string::npos) type += k03;
00229 else if(dmcver.find("04") != string::npos) type += k04;
00230 else if(dmcver.find("05") != string::npos) type += k05;
00231 else if(dmcver.find("06") != string::npos) type += k06;
00232 else if(dmcver.find("07") != string::npos) type += k07;
00233 else if(dmcver.find("08") != string::npos) type += k08;
00234 else if(dmcver.find("09") != string::npos) type += k09;
00235 else if(dmcver.find("10") != string::npos) type += k10;
00236 else type += k00;
00237
00238 string reco = name.substr(0, name.find(" "));
00239 if( type != kUnknown ){
00240 if (reco.find("Ash") != string::npos) type += kAsh;
00241 else if (reco.find("Birch") != string::npos) type += kBirch;
00242 else if (reco.find("Cedar") != string::npos){
00243 if(reco.find("CedarPhy") != string::npos) type += kCedar;
00244 else if(reco.find("Cedar_Phy") != string::npos) type += kCedar;
00245 else type += kCedar;
00246 }else if (reco.find("Dogwood") != string::npos) type += kDogwood;
00247 else if (reco.find("Elm") != string::npos) type += kElm;
00248 else if (reco.find("Fir") != string::npos) type += kFir;
00249 else if (reco.find("Ginkgo") != string::npos) type += kGinkgo;
00250 else if (reco.find("Hickory") != string::npos) type += kHickory;
00251 else if (reco.find("Ivy") != string::npos) type += kIvy;
00252 else if (reco.find("Juniper") != string::npos) type += kJuniper;
00253
00254 if(name.find("Test") != string::npos) type += kTest;
00255
00256 // Unknown reconstruction is possible; just leave that bit 0.
00257
00258 string rver = reco.substr(1 + reco.find_last_of("V"));
00259 if(rver.find("00") != string::npos) type += kR00;
00260 else if(rver.find("01") != string::npos) type += kR01;
00261 else if(rver.find("02") != string::npos) type += kR02;
00262 else if(rver.find("03") != string::npos) type += kR03;
00263 else if(rver.find("04") != string::npos) type += kR04;
00264 else if(rver.find("05") != string::npos) type += kR05;
00265 else if(rver.find("06") != string::npos) type += kR06;
00266 else if(rver.find("07") != string::npos) type += kR07;
00267 else if(rver.find("08") != string::npos) type += kR08;
00268 else if(rver.find("09") != string::npos) type += kR09;
00269 else if(rver.find("10") != string::npos) type += kR10;
00270 else type += kR00;
00271 } // if (a known dmc type)
00272
00273 return type;
00274 }
|
|
|
Definition at line 200 of file ReleaseType.h. |
|
|
Definition at line 199 of file ReleaseType.h. |
|
|
Definition at line 211 of file ReleaseType.h. |
|
|
Definition at line 215 of file ReleaseType.h. |
|
|
Definition at line 202 of file ReleaseType.h. |
|
|
Definition at line 203 of file ReleaseType.h. |
|
|
Definition at line 201 of file ReleaseType.h. |
|
|
Definition at line 212 of file ReleaseType.h. |
|
|
Definition at line 216 of file ReleaseType.h. |
|
|
Definition at line 214 of file ReleaseType.h. |
|
|
Definition at line 205 of file ReleaseType.h. |
|
|
Definition at line 206 of file ReleaseType.h. |
|
|
Definition at line 207 of file ReleaseType.h. |
|
|
Definition at line 210 of file ReleaseType.h. |
|
|
Definition at line 208 of file ReleaseType.h. |
|
|
Definition at line 209 of file ReleaseType.h. |
1.3.9.1