X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;ds=sidebyside;f=TPC%2FrecTPC.C;h=83daa80d7568ec7cfa51fc146d5900614eceee10;hb=291d321d98433ff84c0b8bc082af58fb471a9140;hp=ca13af3c003b2ba19d7f145f78351e7151a2f626;hpb=530474cc15353f9b6b912e879b92ca889841b2ea;p=u%2Fmrichter%2FAliRoot.git diff --git a/TPC/recTPC.C b/TPC/recTPC.C index ca13af3c003..83daa80d756 100644 --- a/TPC/recTPC.C +++ b/TPC/recTPC.C @@ -6,7 +6,7 @@ // // -void recTPC(const char *filename="data.root", Int_t type=0) +void recTPC(Int_t type, const char *filename="data.root") { // // Set path to calibration data @@ -15,21 +15,24 @@ void recTPC(const char *filename="data.root", Int_t type=0) // = 1 - laser test AliCDBManager * man = AliCDBManager::Instance(); man->SetDefaultStorage("local://$ALICE_ROOT"); - man->SetRun(0); - man->SetSpecificStorage("TPC","local:///afs/cern.ch/user/m/mivanov/public/Calib"); + //man->SetRun(0); + //man->SetSpecificStorage("TPC/*/*","local:///afs/cern.ch/user/m/mivanov/public/Calib"); // // Set reconstruction parameters // AliLog::SetClassDebugLevel("AliTPCclustererMI",2); - AliTPCRecoParam * tpcRecoParam = (type==0)? AliTPCRecoParam::GetCosmicTestParam(kTRUE): - AliTPCRecoParam::GetLaserTestParam(kTRUE); + AliTPCRecoParam * tpcRecoParam = 0; + if (type==0) tpcRecoParam = AliTPCRecoParam::GetCosmicTestParam(kTRUE); + if (type>0) tpcRecoParam = AliTPCRecoParam::GetLaserTestParam(kTRUE); + tpcRecoParam->Dump(); AliTPCReconstructor::SetRecoParam(tpcRecoParam); AliTPCReconstructor::SetStreamLevel(1); // // // AliReconstruction rec; - rec.SetSpecificStorage("TPC","local:///afs/cern.ch/user/m/mivanov/public/Calib"); + rec.SetDefaultStorage("local://$ALICE_ROOT"); + rec.SetSpecificStorage("TPC/*/*","local:///afs/cern.ch/user/m/mivanov/public/Calib"); rec.SetLoadAlignData(""); rec.SetWriteESDfriend(kTRUE); rec.SetInput(filename); @@ -47,7 +50,7 @@ void recTPC(const char *filename="data.root", Int_t type=0) rec.Run(); } -void recTracking(const char *filename="data.root", Int_t type=0, Int_t nevents=1) +void recTracking(Int_t type, const char *filename="data.root") { // // Set path to calibration data @@ -55,13 +58,15 @@ void recTracking(const char *filename="data.root", Int_t type=0, Int_t nevents=1 AliCDBManager * man = AliCDBManager::Instance(); man->SetDefaultStorage("local://$ALICE_ROOT"); man->SetRun(0); - man->SetSpecificStorage("TPC","local:///afs/cern.ch/user/m/mivanov/public/Calib"); + man->SetSpecificStorage("TPC/*/*","local:///afs/cern.ch/user/m/mivanov/public/Calib"); // // Set reconstruction parameters // AliLog::SetClassDebugLevel("AliTPCclustererMI",2); - AliTPCRecoParam * tpcRecoParam = (type==0)? AliTPCRecoParam::GetCosmicTestParam(kTRUE): - AliTPCRecoParam::GetLaserTestParam(kTRUE); + + AliTPCRecoParam * tpcRecoParam = 0; + if (type==0) tpcRecoParam = AliTPCRecoParam::GetCosmicTestParam(kTRUE); + if (type>0) tpcRecoParam = AliTPCRecoParam::GetLaserTestParam(kTRUE); AliTPCReconstructor::SetRecoParam(tpcRecoParam); AliTPCReconstructor::SetStreamLevel(1); @@ -70,7 +75,7 @@ void recTracking(const char *filename="data.root", Int_t type=0, Int_t nevents=1 // // AliReconstruction rec; - //rec.SetSpecificStorage("TPC","local:///afs/cern.ch/user/m/mivanov/public/Calib"); + rec.SetSpecificStorage("TPC/*/*","local:///afs/cern.ch/user/m/mivanov/public/Calib"); rec.SetLoadAlignData(""); rec.SetWriteESDfriend(kTRUE); rec.SetInput(filename); @@ -85,7 +90,7 @@ void recTracking(const char *filename="data.root", Int_t type=0, Int_t nevents=1 AliMagFMaps* field = new AliMagFMaps("Maps","Maps", 2, 1., 10., 1); AliTracker::SetFieldMap(field,1); rec.SetWriteAlignmentData(kTRUE); - rec.Run(0,nevents); + rec.Run(0); }