]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVGEN/AliGenReaderCwn.h
Realisation of AliGenReader that reads the old cwn event format.
[u/mrichter/AliRoot.git] / EVGEN / AliGenReaderCwn.h
diff --git a/EVGEN/AliGenReaderCwn.h b/EVGEN/AliGenReaderCwn.h
new file mode 100644 (file)
index 0000000..a1b7759
--- /dev/null
@@ -0,0 +1,47 @@
+#ifndef ALIGENREADERCWN_H
+#define ALIGENREADERCWN_H
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice                               */
+
+/* $Id$ */
+
+#include "AliGenReader.h"
+
+
+class AliGenReaderCwn : public AliGenReader
+{
+ public:
+    AliGenReaderCwn();
+    
+    AliGenReaderCwn(const AliGenReaderCwn &reader){;}
+    virtual ~AliGenReaderCwn(){;}
+    // Initialise 
+    virtual void Init();
+    // Read
+    virtual Int_t NextEvent();
+    virtual TParticle*  NextParticle();
+    AliGenReaderCwn & operator=(const AliGenReader & rhs);
+ protected:
+    Int_t             fNcurrent;      // points to the next entry
+    Int_t             fNparticle;     // particle number in event
+    Int_t             fNparticleMax;  // number of particles in event    
+    TTree            *fTreeNtuple;    // pointer to the TTree
+    //Declaration of leaves types
+    Int_t           fNihead;          // Number of entries in integer header  
+    Int_t           fIhead[12];       // Integer header
+    Int_t           fNrhead;          // Number of entries in float header
+    Float_t         fRhead[6];        // Float header
+    UInt_t          fIdpart;          // Particle type
+    Float_t         fTheta;           // Theta 
+    Float_t         fPhi;             // Phi
+    Float_t         fP;               // Total momentum
+    Float_t         fE;               // Total energy
+    ClassDef(AliGenReaderCwn,1) // Read particles from cwn-ntuple
+};
+#endif
+
+
+
+
+
+