Fixes for coverity
[u/mrichter/AliRoot.git] / PMD / CreateNoiseCut.C
CommitLineData
a0c1e804 1void CreateNoiseCut()
2{
3
4 AliCDBManager* man = AliCDBManager::Instance();
5 man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
6 AliPMDNoiseCut *ncut = new AliPMDNoiseCut();
7
8
9 for(Int_t imod = 0; imod < 48; imod++)
10 {
11 Float_t cut = 4.;
12 ncut->SetNoiseCut(imod,cut);
13 }
14
15 AliCDBMetaData *md= new AliCDBMetaData();
16 md->SetResponsible("Basanta Nandi");
17 md->SetComment("Noise cut for different modules of PMD");
18
19 AliCDBId id("PMD/Calib/NoiseCut",0,AliCDBRunRange::Infinity());
20
21 man->GetDefaultStorage()->Put(ncut,id, md);
22
23}