\documentclass[a4paper,11pt,oneside,onecolumn]{article}
%\usepackage[english]{babel}
\usepackage[ansinew]{inputenc}
\usepackage{abstract}

\usepackage{amsmath}
\usepackage{epic}
 \usepackage{wrapfig}
\usepackage{eepic}
\usepackage{color}
\usepackage{latexsym}
\usepackage{array}
\usepackage{multicol}

\usepackage{fancyhdr}
\usepackage{verbatim}
\addtolength{\textwidth}{2cm} \addtolength{\hoffset}{-1cm}
\usepackage[colorlinks=true, pdfstartview=FitV, linkcolor=black, citecolor=black, urlcolor=black, unicode]{hyperref}
\usepackage{ifpdf}
\usepackage{cite}

\newcommand{\dollar}{\$}

\ifpdf
  \usepackage[pdftex]{graphicx}
  \graphicspath{{all_png/}}
  \pdfinfo{
   /Author (S. Ovyn, X. Rouby)
   /Title  (Delphes, a framework for fast simulation of a general purpose LHC detector)
   /Subject ()
   /Keywords (Delphes, Fast simulation, LHC, FROG, Hector, Smearing, FastJet)}
\else
   \usepackage[dvips]{graphicx}
   \graphicspath{{figures/}}
\fi

\title{\textsc{Delphes}, a framework for fast simulation \\of a general purpose LHC detector}
\author{S. Ovyn and X. Rouby\thanks{Now in Physikalisches Institut, Albert-Ludwigs-Universit\"at Freiburg} \\
	Center for Particle Physics and Phenomenology (CP3)\\ Universit\'e catholique de Louvain \\ B-1348 Louvain-la-Neuve, Belgium \\ \\
        \textit{severine.ovyn@uclouvain.be, xavier.rouby@cern.ch} \\
}
\date{}

\begin{document}


\maketitle

Knowing whether theoretical predictions are visible and measurable in a high energy experiment is always delicate, due to the
complexity of the related detectors, data acquisition chain and software. We introduce here a new framework, \textsc{Delphes}, for fast simulation of
a general purpose experiment. The simulation includes a tracking system, embedded into a magnetic field, calorimetry and a muon
system, and possible very forward detectors arranged along the beamline.
The framework is interfaced to standard file formats (e.g. Les Houches Event File) and outputs observable analysis data objects, like missing transverse energy and collections of electrons or jets.
The simulation of detector response takes into account the detector resolution, and usual reconstruction algorithms for complex objects, like \textsc{FastJet}. A simplified preselection can also be applied on processed data for trigger emulation. Detection of very forward scattered particles relies on the transport in beamlines with the \textsc{Hector} software. Finally, the \textsc{Frog} 2D/3D event display is used for visualisation of the collision final states.
An overview of \textsc{Delphes} is given as well as a few use-cases for illustration.
\vspace{1cm}

\noindent
\textit{Keywords:} \textsc{Delphes}, fast simulation, LHC, smearing, trigger, \textsc{FastJet}, \textsc{Hector}, \textsc{Frog}
\vspace{1cm}

%\saythanks

\section{Introduction}
% Motiver l'utilisation d'un simulateur rapide
% - 1) rapide VS lent
% - 2) relativement bonne prédiction en première approximation
% - 3) permet de comparer

Experiments at high energy colliders are very complex systems, in several ways. First, in terms of the various detector subsystems, including tracking, central calorimetry, forward calorimetry, and muon chambers. These detectors differ with their principles, technologies, geometries and sensitivities. Then, due to the requirement of a highly effective online selection (i.e. a \textit{trigger}), subdivided into several levels for an optimal reduction factor, but based only on partially processed data. Finally, in terms of the experiment software, with different data formats (like \textit{raw} or \textit{reconstructed} data), many reconstruction algorithms and particle identification schemes.

This complexity is handled by large collaborations of thousands of people, which restrict the availability of the data, software and documentation to their members. Real data analyses require a full detector simulation, including the various detector inefficiencies, the dead material, the imperfections and the geometrical details. Moreover, detector calibration and alignment are crucial. Such simulation is very complicated, technical and slow. On the other hand, phenomenological studies, looking for the observability of given signals, may require only fast but realistic estimates of the observables.

