42{
43
46
48
49 std::string
filename =
"straws." + std::to_string(
run) +
".txt";
51 std::cout << "Created output/ folder.\n";
52 gSystem->mkdir("output/",1);
53
54
55 for (
int i = 2;
i <
argc; ++
i)
56 {
57 if (std::string(argv[i]) == "checkNoisy_HT")
59 else if (std::string(argv[i]) == "checkLoEff_HT")
61 else if (std::string(argv[i]) == "checkNoisy_LT")
63 else if (std::string(argv[i]) == "checkLoEff_LT")
65 else if (std::string(argv[i]) == "checkDead_LT")
67
68 else if (std::string(argv[i]) == "ignoreNoisy_HT")
70 else if (std::string(argv[i]) == "ignoreLoEff_HT")
72 else if (std::string(argv[i]) == "ignoreNoisy_LT")
74 else if (std::string(argv[i]) == "ignoreLoEff_LT")
76 else if (std::string(argv[i]) == "ignoreDead_LT")
78
79 else if (std::string(argv[i]) == "StatusPermanent")
81
82 else
83 {
84 std::cerr << "\n Please use one or several of the following options: \n"
85 << "\n\t - StatusPermanent: to only mask entire dead boards -- for use if updating StatusPermanent "
86 << "\n\t\t - if this option is used, all others will be ignored. \n"
87 << "\n\t - checkNoisy_HT: to mask straws with HT fraction > 0.5 "
88 << "\n\t - checkNoisy_LT: to mask straws with LT fraction > 0.99 "
89 << "\n\t - checkLoEff_HT: to mask straws with HT fraction < 0.0001 "
90 << "\n\t - checkLoEff_LT: to mask straws with LT fraction < 0.7 "
91 << "\n\t - checkDead_LT : to mask straws with LT fraction = 0.0 "
92 << "\n\t Replace \"check\" with \"ignore\" to ignore this category. \n "
93 << std::endl;
95 }
96 }
97
98 std::cout << "\nOption selection:"
105 << std::endl;
106
109 {
111 }
112 else
113 {
116 }
117
118 return 1;
119}
void printAthenaBoardsOnly(int run)
void reportResults(const std::string &filename, int run)
void initializeDeadStrawsList()
void printAthena(int run)
void simpleAnalysis(const std::string &filename)
int atoi(std::string_view str)
Helper functions to unpack numbers decoded in string into integers and doubles The strings are requir...