]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/READMEmchda.txt
The logics of handling the geometry file for simulation has changed. The variables...
[u/mrichter/AliRoot.git] / MUON / READMEmchda.txt
CommitLineData
b9f858e1 1// $Id$
2
3/*!
4
d0f1f198 5\page README_mchda Tracking DA
b9f858e1 6
a4c42212 7The detector algorithms are implemented for the Muon Tracking in the AliRoot framework.
8We currently have 3 DAs for MCH :
9
10- MUONTRKPEDda.cxx for PEDESTAL runs, running at the end of data taking on each LDC.
11- MUONTRKGAINda.cxx for CALIBRATION runs, running at the end of data taking on each LDC.
12- MUONTRKOCCda.cxx for PHYSICS runs, running during data taking on each LDC.
13
b9f858e1 14\section da_s1 The Muon Tracking Calibration
15
a4c42212 16The Muon tracking chambers needs three types of calibration in order to work properly
17(to be more precise pedestals are required, gains are needed to get the best charge measurement possible, and the occupancy
18 is needed in order not to spend all the reconstruction time in hot-spots).
b9f858e1 19
20\subsection da_ss1 Pedestals
21
22The front-end electronics performs an online zero suppression using a threshold level.
23Those threshold levels for all channels (~ 1 million) have to be computed in a dedicated
f3cfa63e 24PEDESTALS runs. During this runs the zero suppression is OFF and the pedestal level and the noise is obtained for each channel. The threshold for the FEE is obtained adding the pedestal level to 3 sigmas of the noise.
b9f858e1 25
26The typical ECS sequence for pedestals is :
27
28- Switch ON the electronics LV
29- Boot the CROCUS
30- Configuration
f3cfa63e 31- Saving Configuration in an ascii file then transferring in the File eXchange Server (FXS)
b9f858e1 32- Zero suppression OFF
33- Data taking (typically 400 events)
34- The DA computes the mean and sigma (it runs in each LDC)
35- The DA writes one ASCII file per LDC with the results in the File Exchange Server
36
f3cfa63e 37Then the SHUTTLE process the ASCII files and store the result on the OCDB (Keyword=PEDESTALS)
38Only configuration files corresponding to a change of the Muon Tracker configuration are written in the FXS (Keyword=CONFIG).
39
b9f858e1 40
41\subsection da_ss2 Electronics gain
42
43In order to perform the required spatial resolution or the tracking chambers (~ 100 microns),
44we need to calibrate the gain of each channel. The gain is computed using dedicated runs where
f3cfa63e 45a signal (DAC) is send to the chambers FEE.
b9f858e1 46
47The typical ECS sequence for calibration is :
48
49- Switch ON the electronics LV
50- Boot the CROCUS
51- Configuration
52- Zero suppression OFF
f3cfa63e 53- Loop of 11 data taking (typically 400 events) each with a different signal (DAC=0-200- 400-800-1200-1600-2000-2500-3000-3500-4000)
b9f858e1 54- The DA computes the mean and sigma (it runs in each LDC) for each run
f3cfa63e 55- At the end of the last run, the DA computes, by using a fitting procedure, linear and parabolic gain parameters, and writes results in one ASCII file per LDC. Every ascii files are transferred in the FXS.
b9f858e1 56
f3cfa63e 57Then the SHUTTLE process the ASCII files and store the result on the OCDB (KEYWORD=GAINS)
b9f858e1 58
a4c42212 59\subsection da_ss3 Occupancy
60
61For PHYSICS (or STANDALONE) runs, the MUONTRKOCCda, which is a monitoring DA, keep track of how many times
62 each channel has been hit during the run. The output is an ASCII file containing the needed information to
63 compute the occupancy values. This file is written to the DAQ FXS so the SHUTTLE can transfer it to the OCDB.
64
b9f858e1 65\section da_s2 Using the DA Online
66
f3cfa63e 67\subsection da_ss1 Pedestals
68
69The syntax is: MUONTRKPEDda.exe "raw data file"
70
71Two input files located in the DAQ Detector database (DetDB) are needed:
72
1ccd531d 73- muontrkpedvalues is built in flight in CONFIGURATION_PED.sh (ECS script) and contains two parameters "config" and "writeconfig"
f3cfa63e 74 config = 1 if configuration file has to be used (OnLine case)
1ccd531d 75 config = 0 if not (OffLine case for the time being)
76 writeconfig=0 if configuration is unchanged
77 writeconfig=1 if configuration is changed , then new config. file is written in DetDB
f3cfa63e 78
1ccd531d 79- config_ldc-MTRK-S3-0 : configuration file name corresponding to MuonTracker Station 3 if (for example) DA is running on ldc-MTRK-S3-0
f3cfa63e 80
18ec51a0 81- DA validation: see Header of MUONTRKPEDda.cxx for reference run, and corresponding input mutrkpedvalues and configuration files are located in path=/afs/cern.ch/user/j/jcharvet/public/DA_validation
82
f3cfa63e 83\subsection da_ss2 Electonics gain
84
85The syntax is: MUONTRKGAINda.exe "raw data file"
86
87Two input files located in the DAQ Detector database (DetDB) are needed:
88
89- muontrkcalibvalues: which attributes to each the run index (1->11) its corrresponding DAC value. The other parameters are used to tune the fit procedure (for expert). The last parameter indicates the number of events to be read: if "0" all events in the run are read, if not the parameter indicates the maximum number of events to be read.
90Default values are listed below
91
92\verbatim
931 0
942 200
953 400
964 800
975 1200
986 1600
997 2000
1008 2500
1019 3000
10210 3500
10311 4000
1041
1056
1060
1071
1081
1090
baf1a7a0 110\endverbatim
f3cfa63e 111
1ccd531d 112 - config_ldc-MTRK-S3-0 : configuration file name corresponding to MuonTracker station 3 if (for example) DA is running on ldc-MTRK-S3-0
f3cfa63e 113
18ec51a0 114- DA validation: Header of MUONTRKGAINda.cxx shows the list of the 11 reference runs, and corresponding input mutrkcalibvalues and configuration files are located in path=/afs/cern.ch/user/j/jcharvet/public/DA_validation
f3cfa63e 115
116\section da_s3 Using the DA Offline
117
118The DAs normally runs with a RAW data DATE format as input
119The development of an Offline version is under way.
120
121Nevertheless, Pedestal runs can be analysed locally, but without detector configuration file. If you get a file in root format (e.g. from alien), you can de-rootify it using the
122 "deroot" program which is part of aliroot.
123Note that PED and GAIN DAs work with ROOT input files as well.
124
b9f858e1 125You have a line command help. To have it just type :
126
127\verbatim
a4c42212 128> MUONTRKPEDda.exe -h
b9f858e1 129
a4c42212 130******************* ./MUONTRKPEDda.exe usage **********************
f3cfa63e 131Online (called from ECS) : ./MUONTRKPEDda.exe <raw data file> (no inline options)
132
133./MUONTRKPEDda.exe can be used locally only with options (without DiMuon configuration file)
a4c42212 134./MUONTRKPEDda.exe -options, the available options are :
f3cfa63e 135-h help (this screen)
b9f858e1 136
137 Input
f3cfa63e 138-f <raw data file> (default = )
b9f858e1 139
140 Output
f3cfa63e 141-a <Flat ASCII file> (default = MUONTRKPEDda.ped)
b9f858e1 142
143 Options
f3cfa63e 144-m <max date events> (default = 1000000)
145-s <skip events> (default = 0)
146-n <max events> (default = 1000000)
147
b9f858e1 148\endverbatim
149
a4c42212 150
b9f858e1 151\section da_s4 In case of trouble
152
153Please contact :
154
f3cfa63e 155Jean-Luc Charvet : jean-luc.charvet@cern.ch
b9f858e1 156or
157Alberto Baldisseri : a.baldisseri@cea.fr
a4c42212 158or
159Laurent Aphecetche : laurent.aphecetche@subatech.in2p3.fr (for OCC DA)
b9f858e1 160
f3cfa63e 161This chapter is defined in the READMEmchda.txt file.
b9f858e1 162*/
163