]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWG1/TRD/AliTRDcalibration.cxx
- Macro to create the "raw" data file with selected events
[u/mrichter/AliRoot.git] / PWG1 / TRD / AliTRDcalibration.cxx
index 1177e901f88fb9992cf2160227230863ad2eb6e8..aa5cafc572f41f329bdb0b30aea4e60d7191be6a 100644 (file)
@@ -204,8 +204,6 @@ void AliTRDcalibration::UserCreateOutputObjects()
 {
   // Create output objects
 
-  OpenFile(1, "RECREATE");
-  
   // Number of time bins
   if(fNbTimeBins==0) {
     AliTRDcalibDB *cal = AliTRDcalibDB::Instance();
@@ -346,7 +344,8 @@ void AliTRDcalibration::UserCreateOutputObjects()
     fContainer->Add(fCHSum);
 
   }
-
+  // Post output data
+  PostData(1, fContainer);
 }
 
 //________________________________________________________________________
@@ -467,15 +466,8 @@ void AliTRDcalibration::UserExec(Option_t *)
     fNbTRDTrackOffline->Fill(nbTrdTracksOffline);
     
   }
-
-  //printf("Nbof tracks %d\n",nbTrdTracks);
-  
-  // Post output data
-  PostData(1, fContainer);
-
-  //printf("post container\n");
-  
-}      
+}  
+    
 //________________________________________________________________________
 void AliTRDcalibration::Terminate(Option_t *) 
 {
@@ -716,7 +708,7 @@ case kCH2DVector:{
     hdetector = 0x0;
     if((TMath::Abs(max) <= 0.001) || (detectormax <0.0) || (detectormax >=540.0)) break;
     if(!(hdetector = (TH2S *)h->GetLinearFitterHisto((Int_t)detectormax,kFALSE))) break;
-    AliInfo(Form("The detector with the maximum of entries is %d",detectormax));
+    AliInfo(Form("The detector with the maximum of entries is %f",detectormax));
     hdetector->Draw();
     return kTRUE;
   }
@@ -1077,8 +1069,10 @@ Bool_t AliTRDcalibration::FillGraphIndex(const TObjArray *vectora,TGraph *graph)
     y[k]  = ((Float_t *)((AliTRDCalibraFit::AliTRDFitInfo *) vectora->At(k))->GetCoef())[0];
   }
 
-  if(!graph) graph = new TGraph(540,&x[0],&y[0]);
-  else{ 
+  if(!graph){
+    graph = new TGraph(540,&x[0],&y[0]);
+    graph->SetMarkerStyle(20);
+  } else{ 
     graph->~TGraph();
     new(graph) TGraph(540,&x[0],&y[0]);
   }