+ branch->SetAddress(&fDigitsArray) ;
+
+ if (fDigitsArray) fDigitsArray->Clear();
+
+ branch->GetEntry(0) ;
+ MakeDigits() ;
+ //
+ IncEvCountCycleDigits();
+ IncEvCountTotalDigits();
+ //
+}
+
+//_____________________________________________________________________
+void AliFMDQADataMakerSim::MakeSDigits()
+{
+ // makes data from Digits
+ //
+ // Parameters:
+ // none
+ if(!fSDigitsArray) return;
+
+ for(Int_t i = 0 ; i < fSDigitsArray->GetEntriesFast() ; i++) {
+ //Raw ADC counts
+ AliFMDSDigit* sdigit = static_cast<AliFMDSDigit*>(fSDigitsArray->At(i));
+ FillSDigitsData(0,sdigit->Counts());
+ }
+ //
+}
+
+//_____________________________________________________________________
+void AliFMDQADataMakerSim::MakeSDigits(TTree * sdigitTree)
+{
+ // Make data from digits.
+ //
+ // Parameters:
+ // digitTree Tree holding digits.
+ //
+ if (!fSDigitsArray)
+ fSDigitsArray = new TClonesArray("AliFMDSDigit", 1000) ;
+ fSDigitsArray->Clear() ;
+
+ TBranch * branch = sdigitTree->GetBranch("FMD") ;
+ if (!branch) {
+ AliWarning("FMD branch in SDigit Tree not found") ;
+ return;
+ }
+ branch->SetAddress(&fSDigitsArray) ;