A new framework, called \textsc{Delphes}~\cite{bib:Delphes}, is introduced here, for the fast simulation of a general purpose collider experiment. 
Using the framework, observables can be estimated for specific signal and background channels, as well as their production and measurement rates, under a set of assumptions. 
Starting from the output of event generators, the simulation of the detector response takes into account the subdetector resolutions, by smearing the kinematical properties of the visible final particles. Tracks of charged particles and calorimetric towers are then created.

\textsc{Delphes} includes the most crucial experimental features, like (1) the geometry of both central or forward detectors; (2) lepton isolation; (3) reconstruction of photons, leptons, jets, $b$-jets, $\tau$-jets and missing transverse energy; (4) trigger emulation and (5) an event display (Fig.~\ref{fig:FlowChart}).

\begin{figure}[!h]
\begin{center}
\includegraphics[width=0.9\columnwidth]{FlowDelphes}
\caption{Flow chart describing the principles behind \textsc{Delphes}. Event files coming from external Monte Carlo generators are read by a convertor stage. 
The kinematical variables of the final state particles are then smeared according to the subdetector resolutions. 
Tracks are reconstructed in a simulated dipolar magnetic field and calorimetric towers sample the energy deposits. Based on these, dedicated algorithms are applied for particle identification, isolation and reconstruction. 
The transport of very forward particle to the near-beam detectors is also simulated. 
Finally, an output file is written, including generator level and analysis object data. If requested, a fully parametrisable trigger can be emulated. Optionnally, the geometry and visualisation files for the 3D event display can also be produced.
All user parameters are set in the \textit{Smearing Card} and the \textit{Trigger Card}. }
\label{fig:FlowChart}
\end{center}
\end{figure}

Although this kind of approach yields much realistic results than a simple ``parton-level" analysis, a fast simulation comes with some limitations. Detector geometry is idealised, being uniform, symmetric around the beam axis, and having no cracks nor dead material. Secondary interactions, multiple scatterings, photon conversion and bremsstrahlung are also neglected.

%The simulation package proceeds in two stages. The first part is executed on the generated events. ``Particle-level" informations are read from input files and stored in a {\it \textsc{gen}} \textsc{root} tree. 

Three formats of input files can currently be used as input in \textsc{Delphes}\footnote{\texttt{[code] }See the \texttt{HEPEVTConverter}, \texttt{LHEFConverter} and \texttt{STDHEPConverter} classes.}. In order to process events from many different generators, the standard Monte Carlo event structure \mbox{\textsc{s}td\textsc{hep}} can be used as an input. Besides, \textsc{Delphes} can also provide detector response for events read in ``Les Houches Event Format'' (\textsc{lhef}) and \textsc{root} files obtained using the \textbf{h2root} utility from the \textsc{root} framework~\cite{bib:root}. 
%Afterwards, \textsc{Delphes} performs a simple trigger simulation and reconstruct "high-level objects". These informations are organised in classes and each objects are ordered with respect to the transverse momentum. 

The output of \textsc{Delphes} contains a copy of the generator level data (\textsc{gen} tree), the analysis data objects after reconstruction (\mbox{\textsc{A}nalysis} tree), and possibly the results of the trigger emulation (\mbox{\textsc{T}rigger} tree). The program is driven by input cards. The detector card (\texttt{data/DataCardDet.dat}) allows a large spectrum of running conditions by modifying basic detector parameters, including calorimeter and tracking coverage and resolution, thresholds or jet algorithm parameters. The trigger card (\texttt{data/trigger.dat}) lists the user algorithms for the simplified online preselection.\\


\section{Central detector simulation}

\begin{figure}[!h]
\begin{center}
\includegraphics[width=\columnwidth]{Detector_Delphes_1}
\caption{Layout of the generic detector geometry assumed in \textsc{Delphes}. The innermost layer, close to the interaction point, is a central tracking system (pink). 
It is surrounded by a central calorimeter volume (green) with both electromagnetic and hadronic sections. 
The outer layer of the central system (red) consist of a muon system. In addition, two end-cap calorimeters (blue) extend the pseudorapidity coverage of the central detector. 
The actual detector granularity and extension is defined in the user-configuration card. The detector is assumed to be strictly symmetric around the beam axis (black line). Additional forward detectors are not depicted.}
\label{fig:GenDet}
\end{center}
\end{figure}

