]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliEMCALQADataMakerSim.cxx
Getters, copy constructor,=operator added
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALQADataMakerSim.cxx
index 1eb61d970b3c612e5a7dd3618aa0d353c230d9c1..27b96552bdf72d03eaa7a1a0d6e5b52ec7301dd7 100644 (file)
@@ -125,6 +125,11 @@ void AliEMCALQADataMakerSim::MakeHits(TClonesArray * hits)
 {
   //make QA data from Hits
 
+  
+  // Check id histograms already created for this Event Specie
+  if ( ! GetHitsData(0) )
+    InitHits() ;
+  
   GetHitsData(1)->Fill(hits->GetEntriesFast()) ; 
   TIter next(hits) ; 
   AliEMCALHit * hit ; 
@@ -167,6 +172,11 @@ void AliEMCALQADataMakerSim::MakeDigits(TClonesArray * digits)
 {
   // makes data from Digits
 
+  
+  // Check id histograms already created for this Event Specie
+  if ( ! GetDigitsData(0) )
+    InitDigits() ;
+  
   GetDigitsData(1)->Fill(digits->GetEntriesFast()) ; 
   TIter next(digits) ; 
   AliEMCALDigit * digit ; 
@@ -199,6 +209,11 @@ void AliEMCALQADataMakerSim::MakeSDigits(TClonesArray * sdigits)
   // makes data from SDigits
   //Need a copy of the SDigitizer to calibrate the sdigit amplitude to
   //energy in GeV
+  
+  // Check id histograms already created for this Event Specie
+  if ( ! GetSDigitsData(0) )
+    InitSDigits() ;
+  
   AliEMCALSDigitizer* sDigitizer = new AliEMCALSDigitizer();
 
   GetSDigitsData(1)->Fill(sdigits->GetEntriesFast()) ;