For Pythia with tune don't switch off MI in ConfigHeavyFlavor
[u/mrichter/AliRoot.git] / ITS / MakeCalibrationSSD.C
CommitLineData
ced4d9bc 1void MakeCalibrationSSD(Int_t firstRun=0,Int_t lastRun=999999999 ){
5ca85244 2
3 if(!AliCDBManager::Instance()->IsDefaultStorageSet()) {
162637e4 4 AliCDBManager::Instance()->SetDefaultStorage("local://$ALICE_ROOT/OCDB/");
5ca85244 5 }
6
7 AliCDBMetaData *md1= new AliCDBMetaData(); // metaData describing the object
8 md1->SetObjectClassName("AliITSCalibration");
9 md1->SetResponsible("Enrico Fragiacomo");
10 md1->SetBeamPeriod(0);
ced4d9bc 11 md1->SetAliRootVersion("trunk090708"); //root version
5ca85244 12
13 AliCDBId idNoiseSSD("ITS/Calib/NoiseSSD",firstRun, lastRun);
ced4d9bc 14 AliCDBId idPedestalSSD("ITS/Calib/PedestalSSD",firstRun, lastRun);
5ca85244 15 AliCDBId idGainSSD("ITS/Calib/GainSSD",firstRun, lastRun);
16 AliCDBId idBadChannelsSSD("ITS/Calib/BadChannelsSSD",firstRun, lastRun);
17
ced4d9bc 18 AliITSNoiseSSD *noiseSSD = new AliITSNoiseSSD();
19 AliITSPedestalSSD *pedestalSSD = new AliITSPedestalSSD();
20 AliITSGainSSD *gainSSD = new AliITSGainSSD();
21 AliITSBadChannelsSSD *badchannelsSSD = new AliITSBadChannelsSSD();
5ca85244 22
ced4d9bc 23 for(Int_t i=0; i<1698; i++) {
5ca85244 24 for(Int_t j=0; j<768; j++) {
ced4d9bc 25 noiseSSD->AddNoiseP(i,j,3.);
26 noiseSSD->AddNoiseN(i,j,5.);
27 gainSSD->AddGainP(i,j,0.8);
28 gainSSD->AddGainN(i,j,1.2);
5ca85244 29 }
5ca85244 30 }
31
ced4d9bc 32 AliCDBManager::Instance()->GetDefaultStorage()->Put( (TObject*) noiseSSD, idNoiseSSD, md1);
33 AliCDBManager::Instance()->GetDefaultStorage()->Put( (TObject*) gainSSD, idGainSSD, md1);
34 AliCDBManager::Instance()->GetDefaultStorage()->Put( (TObject*) badchannelsSSD, idBadChannelsSSD, md1);
35 AliCDBManager::Instance()->GetDefaultStorage()->Put( (TObject*) pedestalSSD, idPedestalSSD, md1);
36
5ca85244 37}