1 void MakeITSPlaneEfficiencySSD(Int_t firstRun=0,Int_t lastRun=AliCDBRunRange::Infinity()){
3 if(!AliCDBManager::Instance()->IsDefaultStorageSet()) {
4 AliCDBManager::Instance()->SetDefaultStorage("local://$ALICE_ROOT");
7 AliCDBMetaData *md1= new AliCDBMetaData(); // metaData describing the object
8 md1->SetObjectClassName("AliITSPlaneEff");
9 md1->SetResponsible("Giuseppe Bruno");
10 md1->SetBeamPeriod(0);
11 md1->SetAliRootVersion("head 02/01/08"); //root version
13 AliCDBId idplaneeffSSD("ITS/PlaneEff/PlaneEffSSD",firstRun, lastRun);
15 AliITSPlaneEffSSD* planeeffSSD = new AliITSPlaneEffSSD();
17 // planeeffSSD->SetOwner(kFALSE);
19 // loop over SSD modules
21 for(UInt_t mod=0;mod<1698;mod++){
22 // suppose to have 1000 tracks in each module and an average efficiency of 99%
23 for(Int_t j=0; j<1000; j++) {
25 if (gRandom->Uniform(0,1000)>10) BFound=kTRUE;
26 planeeffSSD->UpDatePlaneEff(BFound,mod);
29 if(AliCDBManager::Instance()->GetDefaultStorage()->Put(planeeffSSD, idplaneeffSSD, md1))
30 {cout << "Riuscito " << endl;}