.so cleanup: removed from gSystem->Load()
[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{
68aba90a 18 return 2.9;// / adc * AliFMDParameters::Instance()->GetEdepMip();
a9579262 19}
20
c2fc1258 21void
162637e4 22MakeCalibration(const char* base="local://$ALICE_ROOT/OCDB")
c2fc1258 23{
24 AliCDBManager* cdb = AliCDBManager::Instance();
826a3db2 25 cdb->SetDefaultStorage(base);
c2fc1258 26
4070f709 27 gSystem->Load("libANALYSIS");
28 gSystem->Load("libANALYSISalice");
29 gSystem->Load("libFMDanalysis");
30 gSystem->Load("libFMDutil");
133f1578 31 AliFMDCalibFaker f(1<<AliFMDCalibFaker::kPulseGain, 0);
32 f.SetRunRange(0,999999999);
a9579262 33 f.SetGainSeed(AdcPerMip2Gain(60)); // From astrid test beam
c2fc1258 34 f.SetThresholdFactor(3);
a9579262 35 f.SetPedestalRange(80,130); // From ASTRID test-beam
c2fc1258 36 f.SetDeadChance(0);
37 f.SetZeroThreshold(0);
38 f.SetStripRange(0, 127);
2aeec17d 39 f.SetRate(4);
c2fc1258 40 f.Exec();
41}
42//____________________________________________________________________
43//
44// EOF
45//