]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - THijing/THijing.h
coverity fixes
[u/mrichter/AliRoot.git] / THijing / THijing.h
index af93f1c6fcc79c6eec9b1c4f937e2da9aa672b03..58420aa04993b03d0ccc775559a6ec8e82ccedfa 100644 (file)
@@ -1,7 +1,6 @@
-#ifndef ROOT_THijing
-#define ROOT_THijing
+#ifndef THIJING_H
+#define THIJING_H
 
-//+SEQ,CopyRight,T=NOINCLUDE.
 
 //////////////////////////////////////////////////////////////////////////
 //                                                                      //
 //////////////////////////////////////////////////////////////////////////
 
 #ifndef ROOT_TGenerator
-//*KEEP,TGenerator.
 #include "TGenerator.h"
-//*KEND.
 #endif
+class TObjArray;
 
 class THijing : public TGenerator {
 
-protected:
-
-   Float_t      fEfrm;
-   TString      fFrame;
-   TString      fProj;
-   TString      fTarg;
-   Int_t        fIap;
-   Int_t        fIzp;
-   Int_t        fIat;
-   Int_t        fIzt;
-   Float_t      fBmin;
-   Float_t      fBmax;
 
 public:
    
@@ -45,8 +31,7 @@ public:
    virtual void        GenerateEvent();
 
    virtual Int_t       ImportParticles(TClonesArray *particles, Option_t *option="");
-
-//   virtual void        SetupTest();
+   virtual TObjArray*  ImportParticles(Option_t *option="");
 
 
    //Parameters for the generation:
@@ -187,6 +172,12 @@ public:
    virtual Int_t       GetNFT(Int_t key1, Int_t key2) const;
 
    virtual Float_t     GetPT(Int_t key1, Int_t key2) const;
+
+   // common LUDAT1_HIJING common:
+   virtual void        SetPARJ(Int_t key, Float_t parm);
+   virtual void        SetMSTJ(Int_t key, Int_t   parm);   
+   virtual void        SetMDCY(Int_t key1, Int_t key2, Int_t   parm);   
+   virtual Int_t       GetMDCY(Int_t key1, Int_t key2);   
    
    // access to HIJING routines:
 
@@ -202,8 +193,20 @@ public:
 
    virtual void         Rluget(Int_t lfn, Int_t move=0);
    virtual void         Rluset(Int_t lfn, Int_t move=0);   
-
-   ClassDef(THijing,1)  //Interface to Hijing Event Generator
+   virtual void         Pylist(Int_t flag);
+   protected:
+
+    Float_t      fEfrm;     // Energy in the centre of mass (CMS) or lab-frame (LAB)
+    TString      fFrame;    // Reference frame CMS or LAB
+    TString      fProj;     // Projectile name
+    TString      fTarg;     // Target name
+    Int_t        fIap;      // Atomic number of projectile
+    Int_t        fIzp;      // Charge number of projectile 
+    Int_t        fIat;      // Atomic number of target
+    Int_t        fIzt;      // Charge number of target
+    Float_t      fBmin;     // Minimum impact parameter
+    Float_t      fBmax;     // Maximum impact parameter
+    ClassDef(THijing,1)  //Interface to Hijing Event Generator
 };
 
 #endif