File indexing completed on 2024-12-05 02:48:10
0001 #ifndef AnalysisConfig_h
0002 #define AnalysisConfig_h
0003
0004 #include "TString.h"
0005 #include "rooutil.h"
0006 #include "Trktree.h"
0007 #include "ModuleConnectionMap.h"
0008
0009 class AnalysisConfig {
0010 public:
0011
0012 int mode;
0013
0014 int streams;
0015
0016
0017 TString input_raw_string;
0018
0019
0020 TString input_file_list_tstring;
0021
0022
0023 TString input_tree_name;
0024
0025
0026 TFile* output_tfile;
0027
0028
0029 int n_events;
0030
0031
0032 int specific_event_index;
0033
0034
0035 bool run_eff_study;
0036
0037
0038 bool run_ineff_study;
0039
0040
0041 int mode_write_ineff_study_debug_ntuple;
0042
0043
0044 bool run_mtv_study;
0045
0046
0047 int ptbound_mode;
0048
0049
0050 float ptCut;
0051
0052
0053 int pdg_id;
0054
0055
0056 int nmatch_threshold;
0057
0058
0059 int verbose;
0060
0061
0062 bool print_conn;
0063
0064
0065 bool print_boundary;
0066
0067
0068 bool print_centroid;
0069
0070
0071 bool debug;
0072
0073
0074 TChain* events_tchain;
0075
0076
0077
0078 int nsplit_jobs;
0079
0080
0081 int job_index;
0082
0083
0084 RooUtil::Looper<Trktree> looper;
0085
0086
0087 RooUtil::Cutflow cutflow;
0088
0089
0090 RooUtil::Histograms histograms;
0091
0092
0093 TTree* output_ttree;
0094
0095
0096 RooUtil::TTreeX* tx;
0097
0098
0099 bool write_lst_ntuple;
0100
0101
0102 std::map<int, std::array<float, 6>> moduleBoundaries;
0103 std::map<int, std::vector<std::vector<float>>> moduleSimHits;
0104 std::map<int, int> modulePopulation;
0105
0106 lst::ModuleConnectionMap moduleConnectiongMapLoose;
0107
0108
0109 bool do_cut_value_ntuple;
0110
0111
0112 bool do_write_ntuple;
0113
0114
0115 bool do_lower_level;
0116
0117
0118 bool gnn_ntuple;
0119
0120
0121 std::string compilation_target;
0122
0123
0124 TString track_looper_dir_path;
0125
0126
0127 TString full_cmd_line;
0128
0129
0130 bool tc_pls_triplets;
0131
0132
0133 bool no_pls_dupclean;
0134 };
0135
0136 extern AnalysisConfig ana;
0137
0138 #endif