\begin{figure}[!h]
\begin{center}
\includegraphics[width=0.5\columnwidth]{Detector_Delphes_3}
\caption{Profile of the layout assumed in \textsc{Delphes}. The extension of the various subdetectors, as defined in Tab.~\ref{tab:defEta}, are clearly visible. 
Same colour codes as for Fig.~\ref{fig:GenDet} are applied. Additional forward detectors are not depicted.}
\label{fig:GenDet3}
\end{center}
\end{figure}

\begin{figure}[!h]
\begin{center}
\includegraphics[width=0.6\columnwidth]{Detector_Delphes_2b}
\caption{Layout of the generic detector geometry assumed in \textsc{Delphes}. Open 3D-view of the detector with solid volumes. Same colour codes as for Fig.~\ref{fig:GenDet} are applied. Additional forward detectors are not depicted.}
\label{fig:GenDet2}
\end{center}
\end{figure}


The overall layout of the general purpose detector simulated by \textsc{Delphes} is shown in figure \ref{fig:GenDet}. 
A central tracking system (\textsc{tracker}) is surrounded by an electromagnetic and a hadron calorimeters (\textsc{ecal} and \textsc{hcal}, resp.). Two forward calorimeters (\textsc{fcal}) ensure a larger geometric coverage for the measurement of the missing transverse energy. Finally, a muon system (\textsc{muon}) encloses the central detector volume
The fast simulation of the detector response takes into account geometrical acceptance of sub-detectors and their finite resolution, as defined in the smearing data card\footnote{\texttt{[code] }See the \texttt{RESOLution} class.}. 
If no such file is provided, predifined values are used. The coverage of the various subsystems used in the default configuration are summarised in table \ref{tab:defEta}.

\textcolor{red}{No smearing is applied on particle direction. (???)}\\

\begin{table}[!h]
\begin{center}
\caption{Default extension in pseudorapidity $\eta$ of the different subdetectors.
The corresponding parameter name, in the smearing card, is given. \vspace{0.5cm}}
\begin{tabular}[!h]{lll}
\hline
\textsc{tracker} & {\verb CEN_max_tracker } & $0.0 \leq |\eta| \leq 2.5$\\
\textsc{ecal}, \textsc{hcal} & {\verb CEN_max_calo_cen } & $0.0 \leq |\eta| \leq 3.0$\\
\textsc{fcal} & {\verb CEN_max_calo_fwd } & $3.0 \leq |\eta| \leq5.0$\\
\textsc{muon} & {\verb CEN_max_mu } & $0.0 \leq |\eta| \leq 2.4$\\\hline
\end{tabular}
\label{tab:defEta}
\end{center}
\end{table}

\subsection{Simulation of calorimeters}

The energy of each particle considered as stable in the generator particle list is smeared, with a Gaussian distribution depending on the calorimeter resolution. This resolution varies with the sub-calorimeter (\textsc{ecal}, \textsc{hcal}, \textsc{fcal}) measuring the particle.
The response of each sub-calorimeter is parametrised as a function of the energy:
\begin{equation} 
\frac{\sigma}{E} = \frac{S}{\sqrt{E}} \oplus \frac{N}{E} \oplus C,
\label{eq:caloresolution}
\end{equation}
where $S$, $N$ and $C$ are the \textit{stochastic}, \textit{noise} and \textit{constant} terms, respectively.\\


