]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HMPID/MakeHMPIDQeEffMaps.C
Coding rule violation corrected.
[u/mrichter/AliRoot.git] / HMPID / MakeHMPIDQeEffMaps.C
CommitLineData
4ea87757 1void MakeHMPIDQeEffMaps()
2{
3 //
4 // Create HMPID Measured Quantum Efficiency Maps in OCDB
5 // QE measurement/scan done by Antonello
6 // Data are extracted from the "Photo Cathode Production excel files
7 // Graphs contain: x and y position on PC surface and the normalized current
8 //
9 // Position of the photo cathodes (real name) in the HMPID modules
10 // RICH0 , PC0-real name PC77 || PC1-real name PC74 || PC2-real name PC79 || PC3-real name PC70 || PC4-real name PC72 || PC5-real name PC48
11 // RICH1 , PC0-real name PC61 || PC1-real name PC65 || PC2-real name PC55 || PC3-real name PC54 || PC4-real name PC73 || PC5-real name PC62
12 // RICH2 , PC0-real name PC60 || PC1-real name PC37 || PC2-real name PC59 || PC3-real name PC56 || PC4-real name PC38 || PC5-real name PC40
13 // RICH3 , PC0-real name PC42 || PC1-real name PC41 || PC2-real name PC44 || PC3-real name PC43 || PC4-real name PC46 || PC5-real name PC45
14 // RICH4 , PC0-real name PC57v2 || PC1-real name PC66 || PC2-real name PC67 || PC3-real name PC68 || PC4-real name PC64 || PC5-real name PC63
15 // RICH5 , PC0-real name PC53 || PC1-real name PC47 || PC2-real name PC51 || PC3-real name PC49 || PC4-real name PC52 || PC5-real name PC50
16 // RICH6 , PC0-real name PC71 || PC1-real name PC84 || PC2-real name PC82 || PC3-real name PC83 || PC4-real name PC75 || PC5-real name PC81
17 //
18
19 TGraph2D *hmpQeEffGraph[7][6];
20
21 AliCDBManager* man = AliCDBManager::Instance();
22 if(!man->IsDefaultStorageSet()) man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
23 TObjArray *hmpQeEffMapArray = new TObjArray();
24
25 for(Int_t ich=0;ich<7;ich++){
26 for(Int_t ipc=0;ipc<6;ipc++){
27 hmpQeEffGraph[ich][ipc]=new TGraph2D(Form("HMPIDQeMapping/HmpidQeMapMod%dPc%d.txt",ich,ipc),"%lg %lg %lg","");
28 hmpQeEffGraph[ich][ipc]->SetName(Form("HmpidQeMapMod%dPc%d",ich,ipc));
29 hmpQeEffMapArray->AddLast(hmpQeEffGraph[ich][ipc]);
30 }
31 }
32
33 AliCDBMetaData *md= new AliCDBMetaData();
34 md->SetResponsible("Domenico DiBari");
35 md->SetComment("Quantum Efficiany Maps for HMPID simulation");
36 md->SetAliRootVersion(gSystem->Getenv("ARVERSION"));
37 md->SetBeamPeriod(0);
38 AliCDBId id("HMPID/Calib/QeMap",0,AliCDBRunRange::Infinity());
39 man->GetDefaultStorage()->Put(hmpQeEffMapArray,id, md);
40
41 return;
42}