Commit d60d4dfc authored by XAMPP service account's avatar XAMPP service account
Browse files

code formatted by gitlab-CI

parent a96953b0
......@@ -36,97 +36,169 @@ namespace XAMPP {
}
return proc_ids;
}
std::string susyProcName(int ID){
if ( ID == 1 ) return "gluino-squark";
else if (ID == 2) return "gluino-gluino";
else if (ID == 3) return "squark-squark";
else if (ID == 4) return "squark-antisquark";
else if (ID == 51) return "sbottom1-antisbottom1";
else if (ID == 51) return "sbottom2-antisbottom2";
else if (ID == 61) return "stop1-antistop1";
else if (ID == 62) return "stop2-antistop2";
else if (ID == 71) return "gluino-nino1";
else if (ID == 72) return "gluino-nino2";
else if (ID == 73) return "gluino-nino3";
else if (ID == 74) return "gluino-nino4";
else if (ID == 75) return "gluino-chinoplus1";
else if (ID == 76) return "gluino-chinoplus2";
else if (ID == 77) return "gluino-chinominus1";
else if (ID == 78) return "gluino-chinominus2";
else if (ID == 81) return "squark-nino1";
else if (ID == 82) return "squark-nino2";
else if (ID == 83) return "squark-nino3";
else if (ID == 84) return "squark-nino4";
else if (ID == 85) return "squark-chinoplus1";
else if (ID == 86) return "squark-chinoplus2";
else if (ID == 87) return "squark-chinominus1";
else if (ID == 88) return "squark-chinominus2";
else if (ID == 111) return "nino1-nino1";
else if (ID == 112) return "nino1-nino2";
else if (ID == 113) return "nino1-nino3";
else if (ID == 114) return "nino1-nino4";
else if (ID == 115) return "nino1-chinoplus1";
else if (ID == 116) return "nino1-chinoplus2";
else if (ID == 117) return "nino1-chinminus1";
else if (ID == 118) return "nino1-chinminus2";
else if (ID == 122) return "nino2-nino2";
else if (ID == 123) return "nino2-nino3";
else if (ID == 124) return "nino2-nino4";
else if (ID == 125) return "nino2-chinoplus1";
else if (ID == 126) return "nino2-chinoplus2";
else if (ID == 127) return "nino2-chinminus1";
else if (ID == 128) return "nino2-chinminus2";
else if (ID == 133) return "nino3-nino3";
else if (ID == 134) return "nino3-nino4";
else if (ID == 135) return "nino3-chinoplus1";
else if (ID == 136) return "nino3-chinoplus2";
else if (ID == 137) return "nino3-chinminus1";
else if (ID == 138) return "nino3-chinminus2";
else if (ID == 144) return "nino4-nino4";
else if (ID == 145) return "nino4-chinoplus1";
else if (ID == 146) return "nino4-chinoplus2";
else if (ID == 147) return "nino4-chinminus1";
else if (ID == 148) return "nino4-chinminus2";
else if (ID == 157) return "chiplus1-chinminus1";
else if (ID == 158) return "chiplus1-chinminus2";
else if (ID == 167) return "chiplus2-chinminus1";
else if (ID == 168) return "chiplus2-chinminus2";
else if (ID == 201) return "selectronL-selectronL";
else if (ID == 202) return "selectronR-selectronR";
else if (ID == 203) return "sneutrinoEl-sneutrinoEl";
else if (ID == 204) return "sneutrinoEl-selectronPlus";
else if (ID == 205) return "sneutrinoEl-selectronMinus";
else if (ID == 206) return "stau1-stau1";
else if (ID == 207) return "stau2-stau2";
else if (ID == 208) return "stau1-stau2";
else if (ID == 209) return "sneutrinoTau-sneutrinoTau";
else if (ID == 210) return "stau1Plus-sneutrinoTau";
else if (ID == 211) return "stau1Minus-sneutrinoTau";
else if (ID == 212) return "stau2Plus-sneutrinoTau";
else if (ID == 213) return "stau2Minus-sneutrinoTau";
else if (ID == 216) return "smuonL-smuonL";
else if (ID == 217) return "smuonR-smuonR";
else if (ID == 218) return "sneutrinoMu-sneutrinoMu";
else if (ID == 219) return "sneutrinoMu-smuonPlus";
else if (ID == 220) return "sneutrinoMu-smuonMinus";
std::string susyProcName(int ID) {
if (ID == 1)
return "gluino-squark";
else if (ID == 2)
return "gluino-gluino";
else if (ID == 3)
return "squark-squark";
else if (ID == 4)
return "squark-antisquark";
else if (ID == 51)
return "sbottom1-antisbottom1";
else if (ID == 51)
return "sbottom2-antisbottom2";
else if (ID == 61)
return "stop1-antistop1";
else if (ID == 62)
return "stop2-antistop2";
else if (ID == 71)
return "gluino-nino1";
else if (ID == 72)
return "gluino-nino2";
else if (ID == 73)
return "gluino-nino3";
else if (ID == 74)
return "gluino-nino4";
else if (ID == 75)
return "gluino-chinoplus1";
else if (ID == 76)
return "gluino-chinoplus2";
else if (ID == 77)
return "gluino-chinominus1";
else if (ID == 78)
return "gluino-chinominus2";
else if (ID == 81)
return "squark-nino1";
else if (ID == 82)
return "squark-nino2";
else if (ID == 83)
return "squark-nino3";
else if (ID == 84)
return "squark-nino4";
else if (ID == 85)
return "squark-chinoplus1";
else if (ID == 86)
return "squark-chinoplus2";
else if (ID == 87)
return "squark-chinominus1";
else if (ID == 88)
return "squark-chinominus2";
else if (ID == 111)
return "nino1-nino1";
else if (ID == 112)
return "nino1-nino2";
else if (ID == 113)
return "nino1-nino3";
else if (ID == 114)
return "nino1-nino4";
else if (ID == 115)
return "nino1-chinoplus1";
else if (ID == 116)
return "nino1-chinoplus2";
else if (ID == 117)
return "nino1-chinminus1";
else if (ID == 118)
return "nino1-chinminus2";
else if (ID == 122)
return "nino2-nino2";
else if (ID == 123)
return "nino2-nino3";
else if (ID == 124)
return "nino2-nino4";
else if (ID == 125)
return "nino2-chinoplus1";
else if (ID == 126)
return "nino2-chinoplus2";
else if (ID == 127)
return "nino2-chinminus1";
else if (ID == 128)
return "nino2-chinminus2";
else if (ID == 133)
return "nino3-nino3";
else if (ID == 134)
return "nino3-nino4";
else if (ID == 135)
return "nino3-chinoplus1";
else if (ID == 136)
return "nino3-chinoplus2";
else if (ID == 137)
return "nino3-chinminus1";
else if (ID == 138)
return "nino3-chinminus2";
else if (ID == 144)
return "nino4-nino4";
else if (ID == 145)
return "nino4-chinoplus1";
else if (ID == 146)
return "nino4-chinoplus2";
else if (ID == 147)
return "nino4-chinminus1";
else if (ID == 148)
return "nino4-chinminus2";
else if (ID == 157)
return "chiplus1-chinminus1";
else if (ID == 158)
return "chiplus1-chinminus2";
else if (ID == 167)
return "chiplus2-chinminus1";
else if (ID == 168)
return "chiplus2-chinminus2";
else if (ID == 201)
return "selectronL-selectronL";
else if (ID == 202)
return "selectronR-selectronR";
else if (ID == 203)
return "sneutrinoEl-sneutrinoEl";
else if (ID == 204)
return "sneutrinoEl-selectronPlus";
else if (ID == 205)
return "sneutrinoEl-selectronMinus";
else if (ID == 206)
return "stau1-stau1";
else if (ID == 207)
return "stau2-stau2";
else if (ID == 208)
return "stau1-stau2";
else if (ID == 209)
return "sneutrinoTau-sneutrinoTau";
else if (ID == 210)
return "stau1Plus-sneutrinoTau";
else if (ID == 211)
return "stau1Minus-sneutrinoTau";
else if (ID == 212)
return "stau2Plus-sneutrinoTau";
else if (ID == 213)
return "stau2Minus-sneutrinoTau";
else if (ID == 216)
return "smuonL-smuonL";
else if (ID == 217)
return "smuonR-smuonR";
else if (ID == 218)
return "sneutrinoMu-sneutrinoMu";
else if (ID == 219)
return "sneutrinoMu-smuonPlus";
else if (ID == 220)
return "sneutrinoMu-smuonMinus";
return "UNKOWN";
}
//#################################################################
......@@ -613,13 +685,13 @@ namespace XAMPP {
/// Somehow ROOT has decided not to remap the Basket anymore
/// thus lets use some static variables
static std::string my_stonjek;
static TTree* not_much_sense = nullptr;
if (not_much_sense != tree){
static TTree* not_much_sense = nullptr;
if (not_much_sense != tree) {
if (!SetBranchAddress(tree, "ProcessName", &my_stonjek)) return false;
not_much_sense = tree;
}
my_stonjek = Meta->procName;
if (!SetBranchAddress(tree, "ProcessID", Meta->ProcID)) return false;
if (!SetBranchAddress(tree, "xSection", Meta->xSec)) return false;
if (!SetBranchAddress(tree, "xSection_RelErrorDown", Meta->xSec_err_down)) return false;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment