]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliRunDigitizer.cxx
Factory method corrected, the array is now created using operator new
[u/mrichter/AliRoot.git] / STEER / AliRunDigitizer.cxx
index fdd66538eff76e425de2e6f430af91b0b4aef9f6..fb07f41dc684a80f75779a8c75020f13259f5d66 100644 (file)
 
 /*
 $Log$
+Revision 1.5  2001/09/20 14:35:25  jchudoba
+Temporary disable GetParticle and GetNParticles functions
+
+Revision 1.4  2001/09/19 06:23:50  jchudoba
+Move some tasks to AliStream and AliMergeCombi classes
+
 Revision 1.3  2001/07/30 14:04:18  jchudoba
 correct bug in the initialization
 
@@ -369,6 +375,11 @@ Int_t  AliRunDigitizer::GetNParticles(Int_t event, Int_t input)
 // event (as numbered in this input file)
 // return -1 if some error
 
+// Must be revised in the version with AliStream
+
+  return -1;
+
+/*
   TFile *file = ConnectInputFile(input);
   if (!file) {
     Error("GetNParticles","Cannot open input file");
@@ -393,6 +404,7 @@ Int_t  AliRunDigitizer::GetNParticles(Int_t event, Int_t input)
     cerr<<"Nsecondary: "<<header->GetNsecondary()<<endl;
   }
   return header->GetNprimary() + header->GetNsecondary();
+*/
 }
 
 ////////////////////////////////////////////////////////////////////////
@@ -402,7 +414,7 @@ Int_t* AliRunDigitizer::GetInputEventNumbers(Int_t event)
 // merged in the output event event
 
 // simplified for now, implement later
-  Int_t a[MAXSTREAMSTOMERGE];
+  Int_t * a = new Int_t[MAXSTREAMSTOMERGE];
   for (Int_t i = 0; i < fNinputs; i++) {
     a[i] = event;
   }
@@ -433,8 +445,12 @@ TParticle* AliRunDigitizer::GetParticle(Int_t i, Int_t input, Int_t event)
 // return pointer to particle with index i in the input file input
 // (index without mask)
 // event is the event number in the file input
-// return 0 i fit does not exist
+// return 0 if it does not exist
+
+// Must be revised in the version with AliStream
 
+  return 0;
+/*
   TFile *file = ConnectInputFile(input);
   if (!file) {
     Error("GetParticle","Cannot open input file");
@@ -480,6 +496,7 @@ TParticle* AliRunDigitizer::GetParticle(Int_t i, Int_t input, Int_t event)
   if (bytesRead)
     return particleBuffer;
   return  0;
+*/
 }
 ////////////////////////////////////////////////////////////////////////