The particle 4-momentum $p^\mu$ are smeared with a parametrisation directly derived from the detector techinal designs\footnote{\texttt{[code] }The response of the detector is applied to the electromagnetic and the hadronic particles through the \texttt{SmearElectron} and \texttt{SmearHadron} functions.}.
In the default parametrisation, the calorimeter is assumed to cover the pseudorapidity range $|\eta|<3$ and consists in an electromagnetic and an hadronic part. Coverage between pseudorapidities of $3.0$ and $5.0$ is provided by forward calorimeters, with different response to electromagnetic objects ($e^\pm, \gamma$) or hadrons. 
Muons and neutrinos are assumed no to interact with the calorimeters\footnote{In the current \textsc{Delphes} version, particles other than electrons ($e^\pm$), photons ($\gamma$), muons ($\mu^\pm$) and neutrinos ($\nu_e$, $\nu_\mu$ and $\nu_\tau$) are simulated as hadrons for their interactions with the calorimeters. The simulation of stable particles beyond the Standard Model should subsequently be handled with care.}.
The default values of the stochastic, noisy and constant terms are given in Table~\ref{tab:defResol}.\\

\begin{table}[!h]
\begin{center}
\caption{Default values for the resolution of the central and forward calorimeters. Resolution is parametrised by the \textit{stochastic} ($S$), \textit{noise} ($N$) and \textit{constant} ($C$) terms (Eq.~\ref{eq:caloresolution}).
The corresponding parameter name, in the smearing card, is given. \vspace{0.5cm}}
\begin{tabular}[!h]{lclc}
\hline
\multicolumn{2}{c}{Resolution Term}   & Card flag & Value\\\hline
 \multicolumn{4}{l}{\textsc{ecal}} \\
 	& $S$ & {\verb ELG_Scen }  & $0.05$ \\
        & $N$ & {\verb ELG_Ncen }  & $0.25$ \\
        & $C$ & {\verb ELG_Ccen }  & $0.0055$ \\
 \multicolumn{4}{l}{\textsc{fcal}, electromagnetic part} \\
        & $S$ & {\verb ELG_Sfwd }  & $2.084$ \\
        & $N$ & {\verb ELG_Nfwd }  & $0$ \\
        & $C$ & {\verb ELG_Cfwd }  & $0.107$ \\
 \multicolumn{4}{l}{\textsc{hcal}} \\
        & $S$ & {\verb HAD_Shcal } & $1.5$ \\
        & $N$ & {\verb HAD_Nhcal } & $0$\\
        & $C$ & {\verb HAD_Chcal } & $0.05$\\
 \multicolumn{4}{l}{\textsc{fcal}, hadronic part} \\
        & $S$ & {\verb HAD_Shf }   & $2.7$\\
        & $N$ & {\verb HAD_Nhf }   & $0$. \\
        & $C$ & {\verb HAD_Chf }   & $0.13$\\
\hline
\end{tabular}
\label{tab:defResol}
\end{center}
\end{table}

