TTTT_Analysis.cpp 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415
  1. /**
  2. * @file
  3. * @author Caleb Fangmeier <caleb@fangmeier.tech>
  4. * @version 0.1
  5. *
  6. * @section LICENSE
  7. *
  8. *
  9. * MIT License
  10. *
  11. * Copyright (c) 2017 Caleb Fangmeier
  12. *
  13. * Permission is hereby granted, free of charge, to any person obtaining a copy
  14. * of this software and associated documentation files (the "Software"), to deal
  15. * in the Software without restriction, including without limitation the rights
  16. * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  17. * copies of the Software, and to permit persons to whom the Software is
  18. * furnished to do so, subject to the following conditions:
  19. *
  20. * The above copyright notice and this permission notice shall be included in all
  21. * copies or substantial portions of the Software.
  22. *
  23. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  24. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  25. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  26. * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  27. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  28. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  29. * SOFTWARE.
  30. *
  31. * @section DESCRIPTION
  32. * Main analysis routine file. This file declares the Histogram/Graph objects
  33. * that will end up in the final root file. It also declares the values that
  34. * are used to populate the histogram, as well as how these values are
  35. * calculated. See the Fil-Val documentation for how the system works.
  36. */
  37. #include <iostream>
  38. #include <vector>
  39. #include <utility>
  40. #include <limits>
  41. #include "filval/filval.hpp"
  42. #include "filval_root/filval_root.hpp"
  43. #include "MiniTreeDataSet.hpp"
  44. #include <TSystem.h>
  45. #define PI 3.14159
  46. #define W_MASS 80.385 // GeV/c^2
  47. #define Z_MASS 91.188 // GeV/c^2
  48. #define T_MASS 172.44 // GeV/c^2
  49. using namespace std;
  50. using namespace fv;
  51. using namespace fv::root;
  52. void enable_branches(MiniTreeDataSet& mt){
  53. mt.fChain->SetBranchStatus("*", false);
  54. mt.track_branch<int>("nLepGood");
  55. mt.track_branch_vec< int >("nLepGood", "LepGood_pdgId");
  56. mt.track_branch_vec<float>("nLepGood", "LepGood_pt");
  57. mt.track_branch_vec<float>("nLepGood", "LepGood_eta");
  58. mt.track_branch_vec<float>("nLepGood", "LepGood_phi");
  59. mt.track_branch_vec<float>("nLepGood", "LepGood_mass");
  60. mt.track_branch_vec< int >("nLepGood", "LepGood_charge");
  61. mt.track_branch_vec< int >("nLepGood", "LepGood_mcMatchId");
  62. mt.track_branch_vec< int >("nLepGood", "LepGood_mcMatchPdgId");
  63. mt.track_branch_vec< int >("nLepGood", "LepGood_mcMatchAny");
  64. mt.track_branch_vec< int >("nLepGood", "LepGood_mcMatchTau");
  65. mt.track_branch_vec< int >("nLepGood", "LepGood_mcPt");
  66. mt.track_branch<int>("nJet");
  67. mt.track_branch_vec<float>("nJet", "Jet_pt");
  68. mt.track_branch_vec<float>("nJet", "Jet_eta");
  69. mt.track_branch_vec<float>("nJet", "Jet_phi");
  70. mt.track_branch_vec<float>("nJet", "Jet_mass");
  71. mt.track_branch_vec<float>("nJet", "Jet_btagCMVA");
  72. mt.track_branch_vec< int >("nJet", "Jet_mcMatchFlav");
  73. mt.track_branch_vec< int >("nJet", "Jet_mcMatchId");
  74. mt.track_branch_vec< int >("nJet", "Jet_mcFlavour");
  75. mt.track_branch<int>("nGenPart");
  76. mt.track_branch_vec< int >("nGenPart", "GenPart_pdgId");
  77. mt.track_branch_vec< int >("nGenPart", "GenPart_motherIndex");
  78. mt.track_branch_vec< int >("nGenPart", "GenPart_motherId");
  79. mt.track_branch_vec<float>("nGenPart", "GenPart_pt");
  80. mt.track_branch_vec<float>("nGenPart", "GenPart_eta");
  81. mt.track_branch_vec<float>("nGenPart", "GenPart_phi");
  82. mt.track_branch_vec<float>("nGenPart", "GenPart_mass");
  83. mt.track_branch_vec< int >("nGenPart", "GenPart_status");
  84. mt.track_branch<int>("nBJetLoose40");
  85. mt.track_branch<int>("nBJetMedium40");
  86. mt.track_branch<int>("nBJetTight40");
  87. mt.track_branch<int>("nVert");
  88. mt.track_branch< int >("run" );
  89. mt.track_branch< int >("lumi");
  90. mt.track_branch< int >("evt" );
  91. mt.track_branch<float>("xsec");
  92. }
  93. struct Jet{
  94. TLorentzVector v;
  95. int idx;
  96. int pdgid;
  97. float b_cmva;
  98. Jet() { }
  99. Jet(const TLorentzVector& v, int idx, int pdgid, float b_cmva)
  100. :v(v),idx(idx),pdgid(pdgid),b_cmva(b_cmva) { }
  101. static Jet reco(const TLorentzVector& v, int idx, float b_cmva){
  102. return Jet(v, idx, 0, b_cmva);
  103. }
  104. static Jet mc(const TLorentzVector& v, int idx, int pdgid){
  105. return Jet(v, idx, pdgid, 0);
  106. }
  107. };
  108. void declare_values(MiniTreeDataSet& mt){
  109. // Define Lorentz Vector(TLorentzVector) object from fields in ntuple
  110. lorentz_vectors("LepGood_pt", "LepGood_eta", "LepGood_phi", "LepGood_mass", "LepGood_4v");
  111. lorentz_vectors("GenPart_pt", "GenPart_eta", "GenPart_phi", "GenPart_mass", "GenPart_4v");
  112. lorentz_vectors("Jet_pt", "Jet_eta", "Jet_phi", "Jet_mass", "Jet_4v" );
  113. lorentz_vectors("LepGood_pt", "LepGood_eta", "LepGood_phi", "LepGood_mass", "LepGood_4v");
  114. lorentz_vectors("GenPart_pt", "GenPart_eta", "GenPart_phi", "GenPart_mass", "GenPart_4v");
  115. lorentz_vectors("Jet_pt", "Jet_eta", "Jet_phi", "Jet_mass", "Jet_4v" );
  116. energies("GenPart_4v", "GenPart_energy");
  117. // Define a couple selections to be used in the top-mass reconstruction.
  118. auto& b_mva_filter = GenFunction::register_function<bool(Jet)>("b_mva_filter",
  119. FUNC(([cut=0.0](const Jet& j){
  120. return j.b_cmva > cut;
  121. })));
  122. auto& b_pdgid_filter = GenFunction::register_function<bool(Jet)>("b_pdgid_filter",
  123. FUNC(([](const Jet& j){
  124. return j.pdgid == 5 || j.pdgid==-5;
  125. })));
  126. auto& w_mass_filter = GenFunction::register_function<bool(Jet, Jet)>("w_mass_filter",
  127. FUNC(([win_l=W_MASS-10, win_h=W_MASS+10](const Jet& j1, const Jet& j2){
  128. float inv_mass = (j1.v + j2.v).M();
  129. return inv_mass > win_l && inv_mass < win_h;
  130. })));
  131. auto& dup_filter = GenFunction::register_function<bool(std::tuple<Jet,Jet>,Jet)>("dup_filter",
  132. FUNC(([](const std::tuple<Jet,Jet>& w, const Jet& b){
  133. int j0 = b.idx;
  134. int j1 = std::get<0>(w).idx;
  135. int j2 = std::get<1>(w).idx;
  136. return (j0 != j1) && (j0 != j2) && (j1 != j2);
  137. })));
  138. auto& qg_id_filter = GenFunction::register_function<bool(Jet, Jet)>("qg_id_filter",
  139. FUNC(([](const Jet& j1, const Jet& j2){
  140. // require both particles be either quarks(not Top) or gluons
  141. int id1 = abs(j1.pdgid);
  142. int id2 = abs(j2.pdgid);
  143. return ((id1 >=1 && id1 <= 5) || id1 == 21) &&
  144. ((id2 >=1 && id2 <= 5) || id2 == 21);
  145. })));
  146. // Here is the calculation of the Top Reconstructed Mass from Jets
  147. auto jets = apply(GenFunction::register_function<std::vector<Jet>(std::vector<TLorentzVector>,std::vector<float>)>("build_reco_jets",
  148. FUNC(([](const std::vector<TLorentzVector>& vs, const std::vector<float>& b_cmvas){
  149. std::vector<Jet> jets;
  150. for(int i=0; i<vs.size(); i++){
  151. jets.push_back(Jet::reco(vs[i],i, b_cmvas[i]));
  152. }
  153. return jets;
  154. }))), fv::tuple(lookup<std::vector<TLorentzVector>>("Jet_4v"), lookup<std::vector<float>>("Jet_btagCMVA")), "reco_jets");
  155. auto b_jets = filter(b_mva_filter, jets, "reco_b_jets");
  156. auto w_dijets = tup_filter<Jet,Jet>(w_mass_filter, combinations<Jet,2>(jets, "reco_dijets"));
  157. auto top_cands = cart_product<std::tuple<Jet,Jet>, Jet>(w_dijets, b_jets);
  158. top_cands = tup_filter(dup_filter, top_cands);
  159. auto& t_mass = GenFunction::register_function<float(std::tuple<Jet,Jet>,Jet)>("t_mass",
  160. FUNC(([](const std::tuple<Jet,Jet>& w, const Jet& b){
  161. return (std::get<0>(w).v+std::get<1>(w).v+b.v).M();
  162. })));
  163. fv::map(t_mass, top_cands, "reco_top_mass");
  164. // Here is the calculation of the Top Reconstructed Mass from Generator-Level objects
  165. jets = apply(GenFunction::register_function<std::vector<Jet>(std::vector<TLorentzVector>,std::vector<int>)>("build_mcjets",
  166. FUNC(([](const std::vector<TLorentzVector>& vs, const std::vector<int>& pdgid){
  167. std::vector<Jet> jets;
  168. for(int i=0; i<vs.size(); i++){
  169. jets.push_back(Jet::mc(vs[i],i, pdgid[i]));
  170. }
  171. return jets;
  172. }))), fv::tuple(lookup<std::vector<TLorentzVector>>("GenPart_4v"), lookup<std::vector<int>>("GenPart_pdgId")), "mcjets");
  173. b_jets = filter(b_pdgid_filter, jets);
  174. w_dijets = tup_filter(qg_id_filter, combinations<Jet,2>(jets));
  175. w_dijets = tup_filter(w_mass_filter, w_dijets);
  176. top_cands = cart_product<std::tuple<Jet,Jet>, Jet>(w_dijets, b_jets);
  177. top_cands = tup_filter(dup_filter, top_cands);
  178. fv::map(t_mass, top_cands, "mc_top_mass");
  179. // calculation of di-jet inv-mass spectrum
  180. auto& inv_mass2 = GenFunction::register_function<float(Jet, Jet)>("inv_mass2",
  181. FUNC(([] (const Jet& j1, const Jet& j2){
  182. TLorentzVector sum = j1.v + j2.v;
  183. return (float)sum.M();
  184. })));
  185. fv::map(inv_mass2, lookup<std::vector<std::tuple<Jet,Jet>>>("reco_dijets"), "dijet_inv_mass");
  186. count<float>(GenFunction::register_function<bool(float)>("bJet_Selection",
  187. FUNC(([](float x){
  188. return x>0;
  189. }))), "Jet_btagCMVA", "b_jet_count");
  190. auto &is_electron = GenFunction::register_function<bool(int)>("is_electron",
  191. FUNC(([](int pdgId) {
  192. return abs(pdgId) == 11;
  193. })));
  194. auto &is_muon = GenFunction::register_function<bool(int)>("is_muon",
  195. FUNC(([](int pdgId) {
  196. return abs(pdgId) == 13;
  197. })));
  198. auto &is_lepton = GenFunction::register_function<bool(int)>("is_lepton",
  199. FUNC(([ie=&is_electron, im=&is_muon](int pdgId) {
  200. return (*ie)(pdgId) || (*im)(pdgId);
  201. })));
  202. count<int>(is_electron, "GenPart_pdgId", "genEle_count");
  203. count<int>(is_muon, "GenPart_pdgId", "genMu_count");
  204. count<int>(is_lepton, "GenPart_pdgId", "genLep_count");
  205. count<int>(is_electron, "LepGood_pdgId", "recEle_count");
  206. count<int>(is_muon, "LepGood_pdgId", "recMu_count");
  207. count<int>(is_lepton, "LepGood_pdgId", "recLep_count");
  208. fv::pair<int, int>("genEle_count", "recEle_count", "genEle_count_v_recEle_count");
  209. fv::pair<int, int>("genMu_count", "recMu_count", "genMu_count_v_recMu_count");
  210. fv::pair<int, int>("genLep_count", "recLep_count", "genLep_count_v_recLep_count");
  211. obs_filter("trilepton", FUNC(([nLepGood=lookup<int>("nLepGood")]()
  212. {
  213. return dynamic_cast<Value<int>*>(nLepGood)->get_value() == 3;
  214. })));
  215. obs_filter("os-dilepton", FUNC(([LepGood_charge=lookup<vector<int>>("LepGood_charge")]()
  216. {
  217. auto& charges = LepGood_charge->get_value();
  218. return charges.size()==2 && (charges[0] != charges[1]);
  219. })));
  220. obs_filter("ss-dilepton", FUNC(([LepGood_charge=lookup<vector<int>>("LepGood_charge")]()
  221. {
  222. auto& charges = LepGood_charge->get_value();
  223. return charges.size()==2 && (charges[0] == charges[1]);
  224. })));
  225. }
  226. void declare_containers(MiniTreeDataSet& mt){
  227. mt.register_container<ContainerTH1<int>>("lepton_count", "Lepton Multiplicity", lookup<int>("nLepGood"), 8, 0, 8);
  228. mt.register_container<ContainerTH1Many<float>>("Jet_pt_dist", "Jet P_T",
  229. lookup<vector<float>>("Jet_pt"), 50, 0, 500,
  230. "Jet P_T");
  231. mt.register_container<ContainerTH1Many<float>>("Jet_eta_dist", "Jet Eta",
  232. lookup<vector<float>>("Jet_eta"), 50, -3, 3,
  233. "Jet Eta");
  234. mt.register_container<ContainerTH1Many<float>>("Jet_phi_dist", "Jet Phi",
  235. lookup<vector<float>>("Jet_phi"), 20, -PI, PI,
  236. "Jet Phi");
  237. mt.register_container<ContainerTH1Many<float>>("Jet_mass_dist", "Jet Mass",
  238. lookup<vector<float>>("Jet_mass"), 50, 0, 200,
  239. "Jet Mass");
  240. mt.register_container<ContainerTH1Many<float>>("dijet_inv_mass", "Di-Jet Inv. Mass - All",
  241. lookup<vector<float>>("dijet_inv_mass"), 100, 0, 500,
  242. "Di-Jet Mass");
  243. mt.register_container<ContainerTH1Many<float>>("dijet_inv_mass_osdilepton", "Di-Jet Inv. Mass - OS Dilepton",
  244. lookup<vector<float>>("dijet_inv_mass"), 100, 0, 500,
  245. "Di-Jet Mass")->add_filter(lookup_obs_filter("os-dilepton"));
  246. mt.register_container<ContainerTH1Many<float>>("dijet_inv_mass_ssdilepton", "Di-Jet Inv. Mass - SS Dilepton",
  247. lookup<vector<float>>("dijet_inv_mass"), 100, 0, 500,
  248. "Di-Jet Mass")->add_filter(lookup_obs_filter("ss-dilepton"));
  249. mt.register_container<ContainerTH1Many<float>>("dijet_inv_mass_trilepton", "Di-Jet Inv. Mass - Trilepton",
  250. lookup<vector<float>>("dijet_inv_mass"), 100, 0, 500,
  251. "Di-Jet Mass")->add_filter(lookup_obs_filter("trilepton"));
  252. mt.register_container<ContainerTH1Many<float>>("reco_top_mass", "Reconstructed Top mass",
  253. lookup<vector<float>>("reco_top_mass"), 100, 0, 500,
  254. "Tri-jet invarient mass");
  255. /* mt.register_container<ContainerTH1Many<float>>("reco_top_pt", "Reconstructed Top Pt", */
  256. /* lookup<vector<float>>("reco_top_pt"), 100, 0, 500, */
  257. /* "Tri-jet Pt"); */
  258. mt.register_container<ContainerTH1Many<float>>("mc_top_mass", "Reconstructed MC Top mass",
  259. lookup<vector<float>>("mc_top_mass"), 100, 0, 500,
  260. "Tri-jet invarient mass");
  261. mt.register_container<ContainerTH2<int>>("nLepvsnJet", "Number of Leptons vs Number of Jets",
  262. fv::pair<int, int>("nLepGood", "nJet"),
  263. 7, 0, 7, 20, 0, 20,
  264. "Number of Leptons", "Number of Jets");
  265. mt.register_container<ContainerTH2<int>>("genEle_count_v_recEle_count", "Number of Generated Electrons v. Number of Reconstructed Electrons",
  266. lookup<std::pair<int,int>>("genEle_count_v_recEle_count"),
  267. 10, 0, 10, 10, 0, 10,
  268. "Generated Electrons","Reconstructed Electrons");
  269. mt.register_container<ContainerTH2<int>>("genMu_count_v_recMu_count", "Number of Generated Muons v. Number of Reconstructed Muons",
  270. lookup<std::pair<int,int>>("genMu_count_v_recMu_count"),
  271. 10, 0, 10, 10, 0, 10,
  272. "Generated Muons","Reconstructed Muons");
  273. mt.register_container<ContainerTH2<int>>("genLep_count_v_recLep_count", "Number of Generated Leptons v. Number of Reconstructed Leptons (e & mu only)",
  274. lookup<std::pair<int,int>>("genLep_count_v_recLep_count"),
  275. 10, 0, 10, 10, 0, 10,
  276. "Generated Leptons","Reconstructed Leptons");
  277. mt.register_container<ContainerTH1<int>>("b_jet_count", "B-Jet Multiplicity", lookup<int>("b_jet_count"), 10, 0, 10);
  278. mt.register_container<ContainerTH1<int>>("jet_count_os_dilepton", "Jet Multiplicity - OS Dilepton Events",
  279. lookup<int>("nJet"), 14, 0, 14)->add_filter(lookup_obs_filter("os-dilepton"));
  280. mt.register_container<ContainerTH1<int>>("jet_count_ss_dilepton", "Jet Multiplicity - SS Dilepton Events",
  281. lookup<int>("nJet"), 14, 0, 14)->add_filter(lookup_obs_filter("ss-dilepton"));
  282. mt.register_container<ContainerTH1<int>>("jet_count_trilepton", "Jet Multiplicity - Trilepton Events",
  283. lookup<int>("nJet"), 14, 0, 14)->add_filter(lookup_obs_filter("trilepton"));
  284. mt.register_container<ContainerTH1<int>>("nVert", "Number of Primary Vertices", lookup<int>("nVert"), 50, 0, 50);
  285. mt.register_container<CounterMany<int>>("GenPart_pdgId_counter", lookup<vector<int>>("GenPart_pdgId"));
  286. mt.register_container<Vector<std::vector< int >>>("GenPart_pdgId", lookup<std::vector< int >>("GenPart_pdgId"));
  287. mt.register_container<Vector<std::vector< int >>>("GenPart_motherIndex", lookup<std::vector< int >>("GenPart_motherIndex"));
  288. mt.register_container<Vector<std::vector< int >>>("GenPart_motherId", lookup<std::vector< int >>("GenPart_motherId"));
  289. mt.register_container<Vector<std::vector<float>>>("GenPart_pt", lookup<std::vector<float>>("GenPart_pt"));
  290. mt.register_container<Vector<std::vector<float>>>("GenPart_eta", lookup<std::vector<float>>("GenPart_eta"));
  291. mt.register_container<Vector<std::vector<float>>>("GenPart_phi", lookup<std::vector<float>>("GenPart_phi"));
  292. mt.register_container<Vector<std::vector<float>>>("GenPart_mass", lookup<std::vector<float>>("GenPart_mass"));
  293. mt.register_container<Vector<std::vector<float>>>("GenPart_energy", lookup<std::vector<float>>("GenPart_energy"));
  294. mt.register_container<Vector<std::vector< int >>>("GenPart_status", lookup<std::vector< int >>("GenPart_status"));
  295. mt.register_container<Vector<vector< int >>>("LepGood_mcMatchId", lookup<vector< int >>("LepGood_mcMatchId"));
  296. mt.register_container<Vector<vector< int >>>("LepGood_mcMatchPdgId", lookup<vector< int >>("LepGood_mcMatchPdgId"));
  297. mt.register_container<Vector< int >>("run", lookup< int >("run") );
  298. mt.register_container<Vector< int >>("lumi", lookup< int >("lumi"));
  299. mt.register_container<Vector< int >>("evt", lookup< int >("evt") );
  300. mt.register_container<Vector<float>>("xsec", lookup<float>("xsec"));
  301. mt.register_container<Vector<std::vector< int >>>("Jet_mcMatchFlav", lookup<std::vector< int >>("Jet_mcMatchFlav"));
  302. mt.register_container<Vector<std::vector< int >>>("Jet_mcMatchId", lookup<std::vector< int >>("Jet_mcMatchId"));
  303. mt.register_container<Vector<std::vector< int >>>("Jet_mcFlavour", lookup<std::vector< int >>("Jet_mcFlavour"));
  304. mt.register_container<Vector<std::vector<float>>>("Jet_pt", lookup<std::vector<float>>("Jet_pt"));
  305. mt.register_container<Vector<std::vector<float>>>("Jet_eta", lookup<std::vector<float>>("Jet_eta"));
  306. mt.register_container<Vector<std::vector<float>>>("Jet_phi", lookup<std::vector<float>>("Jet_phi"));
  307. mt.register_container<Vector<std::vector<float>>>("Jet_mass", lookup<std::vector<float>>("Jet_mass"));
  308. }
  309. void run_analysis(const std::string& input_filename, bool silent){
  310. gSystem->Load("libfilval.so");
  311. auto replace_suffix = [](const std::string& input, const std::string& new_suffix){
  312. return input.substr(0, input.find_last_of(".")) + new_suffix;
  313. };
  314. string log_filename = replace_suffix(input_filename, "_result.log");
  315. fv::util::Log::init_logger(log_filename, fv::util::LogPriority::kLogDebug);
  316. string output_filename = replace_suffix(input_filename, "_result.root");
  317. MiniTreeDataSet mt(input_filename, output_filename);
  318. enable_branches(mt);
  319. declare_values(mt);
  320. declare_containers(mt);
  321. mt.process(silent);
  322. mt.save_all();
  323. }
  324. int main(int argc, char * argv[])
  325. {
  326. fv::util::ArgParser args(argc, argv);
  327. if(!args.cmdOptionExists("-f")) {
  328. cout << "Usage: ./main (-s) -f input_minitree.root" << endl;
  329. return -1;
  330. }
  331. bool silent = args.cmdOptionExists("-s");
  332. string input_filename = args.getCmdOption("-f");
  333. run_analysis(input_filename, silent);
  334. }