Complete Class Reference
This page provides comprehensive API documentation for all C++ classes in the AnalysisG framework.
Template Classes
Event Template
-
class event_template : public tools
Subclassed by bsm_4tops, exp_mc20, gnn_event, ssml_mc20
Public Functions
-
event_template()
-
virtual ~event_template()
-
void add_leaf(std::string key, std::string leaf = "")
-
virtual event_template *clone()
-
virtual void CompileEvent()
-
std::vector<particle_template*> double_neutrino(std::vector<particle_template*> *targets, double phi, double met, double limit = 1e3)
-
std::map<std::string, event_template*> build_event(std::map<std::string, data_t*> *evnt)
-
bool operator==(event_template &p)
-
void flush_particles()
Public Members
-
cproperty<std::vector<std::string>, event_template> trees
-
cproperty<std::vector<std::string>, event_template> branches
-
cproperty<std::vector<std::string>, event_template> leaves
-
cproperty<std::string, event_template> name
-
cproperty<std::string, event_template> hash
-
cproperty<std::string, event_template> tree
-
cproperty<double, event_template> weight
-
cproperty<long, event_template> index
-
std::map<std::string, std::string> m_trees
-
std::map<std::string, std::string> m_branches
-
std::map<std::string, std::string> m_leaves
-
std::string filename = ""
Public Static Functions
-
static void set_trees(std::vector<std::string>*, event_template*)
-
static void set_branches(std::vector<std::string>*, event_template*)
-
static void get_leaves(std::vector<std::string>*, event_template*)
-
static void set_name(std::string*, event_template*)
-
static void set_hash(std::string*, event_template*)
-
static void get_hash(std::string*, event_template*)
-
static void set_tree(std::string*, event_template*)
-
static void get_tree(std::string*, event_template*)
-
static void set_weight(double*, event_template*)
-
static void set_index(long*, event_template*)
-
event_template()
Particle Template
-
class particle_template : public tools
Subclassed by child, electron, electron, electron, jet, jet, jet, jetparton, lepton, muon, muon, muon, neutrino, particle_gnn, parton, physics_detector, physics_truth, top, top, top, top, top_children, truthjet, truthjet, truthjetparton, zboson, zprime
Public Functions
-
particle_template()
-
virtual ~particle_template()
-
explicit particle_template(particle_t *p)
-
explicit particle_template(particle_template *p, bool dump = false)
-
explicit particle_template(double px, double py, double pz, double e)
-
explicit particle_template(double px, double py, double pz)
-
void to_cartesian()
-
void to_polar()
-
bool is(std::vector<int> p)
-
double DeltaR(particle_template *p)
-
bool operator==(particle_template &p)
-
void operator+=(particle_template *p)
-
void iadd(particle_template *p)
-
bool register_parent(particle_template *p)
-
bool register_child(particle_template *p)
-
void add_leaf(std::string key, std::string leaf = "")
-
void apply_type_prefix()
-
std::map<std::string, std::map<std::string, particle_t>> __reduce__()
-
virtual void build(std::map<std::string, particle_template*> *event, element_t *el)
-
virtual particle_template *clone()
Public Members
-
cproperty<double, particle_template> e
-
cproperty<double, particle_template> pt
-
cproperty<double, particle_template> eta
-
cproperty<double, particle_template> phi
-
cproperty<double, particle_template> px
-
cproperty<double, particle_template> py
-
cproperty<double, particle_template> pz
-
cproperty<double, particle_template> mass
-
cproperty<double, particle_template> P
-
cproperty<double, particle_template> beta
-
cproperty<int, particle_template> pdgid
-
cproperty<std::string, particle_template> symbol
-
cproperty<double, particle_template> charge
-
cproperty<std::string, particle_template> hash
-
cproperty<bool, particle_template> is_b
-
cproperty<bool, particle_template> is_lep
-
cproperty<bool, particle_template> is_nu
-
cproperty<bool, particle_template> is_add
-
cproperty<bool, particle_template> lep_decay
-
cproperty<std::map<std::string, particle_template*>, particle_template> parents
-
cproperty<std::map<std::string, particle_template*>, particle_template> children
-
cproperty<std::string, particle_template> type
-
cproperty<int, particle_template> index
-
std::map<std::string, particle_template*> m_parents
-
std::map<std::string, particle_template*> m_children
-
std::map<std::string, std::string> leaves = {}
-
particle_t data
-
bool _is_serial = false
-
bool _is_marked = false
Public Static Functions
-
static void set_e(double*, particle_template*)
-
static void get_e(double*, particle_template*)
-
static void set_pt(double*, particle_template*)
-
static void get_pt(double*, particle_template*)
-
static void set_eta(double*, particle_template*)
-
static void get_eta(double*, particle_template*)
-
static void set_phi(double*, particle_template*)
-
static void get_phi(double*, particle_template*)
-
static void set_px(double*, particle_template*)
-
static void get_px(double*, particle_template*)
-
static void set_py(double*, particle_template*)
-
static void get_py(double*, particle_template*)
-
static void set_pz(double*, particle_template*)
-
static void get_pz(double*, particle_template*)
-
static void set_mass(double*, particle_template*)
-
static void get_mass(double*, particle_template*)
-
static void get_P(double*, particle_template*)
-
static void get_beta(double*, particle_template*)
-
static void set_pdgid(int*, particle_template*)
-
static void get_pdgid(int*, particle_template*)
-
static void set_symbol(std::string*, particle_template*)
-
static void get_symbol(std::string*, particle_template*)
-
static void set_charge(double*, particle_template*)
-
static void get_charge(double*, particle_template*)
-
static void get_hash(std::string*, particle_template*)
-
static void get_isb(bool*, particle_template*)
-
static void get_islep(bool*, particle_template*)
-
static void get_isnu(bool*, particle_template*)
-
static void get_isadd(bool*, particle_template*)
-
static void get_lepdecay(bool*, particle_template*)
-
static void set_parents(std::map<std::string, particle_template*>*, particle_template*)
-
static void get_parents(std::map<std::string, particle_template*>*, particle_template*)
-
static void set_children(std::map<std::string, particle_template*>*, particle_template*)
-
static void get_children(std::map<std::string, particle_template*>*, particle_template*)
-
static void set_type(std::string*, particle_template*)
-
static void get_type(std::string*, particle_template*)
-
static void set_index(int*, particle_template*)
-
static void get_index(int*, particle_template*)
-
particle_template()
Graph Template
-
class graph_template : public tools
Subclassed by graph_children, graph_detector, graph_detector, graph_detector, graph_jets, graph_jets, graph_jets, graph_jets_detector_lep, graph_jets_detector_lep, graph_jets_detector_lep, graph_jets_nonu, graph_jets_nonu, graph_jets_nonu, graph_tops, graph_truthjets, graph_truthjets_nonu
Public Functions
-
graph_template()
-
virtual ~graph_template()
-
virtual graph_template *clone()
-
virtual void CompileEvent()
-
virtual bool PreSelection()
-
void define_particle_nodes(std::vector<particle_template*> *prt)
-
void define_topology(std::function<bool(particle_template*, particle_template*)> fx)
-
void flush_particles()
-
bool operator==(graph_template &p)
-
template<typename G, typename O, typename X>
inline void add_graph_truth_feature(O *ev, X fx, std::string _name)
-
template<typename G, typename O, typename X>
inline void add_graph_data_feature(O *ev, X fx, std::string _name)
-
template<typename G, typename O, typename X>
inline void add_node_truth_feature(X fx, std::string _name)
-
template<typename G, typename O, typename X>
inline void add_node_data_feature(X fx, std::string _name)
Public Members
-
cproperty<long, graph_template> index
-
cproperty<double, graph_template> weight
-
cproperty<bool, graph_template> preselection
-
cproperty<std::string, graph_template> hash
-
cproperty<std::string, graph_template> tree
-
cproperty<std::string, graph_template> name
-
int threadIdx = -1
-
std::string filename = ""
-
graph_template()
Model Template
-
class model_template : public notification, public tools
Subclassed by grift, recursivegraphneuralnetwork
Public Functions
-
model_template()
-
virtual ~model_template()
-
virtual model_template *clone()
-
virtual void train_sequence(bool mode)
-
void set_optimizer(std::string name)
-
void initialize(optimizer_params_t*)
-
void clone_settings(model_settings_t *setd)
-
void import_settings(model_settings_t *setd)
-
void register_module(torch::nn::Sequential *data)
-
void register_module(torch::nn::Sequential *data, mlp_init weight_init)
-
void prediction_graph_feature(std::string, torch::Tensor)
-
void prediction_node_feature(std::string, torch::Tensor)
-
void prediction_edge_feature(std::string, torch::Tensor)
-
void prediction_extra(std::string, torch::Tensor)
-
torch::Tensor *compute_loss(std::string, graph_enum)
-
void evaluation_mode(bool mode = true)
-
void save_state()
-
bool restore_state()
Public Members
-
cproperty<int, model_template> device_index
-
cproperty<std::string, model_template> name
-
cproperty<std::string, model_template> device
-
int kfold
-
int epoch
-
bool is_mc = false
-
bool use_pkl = false
-
bool inference_mode = false
-
bool enable_anomaly = false
-
bool retain_graph = false
-
std::string model_checkpoint_path = ""
-
std::string weight_name = "event_weight"
-
std::string tree_name = "nominal"
-
std::vector<torch::Tensor*> _losses = {}
-
torch::optim::Optimizer *m_optim = nullptr
-
cproperty<std::map<std::string, std::string>, std::map<std::string, std::tuple<torch::Tensor*, lossfx*>>> o_graph
-
cproperty<std::map<std::string, std::string>, std::map<std::string, std::tuple<torch::Tensor*, lossfx*>>> o_node
Friends
- friend struct graph_t
- friend struct model_report
- friend class metrics
- friend class analysis
- friend class optimizer
- friend class dataloader
- friend class metric_template
-
model_template()
Selection Template
-
class selection_template : public tools
Subclassed by childrenkinematics, combinatorial, decaymodes, matching, met, met, parton, regions, topefficiency, topjets, topkinematics, topkinematics, topmatching, topmatching, toptruthjets, validation, zprime, zprime
Public Functions
-
selection_template()
-
virtual ~selection_template()
-
virtual selection_template *clone()
-
virtual bool selection(event_template *ev)
-
virtual bool strategy(event_template *ev)
-
virtual void merge(selection_template *sel)
-
virtual void bulk_write(const long *idx, std::string *hx)
-
virtual void write(std::vector<particle_template*> *particles, std::string _name, particle_enum attrs)
-
template<typename g>
inline void write(std::vector<g*> *particles, std::string _name, particle_enum attrs)
-
void switch_board(particle_enum attrs, particle_template *ptr, std::vector<std::vector<double>> *data)
-
void switch_board(particle_enum attrs, particle_template *ptr, std::vector<int> *data)
-
void switch_board(particle_enum attrs, particle_template *ptr, std::vector<double> *data)
-
void switch_board(particle_enum attrs, particle_template *ptr, std::vector<bool> *data)
-
std::vector<std::map<std::string, float>> reverse_hash(std::vector<std::string> *hashes)
-
bool CompileEvent()
-
selection_template *build(event_template *ev)
-
bool operator==(selection_template &p)
-
template<typename g>
inline void downcast(std::vector<g*> *inpt, std::vector<particle_template*> *out)
-
template<typename o, typename g>
inline void upcast(std::map<std::string, o*> *inpt, std::vector<g*> *out)
-
template<typename g>
inline void get_leptonics(std::map<std::string, g*> inpt, std::vector<particle_template*> *out)
Public Members
-
cproperty<std::string, selection_template> name
-
cproperty<std::string, selection_template> hash
-
cproperty<std::string, selection_template> tree
-
cproperty<double, selection_template> weight
-
cproperty<long, selection_template> index
-
std::string filename = ""
-
int threadIdx = -1
-
std::map<std::string, std::map<std::string, float>> passed_weights = {}
Public Static Functions
-
static void set_name(std::string*, selection_template*)
-
static void get_name(std::string*, selection_template*)
-
static void set_hash(std::string*, selection_template*)
-
static void get_hash(std::string*, selection_template*)
-
static void get_tree(std::string*, selection_template*)
-
static void set_weight(double*, selection_template*)
-
static void get_weight(double*, selection_template*)
-
static void set_index(long*, selection_template*)
-
selection_template()
Metric Template
-
class metric_template : public tools, public notification
Subclassed by accuracy_metric, pagerank_metric
Public Functions
-
metric_template()
-
virtual ~metric_template()
-
virtual metric_template *clone()
-
virtual void define_variables()
-
virtual void event()
-
virtual void batch()
-
virtual void end()
-
template<typename T>
inline void write(std::string tree, std::string __name, T *t, bool fill = false)
-
std::vector<particle_template*> make_particle(std::vector<std::vector<double>> *pt, std::vector<std::vector<double>> *eta, std::vector<std::vector<double>> *phi, std::vector<std::vector<double>> *energy)
Public Members
-
cproperty<std::string, metric_template> name
-
cproperty<std::string, metric_template> output_path
-
cproperty<std::vector<std::string>, metric_template> variables
-
cproperty<std::map<std::string, std::string>, metric_template> run_names
-
metric_template()
Framework Classes
Analysis
-
class analysis : public notification, public tools
Public Functions
-
analysis()
-
~analysis()
-
void add_samples(std::string path, std::string label)
-
void add_selection_template(selection_template *sel)
-
void add_event_template(event_template *ev, std::string label)
-
void add_graph_template(graph_template *gr, std::string label)
-
void add_metric_template(metric_template *mx, model_template *mdl)
-
void add_model(model_template *model, optimizer_params_t *op, std::string run_name)
-
void add_model(model_template *model, std::string run_name)
-
void attach_threads()
-
void start()
-
std::map<std::string, std::vector<float>> progress()
-
std::map<std::string, std::string> progress_mode()
-
std::map<std::string, std::string> progress_report()
-
std::map<std::string, bool> is_complete()
-
analysis()
Container
-
class container : public tools
Public Functions
-
container()
-
~container()
-
bool add_selection_template(selection_template*)
-
bool add_event_template(event_template*, std::string label)
-
bool add_graph_template(graph_template*, std::string label)
-
void fill_selections(std::map<std::string, selection_template*> *inpt)
-
void get_events(std::vector<event_template*>*, std::string label)
-
void populate_dataloader(dataloader *dl)
-
void compile(size_t *len, int threadIdx)
-
size_t len()
-
container()
DataLoader
-
class dataloader : public notification, public tools
Public Functions
-
dataloader()
-
~dataloader()
-
std::vector<graph_t*> *build_batch(std::vector<graph_t*> *data, model_template *mdl, model_report *rep)
-
void generate_test_set(float percentage = 50)
-
void generate_kfold_set(int k)
-
void dump_dataset(std::string path)
-
bool restore_dataset(std::string path)
-
void datatransfer(torch::TensorOptions *op, size_t *num_events = nullptr, size_t *prg_events = nullptr)
-
void datatransfer(std::map<int, torch::TensorOptions*> *ops)
-
bool dump_graphs(std::string path = "./", int threads = 10)
-
void restore_graphs(std::vector<std::string> paths, int threads)
-
void restore_graphs(std::string paths, int threads)
-
void start_cuda_server()
-
dataloader()
IO
-
class io : public tools, public notification
Public Functions
-
io()
-
~io()
-
void read(graph_hdf5_w *out, std::string set_name)
-
bool start(std::string filename, std::string read_write)
-
void end()
-
std::vector<std::string> dataset_names()
-
std::map<std::string, long> root_size()
-
void check_root_file_paths()
-
bool scan_keys()
-
void root_begin()
-
void root_end()
-
void trigger_pcm()
-
void import_settings(settings_t *params)
Public Members
-
bool enable_pyami = true
-
std::string metacache_path = "./"
-
std::string current_working_path = "."
-
std::string sow_name = ""
-
std::vector<std::string> trees = {}
-
std::vector<std::string> branches = {}
-
std::vector<std::string> leaves = {}
-
std::map<std::string, TFile*> files_open = {}
-
std::map<std::string, std::map<std::string, TTree*>> tree_data = {}
-
std::map<std::string, std::map<std::string, long>> tree_entries = {}
-
std::map<std::string, std::map<std::string, TBranch*>> branch_data = {}
-
std::map<std::string, std::map<std::string, TLeaf*>> leaf_data = {}
-
std::map<std::string, std::map<std::string, std::string>> leaf_typed = {}
-
std::map<std::string, bool> root_files = {}
-
std::map<std::string, std::map<std::string, std::map<std::string, std::vector<std::string>>>> keys
-
io()
LossFx
-
class lossfx : public tools, public notification
Public Functions
-
lossfx()
-
lossfx(std::string var, std::string enx)
-
~lossfx()
-
loss_enum loss_string(std::string name)
-
opt_enum optim_string(std::string name)
-
scheduler_enum scheduler_string(std::string name)
-
void loss_opt_string(std::string name)
-
torch::Tensor loss(torch::Tensor *pred, torch::Tensor *truth)
-
torch::Tensor loss(torch::Tensor *pred, torch::Tensor *truth, loss_enum lss)
-
void weight_init(torch::nn::Sequential *data, mlp_init method)
-
torch::optim::Optimizer *build_optimizer(optimizer_params_t *op, std::vector<torch::Tensor> *params)
-
void build_scheduler(optimizer_params_t *op, torch::optim::Optimizer *opx)
-
bool build_loss_function(loss_enum lss)
-
bool build_loss_function()
-
void to(torch::TensorOptions*)
-
void step()
-
lossfx()
Meta
Metrics
-
class metrics : public tools, public notification
Public Functions
-
metrics()
-
~metrics()
-
void dump_plots(int k)
-
void dump_loss_plots(int k)
-
void dump_accuracy_plots(int k)
-
void dump_mass_plots(int k)
-
model_report *register_model(model_template *model, int kfold)
-
void capture(mode_enum, int kfold, int epoch, int smpl_len)
Public Members
-
std::string output_path
-
const std::vector<Color_t> colors_h = {kRed, kGreen, kBlue, kCyan, kViolet, kOrange, kCoffee, kAurora}
-
settings_t m_settings
-
metrics()
Notification
-
class notification
Subclassed by analysis, dataloader, io, lossfx, meta, metric_template, metrics, model_template, nusol, optimizer, plotting, sampletracer
Public Functions
-
notification()
-
~notification()
-
void success(std::string message)
-
void warning(std::string message)
-
void failure(std::string message)
-
void info(std::string message)
-
void progressbar(float prog, std::string title)
-
void progressbar(std::vector<size_t> *threads, std::vector<size_t> *trgt, std::vector<std::string> *title)
-
int running(std::vector<std::thread*> *thr, std::vector<size_t> *prg, std::vector<size_t> *trgt)
-
void monitor(std::vector<std::thread*> *thr)
Public Members
-
std::string prefix
-
int _warning = 33
-
int _failure = 31
-
int _success = 32
-
int _info = 37
-
bool bold = false
-
bool shush = false
Public Static Functions
-
static void progressbar1(std::vector<size_t> *threads, size_t l, std::string title)
-
static void progressbar2(std::vector<size_t> *threads, size_t *l, std::string *title)
-
static void progressbar3(std::vector<size_t> *threads, std::vector<size_t> *l, std::vector<std::string*> *title)
-
notification()
Optimizer
-
class optimizer : public tools, public notification
Public Functions
-
optimizer()
-
~optimizer()
-
void import_dataloader(dataloader *dl)
-
void import_model_sessions(std::tuple<model_template*, optimizer_params_t*> *models)
-
void training_loop(int k, int epoch)
-
void validation_loop(int k, int epoch)
-
void evaluation_loop(int k, int epoch)
-
void launch_model(int k)
Public Members
-
settings_t m_settings
-
std::map<int, model_template*> kfold_sessions = {}
-
std::map<std::string, model_report*> reports = {}
-
dataloader *loader = nullptr
-
optimizer()
Plotting
-
class plotting : public tools, public notification
Subclassed by roc
Public Functions
-
plotting()
-
~plotting()
-
std::string build_path()
-
float get_max(std::string dim)
-
float get_min(std::string dim)
-
float sum_of_weights()
-
void build_error()
-
std::tuple<float, float> mean_stdev(std::vector<float> *data)
Public Members
-
std::string extension = ".pdf"
-
std::string filename = "untitled"
-
std::string output_path = "./Figures"
-
float x_min = 0
-
float y_min = 0
-
float x_max = 0
-
float y_max = 0
-
int x_bins = 100
-
int y_bins = 100
-
bool errors = false
-
bool counts = false
-
std::string style = "ROOT"
-
std::string title = "untitled"
-
std::string ytitle = "y-axis"
-
std::string xtitle = "x-axis"
-
std::string histfill = "fill"
-
std::string overflow = "sum"
-
std::string marker = "."
-
std::string hatch = ""
-
std::string linestyle = "-"
-
std::string color = ""
-
std::vector<std::string> colors = {}
-
bool stack = false
-
bool density = false
-
bool x_logarithmic = false
-
bool y_logarithmic = false
-
float line_width = 0.1
-
float cap_size = 1.0
-
float alpha = 0.4
-
float x_step = -1
-
float y_step = -1
-
float font_size = 10
-
float axis_size = 12.5
-
float legend_size = 10
-
float title_size = 10
-
bool use_latex = true
-
int dpi = 400
-
float xscaling = 1.25 * 6.4
-
float yscaling = 1.25 * 4.8
-
bool auto_scale = true
-
std::vector<float> x_data = {}
-
std::vector<float> y_data = {}
-
std::vector<float> y_error_up = {}
-
std::vector<float> y_error_down = {}
-
std::unordered_map<std::string, float> x_labels = {}
-
std::unordered_map<std::string, float> y_labels = {}
-
std::vector<float> variable_x_bins = {}
-
std::vector<float> variable_y_bins = {}
-
std::vector<float> weights = {}
-
float cross_section = -1
-
float integrated_luminosity = 140.1
-
plotting()
SampleTracer
-
class sampletracer : public tools, public notification
Public Functions
-
sampletracer()
-
~sampletracer()
-
std::vector<event_template*> get_events(std::string label)
-
void fill_selections(std::map<std::string, selection_template*> *inpt)
-
bool add_event(event_template *ev, std::string label)
-
bool add_graph(graph_template *gr, std::string label)
-
bool add_selection(selection_template *sel)
-
void populate_dataloader(dataloader *dl)
-
void compile_objects(int threads)
Public Members
-
std::string *output_path = nullptr
-
sampletracer()
Tools
-
class tools
Subclassed by analysis, collector, collector, container, dataloader, event_template, graph_template, io, lossfx, meta, metric_template, metrics, model_template, nusol, odeRK, odeRK, optimizer, particle_template, plotting, sampletracer, selection_template
Public Static Functions
-
static void create_path(std::string path)
-
static void delete_path(std::string path)
-
static bool is_file(std::string path)
-
static void rename(std::string start, std::string target)
-
static std::string absolute_path(std::string path)
-
static std::vector<std::string> ls(std::string path, std::string ext = "")
-
static std::string to_string(double val)
-
static std::string to_string(double val, int prec)
-
static void replace(std::string *in, std::string repl_str, std::string repl_with)
-
static bool has_string(std::string *inpt, std::string trg)
-
static bool ends_with(std::string *inpt, std::string val)
-
static bool has_value(std::vector<std::string> *data, std::string trg)
-
static std::vector<std::string> split(std::string in, std::string delim)
-
static std::vector<std::string> split(std::string in, size_t n)
-
static std::string hash(std::string input, int len = 18)
-
static std::string lower(std::string*)
-
static std::string encode64(std::string *data)
-
static std::string encode64(unsigned char const*, unsigned int len)
-
static std::string decode64(std::string *inpt)
-
static std::string decode64(std::string const &s)
-
static void create_path(std::string path)
CProperty
-
template<typename T, typename G>
class cproperty
Event Implementations
BSM 4tops Event
-
class bsm_4tops : public event_template
Public Functions
-
bsm_4tops()
-
virtual ~bsm_4tops()
-
virtual event_template *clone() override
-
virtual void CompileEvent() override
Public Members
-
std::vector<particle_template*> Tops = {}
-
std::vector<particle_template*> Children = {}
-
std::vector<particle_template*> TruthJets = {}
-
std::vector<particle_template*> Jets = {}
-
std::vector<particle_template*> Electrons = {}
-
std::vector<particle_template*> Muons = {}
-
std::vector<particle_template*> DetectorObjects = {}
-
unsigned long long event_number = 0
-
float mu = 0
-
float met = 0
-
float phi = 0
-
bsm_4tops()
EXP MC20 Event
-
class exp_mc20 : public event_template
Public Functions
-
exp_mc20()
-
virtual ~exp_mc20()
-
virtual event_template *clone() override
-
virtual void CompileEvent() override
Public Members
-
std::vector<particle_template*> Tops
-
std::vector<particle_template*> TopChildren
-
std::vector<particle_template*> PhysicsTruth
-
std::vector<particle_template*> PhysicsDetector
-
std::vector<particle_template*> Jets
-
std::vector<particle_template*> Leptons
-
std::vector<particle_template*> Detector
-
unsigned long long event_number = 0
-
float met_sum = 0
-
float met = 0
-
float phi = 0
-
float mu = 0
-
exp_mc20()
GNN Event
-
class gnn_event : public event_template
Public Functions
-
gnn_event()
-
~gnn_event() override
-
virtual event_template *clone() override
-
virtual void CompileEvent() override
Public Members
-
int num_bjets = 0
-
double num_jets = 0
-
double num_leps = 0
-
double met = 0
-
double phi = 0
-
int p_ntops = 0
-
int p_signal = 0
-
float s_ntops = 0
-
float s_signal = 0
-
std::vector<float> ntops_scores = {}
-
std::vector<float> signal_scores = {}
-
std::vector<std::vector<float>> edge_res_scores = {}
-
std::vector<std::vector<float>> edge_top_scores = {}
-
std::vector<particle_gnn*> event_particles = {}
-
std::vector<int> t_edge_res = {}
-
std::vector<int> t_edge_top = {}
-
int t_ntops = 0
-
bool t_signal = 0
-
gnn_event()
SSML MC20 Event
-
class ssml_mc20 : public event_template
Public Functions
-
ssml_mc20()
-
virtual ~ssml_mc20()
-
virtual event_template *clone() override
-
virtual void CompileEvent() override
Public Members
-
unsigned long long eventNumber
-
float event_category
-
float weight_mc
-
float weight_pileup
-
float weight_beamspot
-
float weight_jvt_effSF
-
float weight_lep_tightSF
-
float weight_ftag_effSF
-
float global_trigger_SF
-
float phi
-
float met
-
float met_sum
-
float HT_all
-
int pass_ssee
-
int pass_ssem
-
int pass_ssmm
-
int pass_eem_zveto
-
int pass_eee_zveto
-
int pass_emm_zveto
-
int pass_mmm_zveto
-
int pass_llll_zveto
-
int pass_eem
-
int pass_eee
-
int pass_emm
-
int pass_mmm
-
bool broken_event = false
-
int n_electrons
-
int n_fjets
-
int n_jets
-
int n_leptons
-
int n_muons
-
std::vector<particle_template*> Tops
-
std::vector<particle_template*> TruthChildren
-
std::vector<particle_template*> Zprime
-
std::vector<particle_template*> Leptsn
-
std::vector<particle_template*> Electrons
-
std::vector<particle_template*> Jets
-
std::vector<particle_template*> Leptons
-
std::vector<particle_template*> Detector
-
std::vector<particle_template*> TruthJets
-
ssml_mc20()
Particle Implementations
Electron
-
class electron : public particle_template, public particle_template, public particle_template
Public Functions
-
electron()
-
virtual ~electron()
-
virtual particle_template *clone() override
-
virtual void build(std::map<std::string, particle_template*> *prt, element_t *el) override
-
electron()
-
virtual ~electron()
-
virtual particle_template *clone() override
-
virtual void build(std::map<std::string, particle_template*> *prt, element_t *el) override
-
electron()
-
virtual ~electron()
-
virtual particle_template *clone() override
-
virtual void build(std::map<std::string, particle_template*> *prt, element_t *el) override
-
particle_template()
-
explicit particle_template(particle_t *p)
-
explicit particle_template(particle_template *p, bool dump = false)
-
explicit particle_template(double px, double py, double pz, double e)
-
explicit particle_template(double px, double py, double pz)
-
electron()
Muon
-
class muon : public particle_template, public particle_template, public particle_template
Public Functions
-
muon()
-
virtual ~muon()
-
virtual particle_template *clone() override
-
virtual void build(std::map<std::string, particle_template*> *prt, element_t *el) override
-
muon()
-
virtual ~muon()
-
virtual particle_template *clone() override
-
virtual void build(std::map<std::string, particle_template*> *prt, element_t *el) override
-
muon()
-
virtual ~muon()
-
virtual particle_template *clone() override
-
virtual void build(std::map<std::string, particle_template*> *prt, element_t *el) override
-
particle_template()
-
explicit particle_template(particle_t *p)
-
explicit particle_template(particle_template *p, bool dump = false)
-
explicit particle_template(double px, double py, double pz, double e)
-
explicit particle_template(double px, double py, double pz)
-
muon()
Jet
-
class jet : public particle_template, public particle_template, public particle_template
Public Functions
-
jet()
-
virtual ~jet()
-
virtual particle_template *clone() override
-
virtual void build(std::map<std::string, particle_template*> *prt, element_t *el) override
-
jet()
-
virtual ~jet()
-
virtual particle_template *clone() override
-
virtual void build(std::map<std::string, particle_template*> *prt, element_t *el) override
-
jet()
-
virtual ~jet()
-
virtual particle_template *clone() override
-
virtual void build(std::map<std::string, particle_template*> *prt, element_t *el) override
-
particle_template()
-
explicit particle_template(particle_t *p)
-
explicit particle_template(particle_template *p, bool dump = false)
-
explicit particle_template(double px, double py, double pz, double e)
-
explicit particle_template(double px, double py, double pz)
Public Members
-
std::vector<int> top_index = {}
-
bool btag_DL1r_60
-
bool btag_DL1_60
-
bool btag_DL1r_70
-
bool btag_DL1_70
-
bool btag_DL1r_77
-
bool btag_DL1_77
-
bool btag_DL1r_85
-
bool btag_DL1_85
-
float DL1_b
-
float DL1_c
-
float DL1_u
-
float DL1r_b
-
float DL1r_c
-
float DL1r_u
-
bool btag_65
-
bool btag_70
-
bool btag_77 = false
-
bool btag_85 = false
-
bool btag_90 = false
-
int flav
-
int label
-
int top_index = -1
-
bool sel_85 = false
-
jet()
TruthJet
-
class truthjet : public particle_template, public particle_template
Public Functions
-
truthjet()
-
virtual ~truthjet()
-
virtual particle_template *clone() override
-
virtual void build(std::map<std::string, particle_template*> *prt, element_t *el) override
-
truthjet()
-
virtual ~truthjet()
-
virtual particle_template *clone() override
-
virtual void build(std::map<std::string, particle_template*> *prt, element_t *el) override
-
particle_template()
-
explicit particle_template(particle_t *p)
-
explicit particle_template(particle_template *p, bool dump = false)
-
explicit particle_template(double px, double py, double pz, double e)
-
explicit particle_template(double px, double py, double pz)
-
truthjet()
Lepton
-
class lepton : public particle_template
Public Functions
-
lepton()
-
virtual ~lepton()
-
virtual particle_template *clone() override
-
virtual void build(std::map<std::string, particle_template*> *prt, element_t *el) override
Public Members
-
int ambiguity = 99
-
lepton()
Neutrino
-
class neutrino : public particle_template
Top
-
class top : public particle_template, public particle_template, public particle_template, public particle_template
Public Functions
-
top()
-
virtual ~top()
-
virtual particle_template *clone() override
-
virtual void build(std::map<std::string, particle_template*> *prt, element_t *el) override
-
top()
-
virtual ~top()
-
virtual particle_template *clone() override
-
virtual void build(std::map<std::string, particle_template*> *prt, element_t *el) override
-
top()
-
~top()
-
top()
-
virtual ~top()
-
virtual particle_template *clone() override
-
virtual void build(std::map<std::string, particle_template*> *prt, element_t *el) override
-
particle_template()
-
explicit particle_template(particle_t *p)
-
explicit particle_template(particle_template *p, bool dump = false)
-
explicit particle_template(double px, double py, double pz, double e)
-
explicit particle_template(double px, double py, double pz)
Public Members
-
bool from_res = false
-
int status = -1
-
int top_index = -1
-
float av_score = 0
-
int n_leps = 0
-
int n_nodes = 0
-
std::vector<particle_template*> jets = {}
-
std::vector<particle_template*> leptons = {}
-
std::vector<particle_template*> truthjets = {}
-
top()
Child
-
class child : public particle_template
Public Functions
-
child()
-
virtual ~child()
-
virtual particle_template *clone() override
-
virtual void build(std::map<std::string, particle_template*> *prt, element_t *el) override
Public Members
-
std::vector<int> top_index = {}
-
child()
Parton
-
class parton : public particle_template, public selection_template
Public Functions
-
parton()
-
virtual ~parton()
-
virtual particle_template *clone() override
-
virtual void build(std::map<std::string, particle_template*> *prt, element_t *el) override
-
parton()
-
~parton() override
-
virtual selection_template *clone() override
-
virtual bool selection(event_template *ev) override
-
virtual bool strategy(event_template *ev) override
-
virtual void merge(selection_template *sl) override
Public Members
-
int top_index = -1
-
int jet_index = -1
-
int truthjet_index = -1
-
int muon_index = -1
-
int electron_index = -1
-
std::map<std::string, std::vector<float>> ntops_tjets_pt
-
std::map<std::string, std::vector<float>> ntops_tjets_e
-
std::map<std::string, std::vector<float>> ntops_jets_pt
-
std::map<std::string, std::vector<float>> ntops_jets_e
-
std::map<std::string, std::vector<float>> nparton_tjet_e
-
std::map<std::string, std::vector<float>> nparton_jet_e
-
std::map<std::string, std::vector<float>> frac_parton_tjet_e
-
std::map<std::string, std::vector<float>> frac_parton_jet_e
-
std::map<std::string, std::vector<float>> frac_ntop_tjet_contribution
-
std::map<std::string, std::vector<float>> frac_ntop_jet_contribution
-
std::map<std::string, std::vector<float>> frac_mass_top
-
parton()
JetParton
-
class jetparton : public particle_template
Public Functions
-
jetparton()
-
virtual ~jetparton()
-
virtual particle_template *clone() override
-
virtual void build(std::map<std::string, particle_template*> *prt, element_t *el) override
-
particle_template()
-
explicit particle_template(particle_t *p)
-
explicit particle_template(particle_template *p, bool dump = false)
-
explicit particle_template(double px, double py, double pz, double e)
-
explicit particle_template(double px, double py, double pz)
-
jetparton()
TruthJetParton
-
class truthjetparton : public particle_template
Public Functions
-
truthjetparton()
-
virtual ~truthjetparton()
-
virtual particle_template *clone() override
-
virtual void build(std::map<std::string, particle_template*> *prt, element_t *el) override
-
particle_template()
-
explicit particle_template(particle_t *p)
-
explicit particle_template(particle_template *p, bool dump = false)
-
explicit particle_template(double px, double py, double pz, double e)
-
explicit particle_template(double px, double py, double pz)
-
truthjetparton()
ZBoson
-
class zboson : public particle_template
Public Functions
-
zboson()
-
virtual ~zboson()
-
virtual particle_template *clone() override
-
virtual void build(std::map<std::string, particle_template*> *prt, element_t *el) override
-
zboson()
Particle GNN
-
class particle_gnn : public particle_template
Public Functions
-
particle_gnn()
-
~particle_gnn()
-
virtual particle_template *clone() override
-
virtual void build(std::map<std::string, particle_template*> *prt, element_t *el) override
Public Members
-
bool lep = false
-
particle_gnn()
Graph Implementations
Graph Children
-
class graph_children : public graph_template
Public Functions
-
graph_children()
-
virtual ~graph_children()
-
virtual graph_template *clone() override
-
virtual void CompileEvent() override
-
graph_children()
Graph Detector
-
class graph_detector : public graph_template, public graph_template, public graph_template
Public Functions
-
graph_detector()
-
virtual ~graph_detector()
-
virtual graph_template *clone() override
-
virtual void CompileEvent() override
-
virtual bool PreSelection() override
-
graph_detector()
-
~graph_detector() override
-
virtual graph_template *clone() override
-
virtual void CompileEvent() override
-
graph_detector()
-
~graph_detector() override
-
virtual graph_template *clone() override
-
virtual void CompileEvent() override
Public Members
-
std::vector<particle_template*> nux = {}
-
bool force_match = false
-
int num_cuda = 1
-
graph_detector()
Graph Jets
-
class graph_jets : public graph_template, public graph_template, public graph_template
Public Functions
-
graph_jets()
-
virtual ~graph_jets()
-
virtual graph_template *clone() override
-
virtual void CompileEvent() override
-
virtual bool PreSelection() override
-
graph_jets()
-
~graph_jets() override
-
virtual graph_template *clone() override
-
virtual void CompileEvent() override
-
graph_jets()
-
~graph_jets() override
-
virtual graph_template *clone() override
-
virtual void CompileEvent() override
-
graph_jets()
Graph Jets Detector Lep
-
class graph_jets_detector_lep : public graph_template, public graph_template, public graph_template
Public Functions
-
graph_jets_detector_lep()
-
virtual ~graph_jets_detector_lep()
-
virtual graph_template *clone() override
-
virtual void CompileEvent() override
-
graph_jets_detector_lep()
-
~graph_jets_detector_lep() override
-
virtual graph_template *clone() override
-
virtual void CompileEvent() override
-
graph_jets_detector_lep()
-
~graph_jets_detector_lep() override
-
virtual graph_template *clone() override
-
virtual void CompileEvent() override
-
graph_jets_detector_lep()
Graph Jets NoNu
-
class graph_jets_nonu : public graph_template, public graph_template, public graph_template
Public Functions
-
graph_jets_nonu()
-
virtual ~graph_jets_nonu()
-
virtual graph_template *clone() override
-
virtual void CompileEvent() override
-
graph_jets_nonu()
-
~graph_jets_nonu() override
-
virtual graph_template *clone() override
-
virtual void CompileEvent() override
-
graph_jets_nonu()
-
~graph_jets_nonu() override
-
virtual graph_template *clone() override
-
virtual void CompileEvent() override
-
graph_jets_nonu()
Graph Tops
-
class graph_tops : public graph_template
Public Functions
-
graph_tops()
-
virtual ~graph_tops()
-
virtual graph_template *clone() override
-
virtual void CompileEvent() override
-
graph_tops()
Graph TruthJets
-
class graph_truthjets : public graph_template
Public Functions
-
graph_truthjets()
-
virtual ~graph_truthjets()
-
virtual graph_template *clone() override
-
virtual void CompileEvent() override
-
graph_truthjets()
Graph TruthJets NoNu
-
class graph_truthjets_nonu : public graph_template
Public Functions
-
graph_truthjets_nonu()
-
virtual graph_template *clone() override
-
virtual ~graph_truthjets_nonu()
-
virtual void CompileEvent() override
-
graph_truthjets_nonu()
Top Children
-
class top_children : public particle_template
Public Functions
-
top_children()
-
virtual ~top_children()
-
virtual particle_template *clone() override
-
virtual void build(std::map<std::string, particle_template*> *prt, element_t *el) override
-
particle_template()
-
explicit particle_template(particle_t *p)
-
explicit particle_template(particle_template *p, bool dump = false)
-
explicit particle_template(double px, double py, double pz, double e)
-
explicit particle_template(double px, double py, double pz)
-
top_children()
Physics Detector
-
class physics_detector : public particle_template
Public Functions
-
physics_detector()
-
virtual ~physics_detector()
-
virtual particle_template *clone() override
-
virtual void build(std::map<std::string, particle_template*> *prt, element_t *el) override
Public Members
-
std::vector<int> top_index = {}
-
physics_detector()
Physics Truth
-
class physics_truth : public particle_template
Public Functions
-
physics_truth()
-
virtual ~physics_truth()
-
virtual particle_template *clone() override
-
virtual void build(std::map<std::string, particle_template*> *prt, element_t *el) override
Public Members
-
std::vector<int> top_index = {}
-
physics_truth()
Model Implementations
RecursiveGraphNeuralNetwork
-
class recursivegraphneuralnetwork : public model_template
Public Functions
-
recursivegraphneuralnetwork(int rep = 1024, double dpt = 0.1)
-
~recursivegraphneuralnetwork()
-
virtual model_template *clone() override
-
torch::Tensor message(torch::Tensor trk_i, torch::Tensor trk_j, torch::Tensor pmc, torch::Tensor pmc_i, torch::Tensor pmc_j, torch::Tensor hx_i, torch::Tensor hx_j)
Public Members
-
int _dx = 26
-
int _x = 5
-
int _output = 2
-
int _rep = 256
-
double res_mass = 0
-
double drop_out = 0.1
-
bool is_mc = true
-
torch::nn::Sequential *rnn_x = nullptr
-
torch::nn::Sequential *rnn_dx = nullptr
-
torch::nn::Sequential *rnn_merge = nullptr
-
torch::nn::Sequential *rnn_update = nullptr
-
torch::nn::Sequential *exotic_mlp = nullptr
-
torch::nn::Sequential *node_aggr_mlp = nullptr
-
torch::nn::Sequential *ntops_mlp = nullptr
-
torch::nn::Sequential *exo_mlp = nullptr
-
recursivegraphneuralnetwork(int rep = 1024, double dpt = 0.1)
GRIFT
-
class grift : public model_template
Public Functions
-
grift()
-
~grift()
-
virtual model_template *clone() override
-
torch::Tensor message(torch::Tensor trk_i, torch::Tensor trk_j, torch::Tensor pmc, torch::Tensor hx_i, torch::Tensor hx_j)
-
torch::Tensor node_encode(torch::Tensor pmc, torch::Tensor num_node, torch::Tensor *node_rnn)
Public Members
-
int _xrec = 128
-
int _xin = 6
-
int _xout = 2
-
int _xtop = 5
-
double drop_out = 0.01
-
bool is_mc = true
-
bool init = false
-
bool pagerank = false
-
torch::nn::Sequential *rnn_x = nullptr
-
torch::nn::Sequential *rnn_dx = nullptr
-
torch::nn::Sequential *rnn_txx = nullptr
-
torch::nn::Sequential *rnn_rxx = nullptr
-
torch::nn::Sequential *rnn_hxx = nullptr
-
torch::nn::Sequential *mlp_ntop = nullptr
-
torch::nn::Sequential *mlp_sig = nullptr
-
torch::Tensor x_nulls
-
torch::Tensor dx_nulls
-
torch::Tensor te_nulls
-
grift()
Metric Implementations
Accuracy Metric
-
class accuracy_metric : public metric_template
PageRank Metric
-
class pagerank_metric : public metric_template
Public Functions
-
pagerank_metric()
-
~pagerank_metric() override
-
virtual pagerank_metric *clone() override
-
virtual void define_variables() override
-
virtual void event() override
-
virtual void batch() override
-
virtual void end() override
-
void pagerank(std::map<int, std::map<std::string, particle_template*>> *clust, std::map<std::string, std::vector<particle_template*>> *out, std::map<std::string, float> *bin_out, std::map<int, std::map<int, float>> *bin_data, int batch_offset)
-
std::vector<particle_template*> build_top(std::map<int, std::map<int, particle_template*>>*)
-
pagerank_metric()
Collector
-
class collector : public tools, public tools
Public Functions
-
collector()
-
~collector()
-
void add_ntop_truth(std::string mode, std::string model, int epoch, int kfold, int data)
-
void add_ntop_edge_accuracy(std::string mode, std::string model, int epoch, int kfold, int ntops, double data)
-
void add_ntop_scores(std::string mode, std::string model, int epoch, int kfold, std::vector<double> *data)
-
void add_ntru_ntop_scores(std::string mode, std::string model, int epoch, int kfold, int ntru, int ntop, double data)
-
collector()
-
~collector()
-
void set_index(long idx_)
-
kinematic_t create_kinematic(double px, double py, double pz, double mass, double pt, double eta, double phi, double energy, int num_nodes, double score)
-
void add_truth(kinematic_t *p, std::string mode, std::string model, int kfold, int epoch)
-
void add_pagerank(kinematic_t *p, std::string mode, std::string model, int kfold, int epoch)
-
void add_nominal(kinematic_t *p, std::string mode, std::string model, int kfold, int epoch)
-
void add_process(int prc, std::string mode, std::string model, int kfold, int epoch)
-
bool add_meta(std::string data, std::string model, int kfold, int epoch)
-
void add_file_map(std::string fname, long idx_, std::string mode, std::string model, int kfold, int epoch, bool stat)
-
collector()
ROC
Selection Implementations
ChildrenKinematics
-
class childrenkinematics : public selection_template
Public Functions
-
childrenkinematics()
-
~childrenkinematics() override
-
virtual selection_template *clone() override
-
virtual bool selection(event_template *ev) override
-
virtual bool strategy(event_template *ev) override
-
virtual void merge(selection_template *sl) override
Public Members
-
std::vector<kinematic_t> res_kinematics = {}
-
std::vector<kinematic_t> spec_kinematics = {}
-
childrenkinematics()
DecayModes
-
class decaymodes : public selection_template
Public Functions
-
decaymodes()
-
~decaymodes() override
-
virtual selection_template *clone() override
-
virtual bool selection(event_template *ev) override
-
virtual bool strategy(event_template *ev) override
-
virtual void merge(selection_template *sl) override
Public Members
-
std::map<std::string, std::vector<double>> res_top_modes = {}
-
std::map<std::string, std::vector<double>> res_top_charges = {}
-
std::map<std::string, int> res_top_pdgid = {}
-
std::map<std::string, std::vector<double>> spec_top_modes = {}
-
std::map<std::string, std::vector<double>> spec_top_charges = {}
-
std::map<std::string, int> spec_top_pdgid = {}
-
std::map<std::string, int> all_pdgid = {}
-
std::map<std::string, std::vector<double>> signal_region = {}
-
std::map<std::string, int> lepton_statistics = {}
-
std::vector<int> ntops = {}
-
decaymodes()
MET
-
class met : public selection_template, public selection_template
Public Functions
-
met()
-
~met() override
-
virtual selection_template *clone() override
-
virtual bool selection(event_template *ev) override
-
virtual bool strategy(event_template *ev) override
-
virtual void merge(selection_template *sl) override
-
met()
-
~met() override
-
virtual selection_template *clone() override
-
std::map<int, std::map<std::string, particle_template*>> match_tops(std::vector<particle_template*> tops, std::vector<particle_template*> leps)
-
std::tuple<std::vector<neutrino*>, std::vector<neutrino*>> reconstruction(std::vector<particle_template*> nodes, double met_, double phi_)
-
std::vector<double> sum_cart(std::vector<particle_template*> ptx)
-
std::vector<double> cross(std::vector<double> v1, std::vector<double> v2, bool norm)
-
std::vector<double> pmc(particle_template *p1)
-
double chi2(particle_template *nut, particle_template *nur)
-
double cart_px(std::vector<particle_template*> prt)
-
double cart_py(std::vector<particle_template*> prt)
-
double cart_pz(std::vector<particle_template*> prt)
-
double cart_px(double met, double phi)
-
double cart_py(double met, double phi)
-
angle_t angle(particle_template *nu1, particle_template *l1, particle_template *b1, particle_template *nu2, particle_template *l2, particle_template *b2, std::vector<double> det_, std::vector<double> met_)
-
virtual bool selection(event_template *ev) override
-
virtual bool strategy(event_template *ev) override
-
virtual void merge(selection_template *sl) override
-
met()
Matching
-
class matching : public selection_template
Public Functions
-
matching()
-
~matching()
-
virtual selection_template *clone() override
-
void reference(event_template *ev)
-
void experimental(event_template *ev)
-
void current(event_template *ev)
-
void dump(object_data_t *data, std::vector<particle_template*> *obj, bool is_lepx, bool is_tru, int *num_jets = nullptr, std::vector<int> *num_merged = nullptr)
-
bool match_obj(std::vector<particle_template*> *vx, std::vector<particle_template*> *out, std::string hash_, std::vector<int> *num_merged, int *num_jets, bool exl_lep)
-
std::vector<int> get_pdgid(std::vector<particle_template*> *prt)
-
virtual bool strategy(event_template *ev) override
-
virtual void merge(selection_template *sl) override
-
matching()
TopJets
-
class topjets : public selection_template
Public Functions
-
topjets()
-
~topjets() override
-
virtual selection_template *clone() override
-
virtual bool selection(event_template *ev) override
-
virtual bool strategy(event_template *ev) override
-
virtual void merge(selection_template *sl) override
Public Members
-
std::map<std::string, std::map<std::string, std::map<std::string, std::vector<float>>>> top_mass = {}
-
std::map<std::string, std::map<std::string, std::map<std::string, std::vector<float>>>> jet_partons = {}
-
std::map<std::string, std::map<std::string, std::map<std::string, std::vector<float>>>> jets_contribute = {}
-
std::map<std::string, std::map<std::string, std::vector<float>>> jet_top = {}
-
std::map<std::string, std::vector<float>> jet_mass = {}
-
std::vector<int> ntops_lost = {}
-
topjets()
TopKinematics
-
class topkinematics : public selection_template, public selection_template
Public Functions
-
topkinematics()
-
~topkinematics() override
-
virtual selection_template *clone() override
-
virtual bool selection(event_template *ev) override
-
virtual bool strategy(event_template *ev) override
-
virtual void merge(selection_template *sl) override
-
topkinematics()
-
~topkinematics() override
-
virtual selection_template *clone() override
-
virtual bool selection(event_template *ev) override
-
virtual bool strategy(event_template *ev) override
-
virtual void merge(selection_template *sl) override
-
topkinematics()
TopMatching
-
class topmatching : public selection_template, public selection_template
Public Functions
-
topmatching()
-
~topmatching() override
-
virtual selection_template *clone() override
-
virtual bool selection(event_template *ev) override
-
virtual bool strategy(event_template *ev) override
-
virtual void merge(selection_template *sl) override
-
template<typename T>
inline std::vector<particle_template*> downcast(std::vector<T*> *mp)
-
topmatching()
-
~topmatching() override
-
virtual selection_template *clone() override
-
virtual bool selection(event_template *ev) override
-
virtual bool strategy(event_template *ev) override
-
virtual void merge(selection_template *sl) override
-
template<typename T>
inline std::vector<particle_template*> downcast(std::vector<T*> *mp)
Public Members
-
std::vector<float> truth_top = {}
-
std::vector<int> no_children = {}
-
std::vector<float> topchildren_mass = {}
-
std::vector<int> topchildren_leptonic = {}
-
std::vector<float> toptruthjets_mass = {}
-
std::vector<int> toptruthjets_leptonic = {}
-
std::vector<int> toptruthjets_njets = {}
-
std::vector<float> topjets_children_mass = {}
-
std::vector<int> topjets_children_leptonic = {}
-
std::vector<float> topjets_leptons_mass = {}
-
std::vector<int> topjets_leptons_leptonic = {}
-
std::vector<int> topjets_leptons_pdgid = {}
-
std::vector<int> topjets_leptons_njets = {}
-
std::map<std::string, std::vector<float>> truth_children = {}
-
std::map<std::string, std::vector<float>> truth_jets = {}
-
std::map<std::string, std::vector<float>> n_truth_jets_lep = {}
-
std::map<std::string, std::vector<float>> n_truth_jets_had = {}
-
std::map<std::string, std::vector<float>> jets_truth_leps = {}
-
std::map<std::string, std::vector<float>> jet_leps = {}
-
std::map<std::string, std::vector<float>> n_jets_lep = {}
-
std::map<std::string, std::vector<float>> n_jets_had = {}
-
topmatching()
TopTruthJets
-
class toptruthjets : public selection_template
Public Functions
-
toptruthjets()
-
~toptruthjets() override
-
virtual selection_template *clone() override
-
virtual bool selection(event_template *ev) override
-
virtual bool strategy(event_template *ev) override
-
virtual void merge(selection_template *sl) override
Public Members
-
std::map<std::string, std::map<std::string, std::map<std::string, std::vector<float>>>> top_mass = {}
-
std::map<std::string, std::map<std::string, std::map<std::string, std::vector<float>>>> truthjet_partons = {}
-
std::map<std::string, std::map<std::string, std::map<std::string, std::vector<float>>>> truthjets_contribute = {}
-
std::map<std::string, std::map<std::string, std::vector<float>>> truthjet_top = {}
-
std::map<std::string, std::vector<float>> truthjet_mass = {}
-
std::vector<int> ntops_lost = {}
-
toptruthjets()
ZPrime
-
class zprime : public particle_template, public selection_template, public selection_template
Public Functions
-
zprime()
-
~zprime()
-
zprime()
-
~zprime() override
-
virtual selection_template *clone() override
-
virtual bool selection(event_template *ev) override
-
virtual bool strategy(event_template *ev) override
-
virtual void merge(selection_template *sl) override
-
zprime()
-
~zprime() override
-
virtual selection_template *clone() override
-
virtual bool selection(event_template *ev) override
-
virtual bool strategy(event_template *ev) override
-
virtual void merge(selection_template *sl) override
-
zprime()
Regions
-
class regions : public selection_template
Public Functions
-
regions()
-
~regions() override
-
virtual selection_template *clone() override
-
virtual bool selection(event_template *ev) override
-
virtual bool strategy(event_template *ev) override
-
virtual void merge(selection_template *sl) override
-
regions()
TopEfficiency
-
class topefficiency : public selection_template
Public Functions
-
topefficiency()
-
~topefficiency()
-
virtual selection_template *clone() override
-
virtual bool selection(event_template *ev) override
-
virtual bool strategy(event_template *ev) override
-
virtual void merge(selection_template *sl) override
-
int iters(double start, double end, double step)
-
std::string region(double pt, double eta)
Public Members
-
double pt_start = 0
-
double eta_start = 0
-
double pt_end = 1500
-
double eta_end = 6
-
double eta_step = 0.5
-
double pt_step = 100
-
double score_step = 0.01
-
std::map<std::string, std::map<std::string, std::vector<float>>> p_topmass = {}
-
std::map<std::string, std::map<std::string, std::vector<float>>> t_topmass = {}
-
std::map<std::string, std::map<std::string, std::vector<float>>> p_zmass = {}
-
std::map<std::string, std::map<std::string, std::vector<float>>> t_zmass = {}
-
std::map<std::string, std::map<std::string, std::vector<float>>> prob_tops = {}
-
std::map<std::string, std::map<std::string, std::vector<float>>> prob_zprime = {}
-
std::map<std::string, std::map<std::string, std::vector<float>>> t_decay_region = {}
-
std::map<std::string, std::map<std::string, std::vector<float>>> p_decay_region = {}
-
std::map<std::string, std::map<float, int>> p_nodes = {}
-
std::map<std::string, std::map<float, int>> t_nodes = {}
-
std::map<std::string, int> n_tru_tops = {}
-
std::map<std::string, std::map<float, int>> n_pred_tops = {}
-
std::map<std::string, std::map<float, int>> n_perfect_tops = {}
-
std::vector<int> truth_res_edge = {}
-
std::vector<int> truth_top_edge = {}
-
std::vector<int> truth_ntops = {}
-
std::vector<int> truth_signal = {}
-
std::vector<std::vector<float>> pred_res_edge_score = {}
-
std::vector<std::vector<float>> pred_top_edge_score = {}
-
std::vector<std::vector<float>> pred_ntops_score = {}
-
std::vector<std::vector<float>> pred_signal_score = {}
-
topefficiency()
Combinatorial
-
class combinatorial : public selection_template
Public Functions
-
combinatorial()
-
~combinatorial() override
-
virtual selection_template *clone() override
-
virtual bool selection(event_template *ev) override
-
virtual bool strategy(event_template *ev) override
-
virtual void merge(selection_template *sl) override
-
combinatorial()
Validation
-
class validation : public selection_template
Public Functions
-
validation()
-
~validation() override
-
virtual selection_template *clone() override
-
virtual bool selection(event_template *ev) override
-
virtual bool strategy(event_template *ev) override
-
virtual void merge(selection_template *sl) override
-
validation()
PyC/CUDA Classes
Conics
-
class conics
Ellipse
-
class ellipse
NuSol
-
class nusol : private notification, private tools
Conuic
-
class conuic
Conuix
-
class conuix
Nuclx
-
class nuclx
Nuelx
-
class nuelx
Public Functions
-
nuelx()
-
nuelx(particle_template *b, particle_template *l, double mW, double mT)
-
~nuelx()
-
double Sx()
-
double dSx_dmW()
-
double Sy()
-
double dSy_dmW()
-
double dSy_dmT()
-
double w()
-
double w2()
-
double om2()
-
double Z()
-
double Z2()
-
double dZ_dmT()
-
double dZ_dmW()
-
double x0()
-
double x1()
-
double dx1_dmW()
-
double dx1_dmT()
-
double y1()
-
double dy1_dmW()
-
double dy1_dmT()
-
void r_mT(double *mt1_, double *mt2_)
-
void r_mW(double *mw1_, double *mw2_)
-
void Z_mW(double *mw1_, double *mw2_)
-
void Z_mT(double *mt1_, double *mt2_, double mw_)
-
void update(double mt, double mw)
-
void flush()
-
void Z2(double *A, double *B, double *C)
-
void misc()
-
nuelx()
Mtx
-
class mtx
Public Functions
-
mtx()
-
mtx(int idx, int idy)
-
~mtx()
-
double trace()
-
double det()
-
bool assign(int idx, int idy, double val, bool valid = true)
-
bool unique(int id1, int id2, double v1, double v2)
-
bool valid(int idx, int idy)
-
void print(int prec = 6, int width = 12)
-
double m_00()
-
double m_01()
-
double m_02()
-
double m_10()
-
double m_11()
-
double m_12()
-
double m_20()
-
double m_21()
-
double m_22()
-
mtx()
Multisol
-
class multisol
Public Functions
-
multisol(particle_template *b, particle_template *l)
-
~multisol()
-
void make_rt()
-
double dp_dt()
-
void export_ellipse(std::string name, double t, double z)
-
void export_ellipse(std::string name, double t, double z, int n_points)
-
multisol(particle_template *b, particle_template *l)
-
~multisol()
-
void make_rt()
-
matrix H_tilde(double t, double z)
-
matrix dHdt_tilde(double t, double z = 1)
-
matrix H(double t, double z)
-
matrix dHdt(double t, double z = 1)
-
matrix d2Hdt2(double t, double z = 1)
-
vec3 v(double t, double z, double phi)
-
vec3 dv_dt(double t, double z, double phi)
-
vec3 dv_dphi(double t, double z, double phi)
-
vec3 d2v_dt_dphi(double t, double z, double phi)
-
geo_t geometry(double t, double z)
-
vec3 center(double t, double z)
-
vec3 normal(double t, double z)
-
double dp_dt()
-
mass_t masses(double t, double z)
-
rev_t translate(double sx, double sy)
-
void export_ellipse(std::string name, double t, double z)
-
void export_ellipse(std::string name, double t, double z, int n_points)
-
multisol(particle_template *b, particle_template *l)
OdeRK
-
class odeRK : public tools, public tools
Public Functions
-
~odeRK()
-
void solve()
-
void rk4(double dt)
-
void update_t()
-
double solve_z_phi()
-
double residual(std::vector<double> wg, std::vector<double> phx)
-
double ghost_angle(int nui)
-
std::vector<double> plane_rk4(const std::vector<double> &t_initial)
-
~odeRK()
-
void solve()
-
void rk4(double dt)
-
void update_t()
-
double solve_z_phi()
-
double residual(std::vector<double> wg, std::vector<double> phx)
-
double ghost_angle(int nui)
-
std::vector<double> plane_rk4(const std::vector<double> &t_initial)
-
std::vector<double> plane_align(const std::vector<ellipse_t> ¤t_state)
-
~odeRK()
Optimizer Params
-
class optimizer_params_t
Public Functions
-
optimizer_params_t()
Public Members
-
std::string optimizer = ""
-
cproperty<double, optimizer_params_t> lr
-
cproperty<double, optimizer_params_t> lr_decay
-
cproperty<double, optimizer_params_t> weight_decay
-
cproperty<double, optimizer_params_t> initial_accumulator_value
-
cproperty<double, optimizer_params_t> eps
-
cproperty<double, optimizer_params_t> tolerance_grad
-
cproperty<double, optimizer_params_t> tolerance_change
-
cproperty<double, optimizer_params_t> alpha
-
cproperty<double, optimizer_params_t> momentum
-
cproperty<double, optimizer_params_t> dampening
-
cproperty<bool, optimizer_params_t> amsgrad
-
cproperty<bool, optimizer_params_t> centered
-
cproperty<bool, optimizer_params_t> nesterov
-
cproperty<int, optimizer_params_t> max_iter
-
cproperty<int, optimizer_params_t> max_eval
-
cproperty<int, optimizer_params_t> history_size
-
cproperty<std::tuple<float, float>, optimizer_params_t> betas
-
cproperty<std::vector<float>, optimizer_params_t> beta_hack
-
std::string scheduler = ""
-
unsigned int step_size = 1
-
double gamma = 0.1
-
bool m_lr = false
-
bool m_lr_decay = false
-
bool m_weight_decay = false
-
bool m_initial_accumulator_value = false
-
bool m_eps = false
-
bool m_betas = false
-
bool m_amsgrad = false
-
bool m_max_iter = false
-
bool m_max_eval = false
-
bool m_tolerance_grad = false
-
bool m_tolerance_change = false
-
bool m_history_size = false
-
bool m_alpha = false
-
bool m_momentum = false
-
bool m_centered = false
-
bool m_dampening = false
-
bool m_nesterov = false
-
optimizer_params_t()