Some examples of a simple flowchart for the categorization of events.


A straight arrow with two corners and straight lines is drawn using a simple macro and the calc
library:
\documentclass[border=3pt,tikz]{standalone}\usetikzlibrary{calc} % for calculating coordinates in \connect\tikzset{>=latex}\def\connect[#1] (#2)!#3!(#4){ % straight connector with two corners\draw[#1] (#2) |- ($(#2)!#3!(#4)$) node[pos=0.5] (#2-#4-1) {}-| (#4) node[pos=0.5] (#2-#4-2) {}}\begin{document}\begin{tikzpicture}\node[red!80!black,fill=red!80!black!20] (A) at (0,0) {node A};\node[green!60!black,fill=green!60!black!20] (B) at (1,-1) {node B};\connect[->,thick,red] (A)!0.4!(B);\end{tikzpicture}\end{document}
Edit and compile if you like:
% Author: Izaak Neutelings (January 2023)\documentclass[border=1pt,tikz,dvipsnames]{standalone}\usepackage{amsmath,amssymb} % for \text\usepackage{physics} % for \abs\usepackage{xspace} % for \xspace\usepackage{bm} % for bold math \bm\usetikzlibrary{positioning} % for position relative to node\usetikzlibrary{arrows.meta} % for arrow size\usetikzlibrary{calc} % for computing coordinates\tikzset{>=latex} % set default arrow head as latex% VARIABLES\newcommand{\pt} {\ensuremath{p_\text{T}}\xspace}\newcommand{\ptmiss}{\ensuremath{\pt^\text{miss}}\xspace}\newcommand{\mvis} {{\ensuremath{m_\text{vis}}}\xspace}\newcommand{\GeV} {{\ensuremath{\,\text{Ge\hspace{-.08em}V}}}\xspace}\newcommand{\ab}[1]{\textbf{\boldmath{#1}}} % bold text & math% TIKZ STUFF\colorlet{myred}{red!80!black}\colorlet{myblue}{blue!80!black}\colorlet{mygreen}{green!50!black}\colorlet{myorange}{orange!80!yellow!90!red!90!black}\tikzstyle{mycomment}=[inner sep=1pt,scale=0.75,align=left]\tikzstyle{mybox}=[draw,#1!80!black,fill=#1!95!black!20,inner sep=5pt,outer sep=3pt,thick,rounded corners=3pt,align=center,font=\bfseries]\tikzstyle{mysmallbox}=[mybox=#1,outer sep=1.5pt]\tikzstyle{myarrow}=[-{Latex[length=8,width=8]},#1!80!black,thick,line cap=round,line width=3]\tikzstyle{mysmallarrow}=[-{Latex[length=6,width=6]},#1!80!black,thick,line width=1.6]% CONNECTOR with straight angles\def\connect[#1](#2)!#3!(#4){\draw[#1] (#2) |- ($(#2)!#3!(#4)$) node[pos=0.5] (#2-#4-1) {}-| (#4) node[pos=0.5] (#2-#4-2) {}}\begin{document}% JET CATEGORIES with straight lines\begin{tikzpicture}[scale=1.0]
Click to download: categorization_events.tex • categorization_events.pdf
Open in Overleaf: categorization_events.tex