]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONQADataMakerSim.cxx
remoe duplicate QA initialisation and do ESD QA for same detectors as RecPoint QA
[u/mrichter/AliRoot.git] / MUON / AliMUONQADataMakerSim.cxx
index 6387549b5405cd94b927f66be423ec9e81001d74..fc36d435d5993f78cb60a9a2506f7296826e03d9 100644 (file)
@@ -55,9 +55,19 @@ AliMUONQADataMakerSim::AliMUONQADataMakerSim() :
 
 //____________________________________________________________________________ 
 AliMUONQADataMakerSim::AliMUONQADataMakerSim(const AliMUONQADataMakerSim& qadm) :
-    AliQADataMakerSim()
+    AliQADataMakerSim(),
+  fHitStore(0x0),
+  fDigitStore(0x0)
 {
-    ///copy ctor 
+    ///copy ctor
+    if ( qadm.fHitStore ) 
+    {
+      fHitStore = static_cast<AliMUONVHitStore*>(qadm.fHitStore->Clone());
+    }
+    if ( qadm.fDigitStore ) 
+    {
+      fDigitStore = static_cast<AliMUONVDigitStore*>(qadm.fDigitStore->Clone());
+    }
     SetName((const char*)qadm.GetName()) ; 
     SetTitle((const char*)qadm.GetTitle()); 
 }
@@ -178,7 +188,7 @@ void AliMUONQADataMakerSim::MakeDigits(TTree* digitsTree)
 }
       
 //____________________________________________________________________________ 
-void AliMUONQADataMakerSim::EndOfDetectorCycle(AliQA::TASKINDEX task, TObjArray* list)
+void AliMUONQADataMakerSim::EndOfDetectorCycle(AliQA::TASKINDEX_t task, TObjArray* list)
 {
     ///Detector specific actions at end of cycle
     // do the QA checking