]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
add a protection so that InitRecPoints is called only once
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 20 Dec 2009 19:57:25 +0000 (19:57 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 20 Dec 2009 19:57:25 +0000 (19:57 +0000)
STEER/AliGlobalQADataMaker.cxx

index a965c69d7bd77ce77d7a61e9124b95655f965184..a03519c24fa0bf714d33f29341316a3fb0e59cbc 100644 (file)
@@ -40,6 +40,9 @@ void AliGlobalQADataMaker::InitRecPoints() {
   // This function books the histograms of *track*residuals*
   // as a part of global QA
   //------------------------------------------------------
+  static Bool_t first = kTRUE ; 
+  if ( ! first ) 
+    return ; 
   const Char_t *name[]={
     "hGlobalSPD1ResidualsY","SPD1ResidualsZ",
     "hGlobalSPD2ResidualsY","SPD2ResidualsZ",
@@ -134,6 +137,7 @@ void AliGlobalQADataMaker::InitRecPoints() {
   new TH1F("hGlobalSSD2AbsoluteResidualsZPosZ",
            "SSD2Absolute Residuals Z Pos Z",100,-3.,3.),47);
   
+  first = kFALSE ; 
 }
 
 //____________________________________________________________________________ 
@@ -272,10 +276,6 @@ void AliGlobalQADataMaker::MakeESDs(AliESDEvent * event) {
   // This function fills the ESD QA histograms
   // as a part of global QA
   //-----------------------------------------------------------
-  // Check id histograms already created for this Event Specie
-  if ( ! GetESDsData(kClr0) )
-    InitESDs() ;
-
 
   const AliESDEvent *esd=event;