]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Add methods to get access to names of files used in merging.
authorjchudoba <jchudoba@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 16 Jul 2002 13:47:53 +0000 (13:47 +0000)
committerjchudoba <jchudoba@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 16 Jul 2002 13:47:53 +0000 (13:47 +0000)
STEER/AliRunDigitizer.cxx
STEER/AliRunDigitizer.h

index 32eace15eaaa099cd7238955e8d3202c2a95508a..08a8cbe13481cd6da019dc55ae3193ef38fe86d3 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.16  2002/06/07 09:18:47  jchudoba
+Changes to enable merging of ITS fast rec points. Although this class should be responsible for a creation of digits only, other solutions would be more complicated.
+
 Revision 1.15  2002/04/09 13:38:47  jchudoba
 Add const to the filename argument
 
@@ -630,3 +633,18 @@ void AliRunDigitizer::ExecuteTask(Option_t* option)
   fHasExecuted = kTRUE;
   return;
 }
+////////////////////////////////////////////////////////////////////////
+TString AliRunDigitizer::GetInputFileName(const Int_t input, const Int_t order) const 
+{
+// returns file name of the order-th file in the input stream input
+// returns empty string if such file does not exist
+// first input stream is 0
+// first file in the input stream is 0
+  TString fileName("");
+  if (input >= fNinputs) return fileName;
+  AliStream * stream = static_cast<AliStream*>(fInputStreams->At(input));
+  if (order > stream->GetNInputFiles()) return fileName;
+  fileName = stream->GetFileName(order);
+  return fileName;
+}
+////////////////////////////////////////////////////////////////////////
index 862d57b854b39fd8d217cfabd9f58aed67facd6f..95e5de5a2312ce4497899e2fad33bef324a9a005 100644 (file)
@@ -90,6 +90,8 @@ public:
 // (index without mask)
   TParticle* GetParticle(Int_t i, Int_t input, Int_t event) const;
 
+// return TString with input file name  
+  TString GetInputFileName(const Int_t input, const Int_t order) const;
   
   Int_t     GetDebug() const {return fDebug;}
   void      SetDebug(Int_t level) {fDebug = level;}