]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Coding Rule violations corrected.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 14 Nov 2003 09:10:54 +0000 (09:10 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 14 Nov 2003 09:10:54 +0000 (09:10 +0000)
EVGEN/AliGenReaderTreeK.cxx
EVGEN/AliGenReaderTreeK.h

index 241139fa81cbd03ed239c6e3ab651c8c50b088b3..f3e8411468c35ee95b0a8b77eba7a11a87b1ccae 100644 (file)
  **************************************************************************/
 
 /* $Id$ */
-
+//
+// Realisation of AliGenReader to be used with AliGenExtFile
+// It reads events from a kinematics TreeK.
+// NextEvent() is used to loop over events 
+// and NextParticle() to loop over particles.  
+// Author: andreas.morsch@cern.ch
+//
 #include <TFile.h>
 #include <TTree.h>
 #include <TParticle.h>
@@ -165,6 +171,8 @@ void AliGenReaderTreeK::Copy(AliGenReaderTreeK&) const
 
 TString& AliGenReaderTreeK::GetDirName(Int_t entry)
  {
+// Get the current directory name
+
    TString* retval;//return value
    if (fDirs ==  0x0)
     {
index 9dda69c51ab87a1212ed05caec7f85e39b809897..7ab6023e922b7116a98d97f25f19d4296f2e8184 100644 (file)
@@ -4,13 +4,17 @@
  * See cxx source for full Copyright notice                               */
 
 /* $Id$ */
-
+//
+// Realisation of AliGenReader to be used with AliGenExtFile
+// It reads events from a kinematics TreeK.
+// Author: andreas.morsch@cern.ch
+//
 #include "AliGenReader.h"
 #include "AliStack.h"
 
 class TFile;
-class AliHeader;
 class AliRunLoader;
+class AliStack;
 class TString;
 class TObjArray;
 
@@ -30,8 +34,7 @@ class AliGenReaderTreeK : public AliGenReader
     AliGenReaderTreeK & operator=(const AliGenReaderTreeK & rhs);
     void SetDirs(TObjArray* dirs){fDirs = dirs;} //sets array directories names
     void AddDir(const char* dirname);
- private:
-    void Copy(AliGenReaderTreeK&) const;
+
  protected:
     Int_t             fNcurrent;          // points to the next entry
     Int_t             fNparticle;         // Next particle in list
@@ -46,7 +49,8 @@ class AliGenReaderTreeK : public AliGenReader
     
     TString&   GetDirName(Int_t entry);
     TParticle* GetParticle(Int_t i);
-    
+ private:
+    void Copy(AliGenReaderTreeK&) const;    
     ClassDef(AliGenReaderTreeK,1) // Read particles from TreeK
 };