Use VMC id's rather than TGeo id's
[u/mrichter/AliRoot.git] / FMD / scripts / MakeCalibration.C
CommitLineData
c2fc1258 1//____________________________________________________________________
2//
3// $Id$
4//
5// Make fake alignment data.
6//
7/** @file MakeCalibration.C
8 @author Christian Holm Christensen <cholm@nbi.dk>
9 @date Sun Mar 26 17:58:27 2006
10 @brief Make fake calibration data.
11*/
12/** Make fake calibration data
13 @ingroup simple_script
14 */
a9579262 15Float_t
16AdcPerMip2Gain(Int_t adc)
17{
18 return 1. / adc * AliFMDParameters::Instance()->GetEdepMip();
19}
20
c2fc1258 21void
22MakeCalibration()
23{
24 AliCDBManager* cdb = AliCDBManager::Instance();
25 cdb->SetDefaultStorage("local://$ALICE_ROOT");
26
27 gSystem->Load("libFMDutil.so");
28 AliFMDCalibFaker f(AliFMDCalibFaker::kAll, 0);
8ec606c2 29 f.SetRunRange(0,0);
a9579262 30 f.SetGainSeed(AdcPerMip2Gain(60)); // From astrid test beam
c2fc1258 31 f.SetThresholdFactor(3);
a9579262 32 f.SetPedestalRange(80,130); // From ASTRID test-beam
c2fc1258 33 f.SetDeadChance(0);
34 f.SetZeroThreshold(0);
35 f.SetStripRange(0, 127);
36 f.SetRate(1);
37 f.Exec();
38}
39//____________________________________________________________________
40//
41// EOF
42//