]>
Commit | Line | Data |
---|---|---|
f8902e49 | 1 | void TestMatrices(Bool_t test2011=1) |
2 | { | |
3 | AliLog::SetClassDebugLevel("AliCDBManager",1); | |
4 | ||
5 | AliCDBManager* man = AliCDBManager::Instance(); | |
6 | man->SetDefaultStorage("alien://Folder=/alice/simulation/2008/v4-15-Release/Ideal/"); | |
7 | const char *geoname = "EMCAL_COMPLETEV1"; | |
8 | if (test2011) { | |
9 | man->SetSpecificStorage("EMCAL/Align/Data", "alien://folder=/alice/data/2011/OCDB"); | |
10 | man->SetRun(146805); | |
11 | } else { | |
12 | man->SetSpecificStorage("EMCAL/Align/Data", "alien://folder=/alice/data/2010/OCDB"); | |
13 | man->SetRun(137366); | |
14 | geoname = "EMCAL_FIRSTYEARV1"; | |
15 | } | |
16 | AliGeomManager::LoadGeometry(); | |
17 | AliGeomManager::ApplyAlignObjsFromCDB("EMCAL"); | |
18 | AliEMCALGeometry *geo = AliEMCALGeometry::GetInstance(geoname); | |
19 | for (Int_t i=0;i<(geo->GetEMCGeometry())->GetNumberOfSuperModules();++i) | |
20 | geo->GetMatrixForSuperModule(i)->Print(); | |
21 | ||
22 | AliEMCALEMCGeometry *emc = geo->GetEMCGeometry(); | |
23 | Double_t phimin = emc->GetArm1PhiMin(); | |
24 | Double_t phimax = emc->GetArm1PhiMax(); | |
25 | cout << phimin << " " << phimax << endl; | |
26 | emc->PrintGeometry(); | |
27 | } |