overrun array fixed
authorbasanta <basanta@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 12 Oct 2010 11:31:45 +0000 (11:31 +0000)
committerbasanta <basanta@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 12 Oct 2010 11:31:45 +0000 (11:31 +0000)
PMD/AliPMDDDLRawData.cxx
PMD/AliPMDDigitizer.cxx

index 53a6732..5769d7d 100644 (file)
@@ -111,7 +111,7 @@ void AliPMDDDLRawData::WritePMDRawData(TTree *treeD)
 
   Int_t contentsBus[kbusSize];
 
-  Char_t filename[80];
+  Char_t filename[60];
 
   Int_t modulePerDDL        = 0;
   Int_t mmodule = 0;
@@ -128,7 +128,7 @@ void AliPMDDDLRawData::WritePMDRawData(TTree *treeD)
          modulenoddl[im] = fDdlinfo->GetModulesPerDdl(iddl,im);;
        }
 
-      strncpy(filename,AliDAQ::DdlFileName("PMD",iddl),80);
+      strncpy(filename,AliDAQ::DdlFileName("PMD",iddl),60);
       
       outfile = new AliFstream(filename);
       
index 8392d62..25475dd 100644 (file)
@@ -1064,7 +1064,7 @@ void AliPMDDigitizer::TrackAssignment2CPVCell()
                  // This block handles if a cell is fired
                  // many times by many tracks
                  status1  = new Int_t[nn];
-                 status2  = new Int_t[nn];
+                 status2  = new Int_t[2*nn];
                  trnarray = new Int_t[nn];
                  for (iz = 0; iz < nn; iz++)
                    {
@@ -1325,7 +1325,7 @@ void AliPMDDigitizer::TrackAssignment2Cell()
                  // This block handles if a cell is fired
                  // many times by many tracks
                  status1  = new Int_t[nn];
-                 status2  = new Int_t[nn];
+                 status2  = new Int_t[2*nn];
                  trnarray = new Int_t[nn];
                  for (iz = 0; iz < nn; iz++)
                    {