Bug fixed in AliMFTSupport.cxx
authorauras <antonio.uras@cern.ch>
Tue, 25 Feb 2014 22:16:24 +0000 (23:16 +0100)
committerauras <antonio.uras@cern.ch>
Tue, 25 Feb 2014 22:16:24 +0000 (23:16 +0100)
MFT/AliMFTSupport.cxx
MFT/runReconstruction.C
MFT/runSimulation.C

index b24c264..a67dc10 100644 (file)
@@ -174,9 +174,10 @@ Bool_t AliMFTSupport::RefitAODDimuonWithCommonVertex(AliAODDimuon *dimuon, Doubl
 
   Double_t massMu = TDatabasePDG::Instance()->GetParticle("mu-")->Mass();
 
-  Double_t energy = TMath::Sqrt(massMu*massMu + pTot[0]*pTot[0] + pTot[1]*pTot[1] + pTot[2]*pTot[2]); 
+  Double_t energy0 = TMath::Sqrt(massMu*massMu + param0->Px()*param0->Px() + param0->Py()*param0->Py() + param0->Pz()*param0->Pz());
+  Double_t energy1 = TMath::Sqrt(massMu*massMu + param1->Px()*param1->Px() + param1->Py()*param1->Py() + param1->Pz()*param1->Pz());
 
-  kinem.SetPxPyPzE(pTot[0], pTot[1], pTot[2], energy);
+  kinem.SetPxPyPzE(pTot[0], pTot[1], pTot[2], energy0+energy1);
 
   return kTRUE;
 
index e55e4a1..e56113d 100644 (file)
@@ -1,4 +1,5 @@
-void runReconstruction(Int_t seed, const Char_t *recOptions) {
+void runReconstruction(Int_t seed, 
+                      const Char_t *recOptions) {
   
   gRandom->SetSeed(seed);
 
@@ -10,33 +11,14 @@ void runReconstruction(Int_t seed, const Char_t *recOptions) {
   // GRP from local OCDB
   reco->SetSpecificStorage("GRP/GRP/Data",Form("local://%s",gSystem->pwd()));
   
-  reco->SetDefaultStorage("alien://folder=/alice/data/2011/OCDB");
-
-  reco->SetSpecificStorage("MUON/Align/Data",                      "alien://folder=/alice/simulation/2008/v4-15-Release/Residual");
-  reco->SetSpecificStorage("MUON/Calib/Capacitances",              "alien://folder=/alice/simulation/2008/v4-15-Release/Residual");
-  reco->SetSpecificStorage("MUON/Calib/Config",                    "alien://folder=/alice/simulation/2008/v4-15-Release/Residual");
-  reco->SetSpecificStorage("MUON/Calib/Gain",                      "alien://folder=/alice/simulation/2008/v4-15-Release/Residual");
-  reco->SetSpecificStorage("MUON/Calib/GlobalTriggerBoardMasks",   "alien://folder=/alice/simulation/2008/v4-15-Release/Residual");
-  reco->SetSpecificStorage("MUON/Calib/GlobalTriggerCrateConfig",  "alien://folder=/alice/simulation/2008/v4-15-Release/Residual");
-  reco->SetSpecificStorage("MUON/Calib/HV",                        "alien://folder=/alice/simulation/2008/v4-15-Release/Residual");
-  reco->SetSpecificStorage("MUON/Calib/LocalTriggerBoardMasks",    "alien://folder=/alice/simulation/2008/v4-15-Release/Residual");
-  reco->SetSpecificStorage("MUON/Calib/MappingData",               "alien://folder=/alice/simulation/2008/v4-15-Release/Residual");
-  reco->SetSpecificStorage("MUON/Calib/MappingRunData",            "alien://folder=/alice/simulation/2008/v4-15-Release/Residual");
-  reco->SetSpecificStorage("MUON/Calib/Neighbours",                "alien://folder=/alice/simulation/2008/v4-15-Release/Residual");
-  reco->SetSpecificStorage("MUON/Calib/OccupancyMap",              "alien://folder=/alice/simulation/2008/v4-15-Release/Residual");
-  reco->SetSpecificStorage("MUON/Calib/Pedestals",                 "alien://folder=/alice/simulation/2008/v4-15-Release/Residual");
-  reco->SetSpecificStorage("MUON/Calib/RegionalTriggerBoardMasks", "alien://folder=/alice/simulation/2008/v4-15-Release/Residual");
-  reco->SetSpecificStorage("MUON/Calib/RegionalTriggerConfig",     "alien://folder=/alice/simulation/2008/v4-15-Release/Residual");
-  reco->SetSpecificStorage("MUON/Calib/RejectList",                "alien://folder=/alice/simulation/2008/v4-15-Release/Residual");
-  reco->SetSpecificStorage("MUON/Calib/TriggerDCS",                "alien://folder=/alice/simulation/2008/v4-15-Release/Residual");
-  reco->SetSpecificStorage("MUON/Calib/TriggerEfficiency",         "alien://folder=/alice/simulation/2008/v4-15-Release/Residual");
-  reco->SetSpecificStorage("MUON/Calib/TriggerLut",                "alien://folder=/alice/simulation/2008/v4-15-Release/Residual");
-
-  reco->SetSpecificStorage("MUON/Calib/RecoParam", "alien://folder=/alice/cern.ch/user/a/auras/OCDB/");
-  reco->SetSpecificStorage("MFT/Align/Data",       "alien://folder=/alice/cern.ch/user/a/auras/OCDB/");
-  reco->SetSpecificStorage("MFT/Calib/RecoParam",  "alien://folder=/alice/cern.ch/user/a/auras/OCDB/");
+  // MUON Tracker
+  reco->SetSpecificStorage("MUON/Align/Data",     "alien://folder=/alice/simulation/2008/v4-15-Release/Residual");
+  reco->SetSpecificStorage("MUON/Calib/RecoParam","alien://folder=/alice/cern.ch/user/a/auras/OCDB/");
 
   reco->SetOption("MUON MFT",recOptions);
+  reco->SetRunQA(":");
+//   reco->SetQAWriteExpert(AliQAv1::kMUON);
+//   reco->SetQARefDefaultStorage("local://$ALICE_ROOT/QAref");
 
   reco->SetWriteESDfriend(kFALSE);
   reco->SetStopOnError(kFALSE);
index f0e8b87..4c67f67 100644 (file)
@@ -16,7 +16,7 @@ void runSimulation(Int_t seed,
   gRandom->SetSeed(seed);
 
   // MUON Tracker
-  simulator->SetSpecificStorage("MUON/Align/Data",  "local:///gridgroup/ALICE/auras/upgrade/simulations/OCDB/simulation/2008/v4-15-Release/Ideal");
+  simulator->SetSpecificStorage("MUON/Align/Data",      "alien://folder=/alice/simulation/2008/v4-15-Release/Ideal");
   simulator->SetSpecificStorage("MUON/Calib/RecoParam", "alien://folder=/alice/cern.ch/user/a/auras/OCDB/");
   simulator->SetSpecificStorage("MFT/Align/Data",       "alien://folder=/alice/cern.ch/user/a/auras/OCDB/");
   simulator->SetSpecificStorage("MFT/Calib/RecoParam",  "alien://folder=/alice/cern.ch/user/a/auras/OCDB/");