]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ITS/UPGRADE/testITSU/chkTracker.C
Integrating the Cooked Matrix tracker into the commom reconstruction framework
[u/mrichter/AliRoot.git] / ITS / UPGRADE / testITSU / chkTracker.C
CommitLineData
74bbbe73 1AliITSUReconstructor* rec = 0;
2AliITSUTrackerGlo* trk=0;
3
4void chkTracker()
5{
6 AliCDBManager* man = AliCDBManager::Instance();
7 man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
8 man->SetSpecificStorage("GRP/GRP/Data",
9 Form("local://%s",gSystem->pwd()));
10 man->SetSpecificStorage("ITS/Align/Data",
11 Form("local://%s",gSystem->pwd()));
12 man->SetSpecificStorage("ITS/Calib/RecoParam",
13 Form("local://%s",gSystem->pwd()));
14 man->SetRun(0);
15 if ( !TGeoGlobalMagField::Instance()->GetField() ) {
16 printf("Loading field map...\n");
17 AliGRPManager grpMan;
18 if( !grpMan.ReadGRPEntry() ) {
19 printf("Cannot get GRP entry\n");
20 }
21 if( !grpMan.SetMagField() ) {
22 printf("Problem with magnetic field setup\n");
23 }
24 }
25 AliGeomManager::LoadGeometry("geometry.root");
26 //
27 //
28 AliCDBEntry* ent = man->Get("ITS/Calib/RecoParam");
29 AliITSURecoParam* par = (AliITSURecoParam*)((TObjArray*)ent->GetObject())->At(1);
30 //
31 rec = new AliITSUReconstructor();
32 rec->SetRecoParam(par);
33 //
34 rec->Init();
35 trk = (AliITSUTrackerGlo*) rec->CreateTracker();
36}