efficiency table now written to file and not directly into OCDB (G. Bruno)
authormasera <masera@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 25 Jun 2008 17:02:39 +0000 (17:02 +0000)
committermasera <masera@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 25 Jun 2008 17:02:39 +0000 (17:02 +0000)
ITS/EvaluateSPDEffWithTracklets.C

index 4d2f306..efdc0e2 100644 (file)
@@ -162,6 +162,11 @@ void EvaluateSPDEffWithTracklets(Char_t* dir=".", Bool_t mc=kTRUE, Bool_t bckg=k
 
 if(trackleterSPDEff->GetMC()) trackleterSPDEff->SavePredictionMC();
 if(!trackleterSPDEff->WriteHistosToFile()) printf("cannot write histos to file \n");
-trackleterSPDEff->GetPlaneEff()->WriteIntoCDB();
+//trackleterSPDEff->GetPlaneEff()->WriteIntoCDB();
+const char* name="AliITSPlaneEffSPDtracklet.root";
+TFile* pefile = TFile::Open(name, "RECREATE");
+Int_t nb=trackleterSPDEff->GetPlaneEff()->Write();
+if(nb>0) printf("Writing PlaneEfficiency to file %s\n",name);
+pefile->Close();
 return;
 }
\ No newline at end of file