The energy of electrons and photons found in the particle list are smeared using the \textsc{ecal} resolution terms. Charged and neutral final state hadrons interact with the \textsc{ecal}, \textsc{hcal} and \textsc{fcal}. 
Some long-living particles, such as the $K^0_s$, possessing lifetime $c\tau$ smaller than $10~\textrm{mm}$ are considered as stable particles although they decay before the calorimeters. The energy smearing of such particles is performed using the expected fraction of the energy, determined according to their decay products, that would be deposited into the \textsc{ecal} ($E_{\textsc{ecal}}$) and into the \textsc{hcal} ($E_{\textsc{hcal}}$). Defining $F$ as the fraction of the energy leading to a \textsc{hcal} deposit, the two energy values are given by 
\begin{equation}
\left\{
\begin{array}{l}
E_{\textsc{hcal}} = E \times F \\
E_{\textsc{ecal}} = E \times (1-F) \\
\end{array}
\right.
\end{equation}
where $0 \leq F \leq 1$. The electromagnetic part is handled as the electrons. The resulting final energy given after the application of the smearing is then $E = E_{\textsc{hcal}} + E_{\textsc{ecal}}$. For $K_S^0$ and $\Lambda$ hadrons, the energy fraction is $F$ is assumed to be worth $0.7$.\\

\subsection{Calorimetric towers}

The smallest unit for geometrical sampling of the calorimeters is a \textit{tower}.
All undecayed particles, except muons and neutrinos produce a calorimetric tower, either in \textsc{ecal}, in \textsc{hcal} or \textsc{fcal}. 
A calorimetric tower are just the smallest unit in $\eta \times \phi$ for the segmentation of the energy measurement. As the detector is assumed to be symmetric in $\phi$ and with respect to the $(x,y)$ plane, the smearing card stores the number of calorimetric towers with $\phi=0$ and $\eta>0$ (default: $40$ towers). For a given $\eta$, the size of the $\phi$ segmentation is also specified. 
The calorimeters are then segmented into towers, that directly enter in the calculation of the missing transverse energy. 
No longitudinal segmentation is available in the simulated calorimeters. No sharing between towers is implemented when particles enter a tower very close to its geometrical edge.


\subsection{Muon smearing}

Muons candidates are searched
The smearing ot the muon 4-momentum $p^\mu$ is given by a Gaussian smearing of the $p_T$ function \texttt{SmearMuon}. Only the $p_T$ is smeared, but neither $\eta$ nor $\phi$. Multiple scattering is thus neglected, while low energy muons have a worst resolution in a real detector.

\subsection{Tracks reconstruction}
Every stable charged particle with a transverse momentum above some threshold and lying inside the fiducial volume of the tracker provides a track. The reconstructio efficiency is defined in the smearing datacard by the {\verb TRACKING_EFF } term. By default, a track is assumed to be reconstructed with $90\%$ probability if its transverse momentum $p_T$ is higher than $0.9~\textrm{GeV}$ and if its pseudorapidity $|\eta| \leq 2.5$.


\subsection{Isolated lepton reconstruction}

Photon and electron candidates are reconstructed if they fall into the acceptance of the tracking system and have a transverse momentum above the {\verb ELEC_pt } value ($10~\textrm{GeV}$ by default). 
%Muons candidates are searched 
Lepton isolation demands that there is no other charged particles with $p_T>2$~GeV within a cone of $\Delta R<0.5$ around the lepton.\\ 

\subsection{Very forward detectors simulation}

Some subdetectors have the ability to measure the time of flight of the particle. This correspond to the delay after which the particle is observed in the detector, after the bunch crossing. The time of flight measurement of \textsc{zdc} and \textsc{fp420} detector is implemented here. For the \textsc{zdc}, the formula is simply
\begin{equation}
 t_2 = t_1 + \frac{1}{v} \times \big( \frac{s-z}{\cos \theta}\big),
\end{equation}
where $t_2$ is the time of flight, $t_1$ is the true time coordinate of the vertex from which the particle originates, $v$ the particle velocity, $s$ is the \textsc{zdc} distance to the interaction point, $z$ is the longitudinal coordinate of the vertex from which the particle comes from, $\theta$ is the particle emission angle. This assumes that the neutral particle observed in the \textsc{zdc} is highly relativistic, i.e. travelling at the speed of light $c$. We also assume that $\cos \theta = 1$, i.e. $\theta \approx 0$ or equivalently $\eta$ is large. As an example, $\eta = 5$ leads to $\theta = 0.013$ and $1 - \cos \theta < 10^{-4}$.
The formula then reduces to
\begin{equation}
 t_2 = \frac{1}{c} \times (s-z)
\end{equation}
Only neutrons and photons are currently assumed to be able to reach the \textsc{zdc}. All other particles are neglected
To fix the ideas, if the \textsc{zdc} is located at $s=140~\textrm{m}$, neglecting $z$ and $\theta$, and assuming that $v=c$, one gets  $t=0.47~\mu\textrm{s}$.

\section{High-level object reconstruction}

Hadronising final state particles or invisible ones are more difficult to measure. For instance, light jets or jets originating from $b$ quarks or $\tau$ leptons require dedicated algorithms for their measurement.
The \textsc{FastJet} tools have been integrated into the \textsc{Delphes} framework for a fast jet reconstruction, using several algorithms, like Cone or $k_T$ ones. 

\textcolor{red}{More on jet algorithms?}

\subsection{Jet reconstruction}

By default, jets are reconstructed using a cone algorithm with $R=0.7$ and use the calorimetric towers. The reconstructed jets are required to have a transverse momentum above $20~\textrm{GeV}$ and $|\eta|<3.0$. 

\subsection{$b$-tagging}

A jet is tagged as $b$-jets if its direction lies in the acceptance of the tracker and if it is associated to a parent $b$-quark. A $b$-tagging efficiency of $40\%$ is assumed if the jet has a parent $b$ quark. For $c$-jets and light/gluon jets, a fake $b$-tagging efficiency of $10 \%$ and $1 \%$ respectively is assumed\footnote{Corresponding tot the TAGGING\_B, MISTAGGING\_C and MISTAGGING\_L constants, for (respectively) the efficiency of tagging of a $b$-jet, the efficiency of mistagging a c-jet as a $b$-jet, and the efficiency of mistatting a light jet (u,d,s,g) as a $b$-jet.}. The (mis)tagging relies on the particle ID of the most energetic particle within a cone around the observed (eta,phi) region, with a radius CONERADIUS.

\subsection{Tau identification}

\begin{wrapfigure}{l}{0.3\columnwidth}
\includegraphics[width=0.3\columnwidth]{Tau}
\caption{Illustration of the identification of $\tau$ jets.}
\label{h_WW_ss_cut1}
\end{wrapfigure}

Jets originating from $\tau$-decay are identified using an identification procedure consistent with the one applied in a full detector simulation. The tagging rely on two properties of the $\tau$ lepton. First, in roughly $75 \%$ of the time, the hadronic $\tau$-decay products contain only one charged hadron and a number of $\pi^0$. Second, the particles arisen from the $\tau$-lepton produce narrow jets in the calorimeter. 

\subsubsection*{Electromagnetic collimation}

To use the narrowness of the $\tau$-jet, the \textit{electromagnetic collimation} ($C_{\tau}^{em}$) is defined as the sum of the energy in a cone with $\Delta R = ${\verb TAU_energy_scone } around the jet axis divided by the energy of the reconstructed jet. The energy in the small cone is calculated using the towers objects. To be taken into account a calorimeter tower should have a transverse energy above a given threshold {\verb JET_M_seed }. A large fraction of the jet energy, denominated here with {\verb TAU_energy_frac } is expected in this small cone. The quantity is represented in figure \ref{fig:tau1} for the default values (see table \ref{tab:tauRef}).

\begin{figure}[!h]
\begin{center}
\includegraphics[width=0.8\columnwidth]{figures/Tau2}
\caption{\textcolor{red}{Distribution of the $\tau \bar \tau$ events} with respect to the electromagnetic collimation factor $C_\tau$. }
\label{fig:tau1}
\end{center}
\end{figure}

\subsubsection*{$\tau$ selection using tracks}

\begin{figure}[!h]
\begin{center}
\includegraphics[width=0.8\columnwidth]{figures/Tau1}
\caption{\textcolor{red}{Distribution of the...}}
\label{h_WW_ss_cut1}
\end{center}
\end{figure}

The tracking isolation for the $\tau$ identification requires that the number of tracks associated to a particle with $p_T >$ {\verb TAU_track_pt } is one and only one in a cone with $\Delta R =$ {\verb TAU_track_scone }. This cone should be entirely included in the tracker to be taken into account. This procedure selects taus decaying hadronically with a typical efficiency of $60\%$. Moreover, the minimal $p_T$ of the $\tau$-jet is required to be {\verb TAUJET_pt } (default value: $10~\textrm{GeV}$).\\

\begin{table}[!h]
\begin{center}
\begin{tabular}[!h]{llc}
\hline
Tau definition  & Card flag & Value\\\hline
$\Delta R^{for~em}$     & {\verb TAU_energy_scone } & 0.15\\
min $E_{T}^{tower}$     & {\verb JET_M_seed }  & 1.0~GeV\\
$C_{\tau}^{em}$         & {\verb TAU_energy_frac } & 0.95.\\
$\Delta R^{for~tracks}$ & {\verb TAU_track_scone } & 0.4\\
min $p_T^{tracks}$      & {\verb PTAU_track_pt } & 2 GeV\\\hline
\end{tabular}
\label{tab:tauRef}
\end{center}
\end{table}

\subsection{Transverse missing energy}
In an ideal detector, the transverse missing energy is simply computed as the missing term which would balance the transverse momentum in the observed event. Its value is then computed as the opposite of the sum of the momentum of all observed particles. In a real experiment, any problem affecting the detector (dead channels, misalignment, noisy towers, cracks) is directly worsening the measured missing transverse energy. In this document, the missing transverse energy (\textcolor{red}{symbol???}) is based on the calorimetric towers and only muons and neutrinos are not taken into account for its evaluation.

\section{Trigger emulation}

New physics in collider experiment are often characterised by the phenomenology by low cross-section values. High statistics are required for their studies, which in turn imposes high luminosity collisions.

On the other hand, due to the very high collision rate in recent collider ($40~\textrm{MHz}$ at the \textsc{lhc}) and the large total cross-section ($\mathcal{O}(110~\textrm{mb})$ at the \textsc{lhc}), the need for an online event selection is crucial in order to reject most of the event and keep

\section{Validation}	

\section{Visualisation}


As an illustration, an associated photoproduction of a $W$ boson and a $t$ quark is shown in Fig.~\ref{fig:wt}. This corresponds to a $pp \rightarrow Wt \ +  \ p  \ + \ X$ process, where the $Wt$ couple is induced by an incoming photon emitted by one interacting proton. This leading proton survives from the photon emission and subsequently from the $pp$ interaction, and is present in the final state. The experimental signature is a lack of hadronic activity in one forward hemisphere, where the surviving proton escapes. The $t$ quark decays into a $W$ and a $b$. Both $W$ bosons decay into leptons ($W \rightarrow \mu \nu_\mu$ and $W \rightarrow \tau \nu_\tau$).

\begin{figure}[!h]
\begin{center}
\includegraphics[width=\columnwidth]{Events_Delphes_1}
\caption{Example of $pp(\gamma p \rightarrow Wt)pY$ event. One $W$ boson decays into a $\mu \ \nu_\mu$ pair and the second one into a $\tau \ \nu_\tau$ pair. The surviving proton leaves a forward hemisphere with no hadronic activity. The isolated muon is shown as the blue vector. The $\tau$-jet is the cone around the green vector, while the reconstructed missing energy is shown in gray. One jet is visible in one forward region, along the beamline axis, opposite to the direction of the escaping proton.}
\label{fig:wt}
\end{center}
\end{figure}


\section{Conclusion and perspectives}


\newpage

\appendix

\section{User manual}

The available code is a tar file which comes with everything you need to run the \textsc{Delphes} package. Nevertheless in order to visualise the events with the \textsc{Frog} program, you need to install libraries as explained in {\it href="http://projects.hepforge.org/frog/}

\subsection{Getting started}

In order to run \textsc{Delphes} on your system, first download is sources and compile it:\\
\begin{quote}
\begin{verbatim}
me@mylaptop:~$ wget http://www.fynu.ucl.ac.be/users/s.ovyn/files/Delphes_V_*.*.tar 
me@mylaptop:~$ tar -xvf Delphes_V_*.*. tar  
me@mylaptop:~$ cd Delphes_V_*.* 
me@mylaptop:~$ ./genMakefile.tcl >; Makefile 
me@mylaptop:~$ make 
\end{verbatim}
\end{quote}    


\subsection{Running \textsc{Delphes} on your events}

\subsubsection{Setting the run configuration}

The program is driven by two datacards (default cards are data/DataCardDet.dat and data/trigger.dat) which allow a large spectrum of running conditions. 
{\b The run card }\\

Contains all needed information to run \textsc{Delphes}
\begin{itemize}
  
\item The following parameters are available: detector parameters, including calorimeter and tracking coverage and resolution, transverse energy thresholds allowed for reconstructed objects, jet algorithm to use as well as jet parameters. 
  
\item Four flags, {\verb FLAG_bfield }, {\verb FLAG_vfd }, {\verb FLAG_trigger } and {\verb FLAG_frog } should be assigned to decide if the magnetic field propagation, the very forward detectors acceptance, the trigger selection and the preparation for \textsc{Frog} display respectively are running by \textsc{Delphes}.
  
\item An example (the default detector card) can be found in {\verb files/DataCardDet.dat }
\end{itemize}

{\b The trigger card }\\
Contains the definition of all trigger bits
\begin{itemize}
  
\item Cuts can be applied on the transverse momentum of electrons, muons, jets, tau-jets, photons and transverse missing energy.
\item Be careful that the following structured should be used: 
  \begin{enumerate}
  \item One trigger bit per line, the first entry in the line is the name of the trigger bit 
  \item If the trigger bit uses the presence of multiple identical objects, their transverse momentum thresholds must be defined in decreasing order 
  \item The different object requirements must be separated by a {\verb && } flag
  \item Example of a trigger bit line:\\
    \begin{quote}
\begin{verbatim}	
DoubleElec  >> ELEC1_PT: '20' && ELEC2_PT: '10'    
\end{verbatim}
    \end{quote}
  \end{enumerate}
\item An example (the default trigger card) can be found <a href="files/trigger.dat" title="Home">here</a></li>
\end{itemize}

\subsubsection{Running the code}
Create the above cards (data/mydetector.dat and data/mytrigger.dat)
Create a text file containing the list of input files that will be used by \textsc{Delphes} (with extension *.lhe, *.root or *.hep)
To run the code, type the following
\begin{quote}
\begin{verbatim}
me@mylaptop:~$ ./Delphes inputlist.list OutputRootFileName.root data/mydetector.dat data/mytrigger.dat
\end{verbatim}
\end{quote}


\subsection{Running an analysis on your \textsc{Delphes} events}

Two examples of codes running on the output root file of \textsc{Delphes} are coming with the package
\begin{enumerate}
\item The {\verb Examples/Analysis_Ex.cpp } code shows how to access the available reconstructed objects and the trigger information The two following arguments are required: a text file containing the input \textsc{Delphes} root files to run, and the name of the output root file. To run the code:
  \begin{quote}
\begin{verbatim}
./Analysis_Ex input_file.list output_file.root
\end{verbatim}
  \end{quote}
  
\item The {\verb Examples/Trigger_Only.cpp } code permits to run the trigger selection separately from the general detector simulation on output \textsc{Delphes} root files. An input \textsc{Delphes} root file is mandatory as argument. The new tree containing the trigger information will be added in these file. The trigger datacard is also necessary. To run the code:
  \begin{quote}
\begin{verbatim}
./Trigger_Only input_file.root data/trigger.dat
\end{verbatim}
  \end{quote}
  
\end{enumerate}

\subsection{Running the \textsc{Frog} event display}

\begin{itemize}
\item If the { \verb FLAG_frog } was switched on, two files were created during the run of \textsc{Delphes}: {\verb DelphesToFrog.vis } and {\verb DelphesToFrog.geom }. They contain all the needed information to run frog.
\item To display the events and the geometry, you first need to compile \textsc{Frog}. Go to the {\verb Utilities/FROG } and type {\verb make }.
\item Go back into the main directory and type {\verb ./Utilities/FROG/frog }.
\end{itemize}

\begin{thebibliography}{99}
  
\bibitem{bib:Delphes} \textsc{Delphes}, hepforge:
\bibitem{bib:FastJet} \textsc{Fast-Jet},
\bibitem{bib:Frog} \textsc{Frog},
\bibitem{bib:CMSresolution} CMS IN 2007/053
\bibitem{bib:root} \textsc{Root} - An Object Oriented Data Analysis Framework, R. Brun and F. Rademakers, Nucl. Inst. \& Meth. in Phys. Res. A 389 (1997) 81-86, \url{http://root.cern.ch} 
\end{thebibliography}

Attention : in SmearUtil::NumTracks, the function arguments 'Eta' and 'Phi' have been switched. Previously, 'Phi' was before 'Eta', now 'Eta' comes in front. This is for consistency with the other functions in SmearUtil. Check your routines, when using NumTracks !

In the list of input files, all files should have the same type 

Attention : in SmearUtil::RESOLution::BJets, the maximal energy was looked in
CONERADIUS/2 instead of CONERADIUS. This bug has been removed.

Attention : for the tau-jet identification : CONERADIUS /2 was used instead of
CONERADIUS !

 in other words, the effect related to the particle showers that would happen in the calorimeters are not taken into account. We took the hypothesis that stable particles interacting electromagneticaly deposit their energies in the ECAL calorimeter and that the hadrons just interact with the HCAL

\end{document}
