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