]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVGEN/AliGenExtFile.h
All coding rule violations except RS3 corrected
[u/mrichter/AliRoot.git] / EVGEN / AliGenExtFile.h
index dc1579a96e599cfcce41c8f70473d0a44c11a1f5..0114de5f1d2fd5b2635d2da64cdc38b56e892008 100644 (file)
@@ -1,53 +1,50 @@
-#ifndef AliGenExtFile_H
-#define AliGenExtFile_H
+#ifndef ALIGENEXTFILE_H
+#define ALIGENEXTFILE_H
 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
  * See cxx source for full Copyright notice                               */
 
 /* $Id$ */
 
-/////////////////////////////////////////////////////////
-//  Manager and hits classes for set:MUON version 0    //
-/////////////////////////////////////////////////////////
+
+
 #include "AliGenerator.h"
-#include "TNamed.h"
-#include "TF1.h"
-#include "TArrayF.h"
 #include "TTree.h"
 
 // Read background particles from a FLUKA boundary source file
 
 class AliGenExtFile : public AliGenerator
 {
+ public:
+    AliGenExtFile();
+    AliGenExtFile(Int_t npart);
+    AliGenExtFile(const AliGenExtFile &cocktail);
+    
+    virtual ~AliGenExtFile();
+    // Initialise 
+    virtual void Init() {}
+    // Initialise fluka data 
+    virtual void NtupleInit();
+    // set file name of data file
+    virtual void SetFileName(const Text_t *filname) {fFileName=filname;}
+    // generate event
+    virtual void Generate();
+    AliGenExtFile & operator=(const AliGenExtFile & rhs);
 protected:
-  const Text_t     *fFileName;         //! Choose the file
-  Int_t           fNcurrent;           // points to the next entry
-  TTree           *fTreeNtuple;        // pointer to the TTree
-//Declaration of variables read from the file -- TTree type
-  //Declaration of leaves types
-   Int_t           Nihead;
-   Int_t           Ihead[12];
-   Int_t           Nrhead;
-   Float_t         Rhead[6];
-   UInt_t          Idpart;
-   Float_t         Theta;
-   Float_t         Phi;
-   Float_t         P;
-   Float_t         E;
-public:
-   AliGenExtFile();
-  AliGenExtFile(Int_t npart);
-  virtual ~AliGenExtFile();
-  // Initialise 
-  virtual void Init() {}
-  // Initialise fluka data 
-  virtual void NtupleInit();
-  // set file name of data file
-  virtual void SetFileName(const Text_t *filname) {fFileName=filname;}
-  // generate event
-  virtual void Generate();
-
-  ClassDef(AliGenExtFile,1) //Boundary source
+    const Text_t     *fFileName;      //! Choose the file
+    Int_t             fNcurrent;      // points to the next entry
+    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(AliGenExtFile,1) //Generate particles from external file
 };
 #endif