]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EMCAL/doc/reconstruction.tex
close file when reload
[u/mrichter/AliRoot.git] / EMCAL / doc / reconstruction.tex
CommitLineData
8e1021f9 1
2
3\section{Reconstruction code}
4
5
6The energy deposited by the particles in the towers produces scintillating light that is propagated with optic fibers through the different layers to APD placed at the base of the cells. The APDs amplify the signal and generate an electronic pulse shape that is stored in the raw data format. From this pulse shape, we extract the signal amplitude and the arrival time. The pulse shape is fitted during the reconstruction via a parametrized function and TMinuit, and those 2 values are extracted.
7
8A particle produces signals in different towers (electromagnetic shower expands more than its Moli\`ere radius which is a cell size). The next step is the formation of clusters of cells that belong to the same particle, although depending on the energy, granularity, clusterization algorithm or event type, those clusters might have contributions from different particles. The default algorithm in pp collisions is a simple aggregation of neighboring cells until there is no more cells above a certain energy threshold (named {\it clusterizer V1}). In case of Pb-Pb collisions environment, where particle showers merge quite often, we apply another algorithm that aggregates cells to the clusters until reaching a cell with more energy than the precedent (named {\it clusterizer V2}). Depending on the analysis type, one might want to use one or the other clusterization type. For this reason, a re-clusterization is also possible at the analysis level. A last clusterizer is implemented, which makes 3x3 clusters. It has been used in jet analysis for instance in order to avoid biasing jet reconstruction where one is interested in the energy flow over a large area without explicit reconstruction of photon showers and where the driving consideration is that the wide clusterizer does not interfere with the jet finder. For $\pi^{0}$, $\eta$, and direct $\gamma$ analyses, {\it V2} is most likely preferable).
9
10Once the cluster is defined, we calculate cluster parameters, shower shape parameters, that will help at the analysis level to identify each cluster as one particle type. Also, we compare the cluster position information with the propagation of tracks measured in the central barrel to the EMCAL surface, to identify the clusters generated by charged particles.
11
12The final analysis objects, ESDs and AODs, contain all the cluster and cell basic informations allowing to redo the clusterization if needed at the analysis level.
13
14%The class AliReconstruction manages this part. This step can
15%begin either from the Digits or from the Raw data. We can distinguish
16%different steps described in the following sections.
17
18
19\subsection{Offline data base access}
20
21How to create explained OCDB/OADB section.
22
23\subsubsection{Energy calibration}
24
25\subsubsection{Bad channels - Marie, Alexis}
26
27\subsubsection{Alignment - Marco}
28
29\subsection{Raw data fitting: from ADC sample to digits - David}
30
43ac0b81 31As also discussed in Sec.~\ref{sec:simu_raw}, the recorded Raw data consists
32of instead a series of so-called time samples with 10-bit ADC counts per channel.
33Each time bin is 100 ns wide, corresponding to a 10 MHz readout.
34The expected signal (Gamma-2) shape is described e.g. in the AliEMCALRawResponse class,
35in the RawResponseFunction method.
36The reconstruction from Raw data to Digits is done in the AliEMCALRawUtils class,
37Raw2Digits method.
38The Raw ADC time samples data is kept in AliCaloBunchInfo objects, which are given
39as input to an AliCaloRawAnalyzer object, which returns the signal amplitude and time
40information (in the form of an AliCaloFitResults object).
41There are several different AloCaloRawAnalyzer versions, which can be selected via
42AliEMCALRawUtils::SetFittingAlgorithm(). They are:
43
44\begin{itemize}
45 \item kStandard:
46 AliCaloRawAnalyzerKStandard, which is a (slower but simple) Gamma-2 fit implementation.
47 \item kFastFit:
48 AliCaloRawAnalyzerFastFit, which is a faster Gamma-2 fit implementation from Aleksei Pavlinov.
49 \item kNeuralNet:
50 AliCaloRawAnalyzerNN, which is a neural network implementation from Paola La Rocca and Franco Riggi.
51 \item kPeakFinder:
52 AliCaloRawAnalyzerPeakFinder, which is a fast (parameterized vector operations) implementation from Per Thomas Hille.
53 \item kCrude:
54 AliCaloRawAnalyzerCrude, which is the simplest possible algorithm: just take the maximum ADC value as the signal amplitude.
55 \item kFakeAltro:
56 AliCaloRawAnalyzerFakeALTRO, which is an algorithm intended for the Trigger/TRU raw data analysis, i.e. not for the regular FEE or cell/tower data.
57\end{itemize}
58
59
8e1021f9 60
61\subsection{Clusterization: From digits to clusters - Adam}
62
63\input{clusterization}
64
65
66
67\subsection{Cluster-Track matching - Rongrong, Shingo, Michael}
68
69Even though EMCal is intended to measure the energy of particles that interact with EMCal via electromagnetic showering, e.g. photons and electrons, charged hadrons can also deposit energy in EMCal, most commonly via minimum ionization, but also via nuclear interactions generating hadronic showers. In the analysis where the distinction between hadroic and electromagnetic showers is necessary, cluster-track matching is often used to meet this requirement.
70
71The main method used to extrapolate tracks in the ALICE software framework is:
72
73\begin{DDbox}{\linewidth}
74\begin{lstlisting}
75 static Bool_t PropagateTrackToBxByBz(AliExternalTrackParam *track, Double_t x, Double_t m,Double_t maxStep, Bool_t rotateTo=kTRUE, Double_t maxSnp=0.8,Int_t sign=0, Bool_t addTimeStep=kFALSE);
76\end{lstlisting}
77\end{DDbox}
78which takes the following arguments: {\it ``track''} stores all the information of the starting point for the extrapolation; {\it ``x''} is the coordinate of the destination plane in the local coordinate system; {\it ``m''} is the mass assumption for the track; {\it ``maxStep''} is the step size used in the extrapolation. This method extrapolates the track trajectory to a destination plane in a magnetic field, taking into account the energy loss of the tracks when going through detector materials. However, the energy loss model is tuned for charged hadrons, so it does not work very well for electrons or positions whose primary energy loss process is bremsstrahlung.
79
80For EMCal, the track-cluster matching is done by default in the reconstruction chain and the code is implemented in:
81
82\begin{DDbox}{\linewidth}
83\begin{lstlisting}
84 AliEMCALTracker::PropagateBack(AliESDEvent* esd)
85\end{lstlisting}
86\end{DDbox}
87
88The logic of the matching procedure is the following:
89\begin{itemize}
90\item Check wheter TPC is available in DAQ/reco. See AliEMCALTracker::LoadClusters(). In case there is no TPC, ITS specific extrapolation will be used.
91\item Find all the EMCal clusters in the event. See AliEMCALTracker::LoadClusters().
92\item Find all the good tracks in the event. See AliEMCALTracker:: LoadTracks(). Several cuts are applied to select good tracks
93 \begin{itemize}
94 \item Minimum $p_{\rm{T}}$ cut, which can be set during the reconstruction.
95 \item Cut on number of TPC clusters, which can be set during the reconstruction. This specific cut is avoided in case there is only ITS available in reconstruction.
96 \item $|\eta|<0.8$ and $20^{\circ} < \varphi < 120^{\circ} $. These fiducial cuts are hard coded since tracks out of this range should never make it to EMCal.
97 \end{itemize}
98\item For each good track, find the nearest cluster as matched if their residuals fall within the cuts. See AliEMCALTracker::FindMatchedCluster(), which follows the following steps:
99 \begin{itemize}
100 \item Get the starting point: if the {\it friendTrack} is available, use the last point on the TPC. Otherwise, use the point at the inner wall of the TPC.
101 \item If only ITS tracks are available in reconstruction, the propagation will use the track information from the vertex.
102 \item Extrapolate tracks to the EMCal surface at 430 cm, and apply fiducial cuts on the extrapolated points: $|\eta|<0.75$ and $70^{\circ} < \varphi < 190^{\circ} $. The step size in the extrapolation can be set in the reconstruction, and the default value is 20 cm.
103 \item Extrapolate tracks further, with 5 cm step size, to the positions of all the EMCal clusters which are in the vicinity of the extrapolated points from last step. Then the distance between extrapolated tracks to the clusters are calculated, and the nearest cluster is assigned as matched if the residuals fall within cuts. By fitting the distributions of the residuals using Gaussian functions, we can choose to cut on $N\sigma$ of the residuals.To further improve the matching performance, $p_{\rm{T}}$ and charge dependent cuts can be used.
104 \end{itemize}
105\end{itemize}
106
107
108
109\subsection{How to execute the reconstruction}
110
111Executing the reconstruction is very similar to the simulation case, see the macro TestEMCALReconstruction.C (a bit more detailed than the one in \$ALICE\_ROOT/EMCAL/macros) :
112
113\begin{DDbox}{\linewidth}
114\begin{lstlisting}
115void TestEMCALReconstruction() {
116
117TString detector=``EMCAL TPC'';//Same function as in Simulation.C
118// TString detector=``EMCAL ITS''; if user wants ITS tracking to be used.
119
120AliReconstruction rec; //Create reconstruction object
121
122//Making Tracking
123rec.SetRunTracking(detector) ;
124
125//Particle Reconstruction. Make Rec Points
126rec.SetRunReconstruction(detector);
127
128//read RAW data. Give directory where raw data is stored
129//rec.SetInput(``RawDataDirectory/raw.root");
130
131//Make vertex finder
132rec.SetRunVertexFinder(kFALSE) ; // false only if the tracking detectors are not included.
133
134//Fill ESD file with RecPoints information.
135rec.SetFillESD(detector) ;
136
137//Run Reconstruction
138rec.Run() ;
139}
140\end{lstlisting}
141\end{DDbox}
142
143