+//______________________________________________________________________
+void AliITSsimulationSSD::WriteSDigits(AliITSpList *pList){
+ // Fills the Summable digits Tree
+ Int_t i,ni,j,nj;
+ static AliITS *aliITS = (AliITS*)gAlice->GetModule("ITS");
+
+ pList->GetMaxMapIndex(ni,nj);
+ for(i=0;i<ni;i++)for(j=0;j<nj;j++){
+ if(pList->GetSignalOnly(i,j)>0.0){
+ aliITS->AddSumDigit(*(pList->GetpListItem(i,j)));
+// cout << "pListSSD: " << *(pList->GetpListItem(i,j)) << endl;
+ } // end if
+ } // end for i,j
+ return;
+}
+//______________________________________________________________________
+void AliITSsimulationSSD::FillMapFrompList(AliITSpList *pList){
+ // Fills fMap2A from the pList of Summable digits
+ Int_t k,ix;
+
+ for(k=0;k<2;k++)for(ix=0;ix<GetNStrips();ix++)
+ fMapA2->AddSignal(k,ix,pList->GetSignal(k,ix));
+ return;
+}
+//______________________________________________________________________
+void AliITSsimulationSSD::Print(ostream *os){
+ //Standard output format for this class
+
+ //AliITSsimulation::Print(os);
+ *os << fIonE <<",";
+ *os << fDifConst[0] <<","<< fDifConst[1] <<",";
+ *os << fDriftVel[0] <<","<< fDriftVel[1];
+ //*os <<","; fDCS->Print(os);
+ //*os <<","; fMapA2->Print(os);
+}
+//______________________________________________________________________
+void AliITSsimulationSSD::Read(istream *is){
+ // Standard output streaming function.
+
+ //AliITSsimulation::Read(is);
+ *is >> fIonE;
+ *is >> fDifConst[0] >> fDifConst[1];
+ *is >> fDriftVel[0] >> fDriftVel[1];
+ //fDCS->Read(is);
+ //fMapA2->Read(is);
+}
+//______________________________________________________________________
+ostream &operator<<(ostream &os,AliITSsimulationSSD &source){
+ // Standard output streaming function.
+
+ source.Print(&os);
+ return os;
+}
+//______________________________________________________________________
+istream &operator>>(istream &os,AliITSsimulationSSD &source){
+ // Standard output streaming function.
+
+ source.Read(&os);
+ return os;
+}
+//______________________________________________________________________