]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVGEN/AliGenReaderEcalJets.cxx
Updates to RAW package. Used during the Computing DC.
[u/mrichter/AliRoot.git] / EVGEN / AliGenReaderEcalJets.cxx
index 33672674e2af6da18441dfe3293204e82ae6d3d3..90a575250bee5aec45c19ea0a2dc5461eb63e190 100644 (file)
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
-/*
-$Log$
-*/
-
+/* $Id$ */
+//
+// Realisation of AliGenReader to be used with AliGenExtFile
+// It reads Pythia Jet events from a ntuple like event structure.
+// The event format is defined in Init()
+// 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>
+#include <TTree.h>
 
 #include "AliGenReaderEcalJets.h"
-#include "AliMC.h"
+
 ClassImp(AliGenReaderEcalJets)
 
 
@@ -75,7 +79,7 @@ void AliGenReaderEcalJets::Init()
 Int_t AliGenReaderEcalJets::NextEvent() 
 {
 // Read the next event  
-    Int_t nTracks, nread;
+    Int_t nTracks=0, nread=0;
     
     TFile* pFile = fTreeNtuple->GetCurrentFile();
     pFile->cd();
@@ -95,8 +99,9 @@ Int_t AliGenReaderEcalJets::NextEvent()
 
 TParticle* AliGenReaderEcalJets::NextParticle() 
 {
-    Float_t p[4];
 // Read the next particle
+
+    Float_t p[4];
     Int_t    ipart  = fXid[fNparticle];
     Float_t  pt     = fXpt[fNparticle];
     Float_t  eta    = fXeta[fNparticle];
@@ -122,7 +127,16 @@ TParticle* AliGenReaderEcalJets::NextParticle()
 AliGenReaderEcalJets& AliGenReaderEcalJets::operator=(const  AliGenReaderEcalJets& rhs)
 {
 // Assignment operator
-    return *this;
+    rhs.Copy(*this);
+    return (*this);
+}
+
+void AliGenReaderEcalJets::Copy(TObject&) const
+{
+    //
+    // Copy 
+    //
+    Fatal("Copy","Not implemented!\n");
 }
 
 
@@ -130,3 +144,4 @@ AliGenReaderEcalJets& AliGenReaderEcalJets::operator=(const  AliGenReaderEcalJet
 
 
 
+