]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Coding convention clean-up
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 21 Dec 2000 16:24:06 +0000 (16:24 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 21 Dec 2000 16:24:06 +0000 (16:24 +0000)
34 files changed:
EVGEN/AliDecayer.cxx
EVGEN/AliDecayer.h
EVGEN/AliDecayerPythia.cxx
EVGEN/AliDecayerPythia.h
EVGEN/AliDimuCombinator.cxx
EVGEN/AliDimuCombinator.h
EVGEN/AliGenBox.cxx
EVGEN/AliGenBox.h
EVGEN/AliGenCocktail.cxx
EVGEN/AliGenCocktail.h
EVGEN/AliGenCocktailEntry.cxx
EVGEN/AliGenCocktailEntry.h
EVGEN/AliGenDoubleScan.cxx
EVGEN/AliGenDoubleScan.h
EVGEN/AliGenEventHeader.cxx
EVGEN/AliGenEventHeader.h
EVGEN/AliGenExtFile.cxx
EVGEN/AliGenExtFile.h
EVGEN/AliGenFLUKAsource.cxx
EVGEN/AliGenFLUKAsource.h
EVGEN/AliGenFixed.cxx
EVGEN/AliGenFixed.h
EVGEN/AliGenGSIlib.cxx
EVGEN/AliGenGSIlib.h
EVGEN/AliGenHIJINGpara.cxx
EVGEN/AliGenHIJINGpara.h
EVGEN/AliGenHalo.cxx
EVGEN/AliGenHalo.h
EVGEN/AliGenHijing.cxx
EVGEN/AliGenHijing.h
EVGEN/AliGenLib.h
EVGEN/AliGenParam.cxx
EVGEN/AliGenPythia.h
EVGEN/EVGENLinkDef.h

index b106b529fb5fd8e5b8f1e2693c4d15cdc460cbaa..d8eb6e8c8803883246f5af658e1b1b16ca0432e2 100644 (file)
 
 /*
 $Log$
+Revision 1.1  2000/09/06 14:22:45  morsch
+Particle decayer virtual base class.
+
 */
+// This is an abstract base class !
+// No
+// implemenataion
+// needed.
+// andreas.morsch@cern.ch
 
 #include "AliDecayer.h"
 ClassImp(AliDecayer)
index 3ce5fc2f3554e773a17f0f2676e87a9fbe7918fe..32fce5e29dea95991a58babcd2868b1b9044a20d 100644 (file)
@@ -4,6 +4,11 @@
  * See cxx source for full Copyright notice                               */
 
 /* $Id$ */
+
+// Abstract base class for particle decays.
+// Clients are the transport code and the primary particle generators
+// Author: andreas.morsch@cern.ch
+
 #include "GenTypeDefs.h"
 #include <TObject.h>
 class TClonesArray;
@@ -14,6 +19,7 @@ public TObject
 {
  public:
 //
+    virtual ~AliDecayer(){;}
     virtual void    Init()                                     =0;
     virtual void    Decay(Int_t idpart, TLorentzVector* p)     =0;
     virtual Int_t   ImportParticles(TClonesArray *particles)   =0;
index a9a86919012dbac3e4f6ffc327b87e36f5de4cad..038d6705cb0f17deaf1bd097316a1164dc17987c 100644 (file)
 
 /*
 $Log$
+Revision 1.2  2000/09/12 13:58:45  morsch
+SetForceDcay(..) sets the member data storing the forced decay information.
+ForceDecay() executes the change of the decay table.
+
 Revision 1.1  2000/09/06 14:23:43  morsch
 Realisation of AliDecayer using Pythia6
 
 */
 
+// Implementation of AliDecayer using Pythia
+// Method forwarding to the AliPythia instance.
+// Muonic and electronic decay modes can be forced
+// for heavy flavor hadrons.
+// Author: andreas.morsch@cern.ch
+
+
 #include "AliDecayerPythia.h"
+#include "AliPythia.h"
 #include <TLorentzVector.h>
 
 ClassImp(AliDecayerPythia)
@@ -64,6 +76,8 @@ void AliDecayerPythia::Init()
 
 void AliDecayerPythia::Decay(Int_t idpart, TLorentzVector* p)
 {
+//  Decay a particle
+// 
     Float_t energy = p->Energy();
     Float_t theta  = p->Theta();
     Float_t phi    = p->Phi();
@@ -72,6 +86,14 @@ void AliDecayerPythia::Decay(Int_t idpart, TLorentzVector* p)
     fPythia->GetPrimaries();
 }
 
+Int_t AliDecayerPythia::ImportParticles(TClonesArray *particles)
+{
+// Import the decay products
+//
+    return fPythia->ImportParticles(particles, "All");
+}
+
+
 void AliDecayerPythia::ForceDecay()
 {
 // Force a particle decay mode
@@ -283,15 +305,17 @@ void AliDecayerPythia::AllowAllDecays()
 
 void AliDecayerPythia::DefineParticles()
 {
-    Float_t mass;
-    Float_t tlife;
-    Int_t kc, nkc, i;
 //
 //
 // Some particles cloned for rare decays     
 //
 //  phi-> mu+mu- and phi -> e+e-
 //  clone the original phi
+
+    Float_t mass;
+    Float_t tlife;
+    Int_t kc, nkc, i;
+
     kc  = fPythia->Pycomp(333);
     nkc = 41;
     
@@ -364,6 +388,17 @@ void AliDecayerPythia::Streamer(TBuffer &R__b)
       R__b.WriteArray(fBraPart, 501);
    }
 }
+
+
+void AliDecayerPythia::Copy(AliDecayerPythia &decayer) const
+{
+  //
+  // Copy *this onto AliDecayerPythia -- not implemented
+  //
+  Fatal("Copy","Not implemented!\n");
+}
+
+
 /*
 
                               Particle/parton data table
@@ -2124,7 +2159,7 @@ void AliDecayerPythia::Streamer(TBuffer &R__b)
           1386    1   42    0.105000    nu_mubar        mu-             c               specflav                        
           1387    1   42    0.040000    nu_taubar       tau-            c               specflav                        
           1388    1   42    0.500000    ubar            d               c               specflav                        
-          1389    1   42    0.080000    ubar            c               d               specflav                        
+          1389    1   i42    0.080000    ubar            c               d               specflav                        
           1390    1   42    0.140000    cbar            s               c               specflav                        
           1391    1   42    0.010000    cbar            c               s               specflav                        
           1392    1   42    0.015000    ubar            d               u               specflav                        
index af0af12f3dbedc526d397cd5f93e6264cb0aadc1..6ee76b7373d4a2ce2c1ffd5f1fafc66ec91de7b9 100644 (file)
@@ -5,23 +5,30 @@
 
 /* $Id$ */
 
+// Implementation of AliDecayer using Pythia
+// Method forwarding to the AliPythia instance.
+// Author: andreas.morsch@cern.ch
+
 #include "AliDecayer.h"
-#include "AliPythia.h"
+class AliPythia;
 
 class AliDecayerPythia :
 public AliDecayer
 {
  public:
-//
     AliDecayerPythia();
+    void  Copy(AliDecayerPythia &decayer) const;
+    
+//    
+    virtual         ~AliDecayerPythia();
     virtual void    Init();
     virtual void    Decay(Int_t idpart, TLorentzVector *p);
-    virtual Int_t   ImportParticles(TClonesArray *particles)
-       {return fPythia->ImportParticles(particles, "All");}
+    virtual Int_t   ImportParticles(TClonesArray *particles);
     virtual void    SetForceDecay(Decay_t decay) {fDecay=decay;}
     virtual void    ForceDecay();
     
     virtual Float_t GetPartialBranchingRatio(Int_t ipart);
+    
  private:
     void     DefineParticles();
     void     Lu1Ent(Int_t flag, Int_t idpart, 
@@ -31,12 +38,16 @@ public AliDecayer
     void     ForceHadronicD();    
     void     AllowAllDecays();
     Float_t  GetBraPart(Int_t kf);
+
+    AliDecayerPythia(const AliDecayerPythia &decayer) {;}
+    virtual AliDecayerPythia &operator=(const AliDecayerPythia &decayer) 
+    {decayer.Copy(*this);return(*this);}
     
     
  private:
-    AliPythia*  fPythia;          // Pointer to AliPythia
-    Decay_t     fDecay;           // Forced decay mode
-    Float_t     fBraPart[501];    // Branching ratios
+    AliPythia*  fPythia;          // Pointer to AliPythia
+    Decay_t     fDecay;           //  Forced decay mode
+    Float_t     fBraPart[501];    //  Branching ratios
 
     ClassDef(AliDecayerPythia,1)  // AliDecayer implementation using Pythia  
 };
index 861a32dd1c8863d80d9ac7e09fb06a28f54eef12..14807ba5151878cbe81675ba0404ddb26503f3ed 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.7  2000/10/02 15:16:37  morsch
+Correct coding rule violation for member data names of type fi -> fI.
+
 Revision 1.6  2000/06/14 15:19:47  morsch
 Include clean-up (IH)
 
@@ -29,10 +32,15 @@ Introduction of the Copyright and cvs Log
 
 */
 
-//
-//
-//
-//
+/*  
+ Class for dimuon analysis and fast dimuon simulation.
+ It provides single and dimuon iterators, cuts, weighting, kinematic
+ It uses the AliRun particle tree.
+ Comments and suggestions to 
+ andreas.morsch@cern.ch
+*/
+
+
 #include "AliDimuCombinator.h" 
 #include "AliPDG.h" 
 #include <TRandom.h>
@@ -64,7 +72,7 @@ ClassImp(AliDimuCombinator)
 
 AliDimuCombinator::AliDimuCombinator(const AliDimuCombinator & combinator)
 {
-// copy constructor
+// Dummy copy constructor
 }
 
 
@@ -422,7 +430,13 @@ AliDimuCombinator& AliDimuCombinator::operator=(const  AliDimuCombinator& rhs)
 }
 
 
-
+void AliDimuCombinator::Copy(AliDimuCombinator &combi) const
+{
+  //
+  // Copy *this onto lego -- not implemented
+  //
+  Fatal("Copy","Not implemented!\n");
+}
 
 
 
index 1a0d405c3903371b5c32c7f676d6c6a5662e0bfe..4731b7c74241264771c039745b32e8f96b587ce9 100644 (file)
@@ -4,8 +4,14 @@
  * See cxx source for full Copyright notice                               */
 
 /* $Id$ */
+
+
+//  Class for dimuon analysis and fast dimuon simulation.
+//  It uses the AliRun particle tree.
+//  Comments and suggestions to andreas.morsch@cern.ch
+
+
 #include <TObject.h>
-#include <TParticle.h>
 
 class TClonesArray;
 class TParticle;
@@ -16,7 +22,7 @@ class AliDimuCombinator:
 {
 public:
     AliDimuCombinator(TClonesArray* Partarray);
-    AliDimuCombinator(const AliDimuCombinator &combinator);
+    void  Copy(AliDimuCombinator &combi) const;
 //    
 //  Iterators
 //  Single muons
@@ -56,7 +62,6 @@ public:
     Float_t Weight(TParticle* part);
     Float_t Weight(TParticle* part1, TParticle* part);
     Float_t DecayProbability(TParticle* part);
-    AliDimuCombinator & operator=(const AliDimuCombinator & rhs);
     
  private:
     void FirstPartner();
@@ -67,6 +72,9 @@ public:
     TParticle* Parent(TParticle* part);
     TParticle* Partner();
     Int_t Type(TParticle *part);
+    AliDimuCombinator(const AliDimuCombinator &combinator);
+    AliDimuCombinator & operator=(const AliDimuCombinator & rhs);
+
  private:
     TClonesArray *fPartArray;      // MC Event
     Int_t fNParticle;              // Number of particles
index f0edfd32f91ea7dc45e1192def3d8bc0284eaa84..2f8e9bf3487bad833e91099612cc7f25a3675db5 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.4  2000/11/30 07:12:49  alibrary
+Introducing new Rndm and QA classes
+
 Revision 1.3  2000/10/02 21:28:06  fca
 Removal of useless dependecies via forward declarations
 
@@ -27,25 +30,14 @@ All coding rule violations except RS3 corrected (AM)
 
 */
 
-/*
-Old Log:
-Revision 1.8  2000/06/08 13:34:50  fca
-Better control of momentum range in GenBox
-
-Revision 1.7  2000/06/07 16:29:58  fca
-Adding check for pt range in AliGenBox
-
-Revision 1.6  1999/11/03 17:43:20  fca
-New version from G.Martinez & A.Morsch
 
-Revision 1.5  1999/09/29 09:24:14  fca
-Introduction of the Copyright and cvs Log
-*/
 
-///////////////////////////////////////////////////////////////////
-//                                                               //
-//    Generate the final state of the interaction as the input   //
-//    to the MonteCarlo                                          //
+// Generator for particles in a preset
+// kinematic range (flat distribution)
+// Note that for a given theta pt and p are not independent 
+// Range for only one variable (pt or p) should be given.
+//
+// Comments and suggestions: andreas.morsch@cern.ch
 //
 //Begin_Html
 /*
index fee9ed6ce18a64bf9275f7b1f1152d21f1f8fb0d..238fa8313225ada3d28f90df48af61ea053b42b3 100644 (file)
@@ -5,6 +5,12 @@
 
 /* $Id$ */
 
+/*
+ Generator for particles in a preset
+ kinematic range (flat distribution)
+ Comments and suggestions: andreas.morsch@cern.ch
+*/
+
 #include "AliGenerator.h"
 class AliGenBox : public AliGenerator
 {
index f480c949521c4d2567ba62ff98211d80b3bd03f8..beaba6657720201e114884a07da638896c4ec1bf 100644 (file)
 
 /*
 $Log$
+Revision 1.8  2000/10/27 13:53:29  morsch
+AddGenerator: check testbit before setting the pT and momentum range
+(D.Y. Peressounko)
+
 Revision 1.7  2000/10/02 15:15:41  morsch
 Use default streamer for AliGenCocktail
 
@@ -29,9 +33,18 @@ Introduction of the Copyright and cvs Log
 
 */
 
+// Container class for AliGenerator through recursion.
+// Container is itself an AliGenerator.
+// What is stored are not the pointers to the generators directly but to objects of type
+// AliGenCocktail entry.   
+// The class provides also iterator functionality.  
+// Author: andreas.morsch@cern.ch 
+//
+
 #include "AliGenCocktail.h"
 #include "AliGenCocktailEntry.h"
 #include "AliRun.h"
+#include <TList.h>
 
 ClassImp(AliGenCocktail)
 
index 2f322e631fbf83f07e50ab549c0a0526da790eae..ff41853d2ba10a4f34929088fccaf4401848fbc4 100644 (file)
@@ -5,8 +5,12 @@
 
 /* $Id$ */
 
+// Container class for AliGenerator through recursion.
+// (Container is itself an AliGenerator)
+// Author: andreas.morsch@cern.ch 
+//
+
 #include "AliGenerator.h"
-#include <TList.h>
 
 class AliGenCocktailEntry;
 
index 40a221f3cb09efe1d0075b63174001963e61dbea..fd730fdf47864dec173d0c0ac890b37c2e3d3a3e 100644 (file)
 $Log $
 */
 
+// Entry for AliGenCocktail container class. 
+// See also comments there.
+// In addition to the pointer to the generator the class provides some 
+// bookkeeping functionality (weights, links to particle list, ...)
+// Author: andreas.morsch@cern.ch
+
+#include <TString.h>
 #include "AliGenCocktailEntry.h"
 #include "AliGenerator.h"
 
index bb2e5891be53ed921719c71fd2e387fa611b1291..9809ce7c64ff9b0b888c8789dc2122049bb79622 100644 (file)
@@ -5,9 +5,11 @@
 
 /* $Id$ */
 
+// Entry for AleGenCocktail container class. 
+// See also comments there
+// Author: andreas.morsch@cern.ch
 
 #include <TNamed.h>
-#include <TString.h>
 
 class AliGenerator;
 
index 88c4673e0d21675a50831b31fd7d3a3f6b5a8be8..93eff9f042a10b3a81bb5cca036fc22bf495d165 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.5  2000/12/06 15:11:38  morsch
+Correct double declared data members.
+
 Revision 1.4  2000/11/30 07:12:50  alibrary
 Introducing new Rndm and QA classes
 
@@ -29,6 +32,12 @@ First commit of this file
 
 */
 
+// As AliGenScan,  generation of particles on a 3-dim grid
+// but here double hits with a predefined distance are generated.
+// The second particle is generated at a constant distance but with random phi.
+// Generator can be used to evaluate double hit resolutions.
+// Author: andreas.morsch@cern.ch
+
 #include "AliGenDoubleScan.h"
 #include "AliRun.h"
 
index 0a1044c5452a5ec6cfb511ecf1aa5bb7fa989035..5c795aa5c9d0cd28899ad5b8d5ce12449b6d5c88 100644 (file)
@@ -5,6 +5,10 @@
 
 /* $Id$ */
 
+// As AliGenScan,  generation of particles on a 3-dim grid
+// but here double hits with a predefined distance are generated.
+// Author: andreas.morsch@cern.ch
+
 #include "AliGenScan.h"
 
 class AliGenDoubleScan : public AliGenScan
index 63d6fc01aad71913966291f0177ae19c36719b6d..8f126effaefd3dc67e457cfd6e1f24d1235af6de 100644 (file)
 
 /*
 $Log$
+Revision 1.1  2000/06/15 15:47:48  morsch
+Proposal for an event header class for generated events.
+
 */
 
+// Event header base class for generator. 
+// Stores as a minimum the date, run number, event number,
+// number of particles produced  
+// and the impact parameter.
+// 
+// Author: andreas.morsch@cern.ch
+
 #include "AliGenEventHeader.h"
 ClassImp(AliGenEventHeader)
 
@@ -32,3 +42,7 @@ AliGenEventHeader::AliGenEventHeader(const char * name)
     fNProduced=-1;      
     fImpactParameter=-1.;
 }
+
+
+
+
index 08db86478fc71c1bb894a033b553d06beb66d8a7..ad1dc220beadb017ee93570debdd28cd110f5e32 100644 (file)
@@ -9,6 +9,11 @@
 #include <TNamed.h>
 #include <TDatime.h>
 
+// Event header base class for generator. 
+// Stores as a minimum the date, run number, event number, number of particles produced  
+// and the impact parameter
+// Author: andreas.morsch@cern.ch
+
 class AliGenEventHeader : public TNamed
 {
  public:
index 02890c85bf269b3322c487973944c679837d5a0e..a6ef774c71fbbff37fd2e9f9d0ac06c5b63d920f 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.13  2000/11/30 07:12:50  alibrary
+Introducing new Rndm and QA classes
+
 Revision 1.12  2000/10/27 13:54:45  morsch
 Remove explicite reference to input file from constuctor.
 
@@ -41,6 +44,13 @@ Introduction of the Copyright and cvs Log
 
 */
 
+
+// Event generator that can read the old ALICE event format based on CW-ntuples
+// http://consult.cern.ch/alice/Internal_Notes/1995/32/abstract
+// .cwn file have to be converted to .root using h2root
+// Use SetFileName(file) to read from "file" 
+// Author: andreas.morsch@cern.ch
+
 #include <iostream.h>
 
 #include "AliGenExtFile.h"
@@ -50,6 +60,7 @@ Introduction of the Copyright and cvs Log
 #include <TDirectory.h>
 #include <TDatabasePDG.h>
 #include <TFile.h>
+#include "TTree.h"
 #include <stdlib.h>
 
  ClassImp(AliGenExtFile)
index 0114de5f1d2fd5b2635d2da64cdc38b56e892008..1ede39e32c7cd2c62b302be611bdd8382780991b 100644 (file)
@@ -6,11 +6,12 @@
 /* $Id$ */
 
 
+// Event generator that can read the old ALICE event format based on CW-ntuples
+// http://consult.cern.ch/alice/Internal_Notes/1995/32/abstract
+// Author: andreas.morsch@cern.ch
 
 #include "AliGenerator.h"
-#include "TTree.h"
-
-// Read background particles from a FLUKA boundary source file
+class TTree;
 
 class AliGenExtFile : public AliGenerator
 {
index b42f7a071cfb0e71bd33f24c583ba652a6618fe5..9aff879791b74e338b432d88cf269ae6f49e61c5 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.12  2000/11/30 07:12:50  alibrary
+Introducing new Rndm and QA classes
+
 Revision 1.11  2000/06/14 15:20:40  morsch
 Include clean-up (IH)
 
@@ -36,6 +39,14 @@ Introduction of the Copyright and cvs Log
 
 */
 
+
+
+// Read background particles from a FLUKA boundary source file
+// This is a very special generator that works for background studies for the muon-spectrometer.
+// The input files come from FLUKA simulations.
+// Files can be chained. 
+// Author: andreas.morsch@cern.ch
+
 #include "AliGenFLUKAsource.h"
 #include "AliMC.h"
 #include "AliRun.h"
@@ -81,8 +92,8 @@ AliGenFLUKAsource::AliGenFLUKAsource(Int_t npart)
     :AliGenerator(npart)
 {
     // Constructor
-    fName="FLUKA";
-    fTitle="FLUKA Boundary Source";
+    fName  = "FLUKA";
+    fTitle = "FLUKA Boundary Source";
     // Read in all particle types by default
     fIkine=6;
     // Set maximum admitted age of particles to 1.e-05 by default 
index 0d40f1b46b1255e0699f88da6ba10396341ed29f..01a600d5e01bce2d3fa65d434d29e67721efdacf 100644 (file)
@@ -6,15 +6,15 @@
 /* $Id$ */
 
 
+// Read background particles from a FLUKA boundary source file
+// This is a very special generator that works for background studies for the muon-spectrometer 
+// Ask: andreas.morsch@cern.ch
+
 #include "AliGenerator.h"
 class TChain;
-
 class TTree;
-
-
-// Read background particles from a FLUKA boundary source file
-
 class AliGenFLUKAsource : public AliGenerator
+
 {
 public:
   AliGenFLUKAsource();
index b18eb0378f8774d60096b7d7d1324a75500e7b01..744cef294617a58c60b7bc2019f01cc13301ac69 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.3  2000/11/30 07:12:50  alibrary
+Introducing new Rndm and QA classes
+
 Revision 1.2  2000/10/02 15:17:54  morsch
 Unused includes removed.
 
@@ -24,11 +27,11 @@ All coding rule violations except RS3 corrected (AM)
 
 */
 
-///////////////////////////////////////////////////////////////////
-//                                                               //
-//    Generate the final state of the interaction as the input   //
-//    to the MonteCarlo                                          //
-//
+
+
+// Simple particle gun. 
+// Momentum, phi and theta of the partice as well as the particle type can be set.
+// andreas.morsch@cern.ch
 //Begin_Html
 /*
 <img src="picts/AliGeneratorClass.gif">
index ecb43a8c4d5b9f31c5f3d51ec8c35ea62975b7aa..b4cf7c60560d5b4abc57d1477d53df83f8a6621d 100644 (file)
@@ -5,6 +5,11 @@
 
 /* $Id$ */
 
+// Simple particle gun. 
+// Momentum, phi and theta of the partice as well as the particle type can be set.
+// andreas.morsch@cern.ch
+
+
 #include "AliGenerator.h"
 
 class AliGenFixed : public AliGenerator
index a1da695b473bfddeb1aa173d195ff10a9d91e01d..681237301fd30e66acd2c84d11d8af222678c71d 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.2  2000/11/30 07:12:50  alibrary
+Introducing new Rndm and QA classes
+
 Revision 1.1  2000/06/15 08:48:43  morsch
 AliGenGSIlib with parametersations for GSI physics simulation added (YF, MI)
 
@@ -26,6 +29,12 @@ Introduction of the Copyright and cvs Log
 
 */
 
+// Implementation of AliGenLib 
+// using GSI specific parameterisations.
+// So far for Upsilon resonances only. 
+// Different paramterisations of y and pt can be chosen.
+// Responsible: Andres.Sandoval@cern.ch
+
 #include "TMath.h"
 #include "TString.h"
 
index 826738181a28c0cec100da9dc24e3d5762f797be..99a2e0b2972311ab9a1195db890f6173d2cb17d1 100644 (file)
@@ -5,6 +5,10 @@
 
 /* $Id$ */
 
+// Implementation of AliGenLib 
+// using GSI specific parameterisations.
+// Responsible: Andres.Sandoval@cern.ch
+
 #include "AliGenLib.h"
 class TRandom;
 
index e5d7bc270e5fcb70b943b82de32a82d01a334e2e..9d5cb519d9aed061b1e34a336eb580cf1a2c04e0 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.4  2000/11/30 07:12:50  alibrary
+Introducing new Rndm and QA classes
+
 Revision 1.3  2000/10/02 21:28:06  fca
 Removal of useless dependecies via forward declarations
 
@@ -26,11 +29,14 @@ Same class as previously in AliSimpleGen.cxx
 All coding rule violations except RS3 corrected (AM)
 
 */
-///////////////////////////////////////////////////////////////////
-//                                                               //
-//    Generate the final state of the interaction as the input   //
-//    to the MonteCarlo                                          //
-//
+
+// Parameterisation of pi and K, eta and pt distributions
+// used for the ALICE TDRs.
+// eta: according to HIJING (shadowing + quenching)
+// pT : according to CDF measurement at 1.8 TeV
+// Author: andreas.morsch@cern.ch
+
+
 //Begin_Html
 /*
 <img src="picts/AliGeneratorClass.gif">
index 5350809f3ce5824f2d66a8df52d29fa24e4a5504..db17176bf2d710f600894448f4fe57f2ed935f19 100644 (file)
@@ -5,6 +5,10 @@
 
 /* $Id$ */
 
+// Parameterisation of pi and K, eta and pt distributions
+// used for the ALICE TDRs.
+// Author: andreas.morsch@cern.ch
+
 #include "AliGenerator.h"
 class TF1;
 
index 4eef63b879c4a448d93c6d91c7bb688e27c9b19f..d4997ed181c2e892b1557e3bc84e034b5de3301f 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.9  2000/11/30 07:12:50  alibrary
+Introducing new Rndm and QA classes
+
 Revision 1.8  2000/10/02 15:20:40  morsch
 Direct reference to default input file removed.
 
@@ -32,6 +35,12 @@ Introduction of the Copyright and cvs Log
 
 */
 
+// Read background particles from a boundary source
+// Very specialized generator to simulate background from beam halo.
+// The input file is a text file specially prepared 
+// for this purpose.
+// Author: andreas.morsch@cern.ch
+
 #include "AliGenHalo.h"
 #include "AliRun.h"
 #include "AliPDG.h"
index 1811dfdb2b0bd8b1e920e66aafb18d8e82756151..e61d49e4e1918cc97d4ea66b79a7a9a20fb29ef4 100644 (file)
@@ -8,7 +8,10 @@
 
 #include "AliGenerator.h"
 #include <TString.h>
-// Read background particles from a FLUKA boundary source file
+
+// Read background particles from a boundary source
+// Very specialized generator to simulate background from beam halo.
+// Author: andreas.morsch@cern.ch
 
 class AliGenHalo : public AliGenerator
 {
index 990764c0a657524e05a849a153b38fa5ca590bc7..8d283d0712498f5df9666ee060716ca304748f61 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.18  2000/12/06 17:46:30  morsch
+Avoid random numbers 1 and 0.
+
 Revision 1.17  2000/12/04 11:22:03  morsch
 Init of sRandom as in 1.15
 
@@ -73,6 +76,14 @@ AliGenerator interface class to HIJING using THijing (test version)
 
 */
 
+
+
+// Generator using HIJING as an external generator
+// The main HIJING options are accessable for the user through this interface.
+// Uses the THijing implementation of TGenerator.
+//
+// andreas.morsch@cern.ch
+
 #include "AliGenHijing.h"
 #include "AliGenHijingEventHeader.h"
 #include "AliRun.h"
@@ -469,6 +480,8 @@ Bool_t AliGenHijing::SelectFlavor(Int_t pid)
 
 Bool_t AliGenHijing::Stable(TParticle*  particle)
 {
+// Return true for a stable particle
+//
     Int_t kf = TMath::Abs(particle->GetPdgCode());
     
     if ( (particle->GetFirstDaughter() < 0 ) || (kf == 1000*fFlavor+122))
index 1852377dd459a0489872b8404be0ce7f94013ec9..faf7eb643d700df30d15ba6654028e48ba6ca445 100644 (file)
@@ -5,6 +5,9 @@
 
 /* $Id$ */
 
+// Generator using HIJING as an external generator
+// The main HIJING options are accessable for the user through this interface.
+// andreas.morsch@cern.ch
 
 #include "AliGenerator.h"
 #include "GenTypeDefs.h"
index 1d491d2ac371013ad77ba6c6d36cf66537e7c86f..dc884aa3d072662826b77ebb2b83494600b6fee3 100644 (file)
@@ -15,6 +15,7 @@ class AliGenLib :
 {
  public:
 //
+    virtual ~AliGenLib(){}
     typedef Double_t (*GenFunc)  (Double_t *, Double_t *);
     typedef Int_t    (*GenFuncIp)(TRandom *);    
     virtual GenFunc   GetPt(Param_t param, const char *tname)   = 0;
index b15b80c644b11ee05670cadbc73d354cee1fa7c9..b5aceadf8c29e73e97db5d31909160bcaf4d943f 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.25  2000/11/30 07:12:50  alibrary
+Introducing new Rndm and QA classes
+
 Revision 1.24  2000/10/18 19:11:27  hristov
 Division by zero fixed
 
@@ -100,6 +103,9 @@ AliGenParam::AliGenParam()
     SetChildPhiRange();
     SetChildThetaRange();  
     SetDeltaPt();
+//
+// Set random number generator   
+    sRandom = fRandom;
 }
 
 AliGenParam::AliGenParam(Int_t npart, AliGenLib * Library,  Param_t param, char* tname):AliGenerator(npart)
@@ -123,6 +129,9 @@ AliGenParam::AliGenParam(Int_t npart, AliGenLib * Library,  Param_t param, char*
     SetChildPhiRange();
     SetChildThetaRange(); 
     SetDeltaPt(); 
+//
+// Set random number generator   
+    sRandom = fRandom;
 }
 
 //____________________________________________________________
@@ -131,11 +140,11 @@ AliGenParam::AliGenParam(Int_t npart, Param_t param, char* tname):AliGenerator(n
 {
 // Constructor using parameterisation id and number of particles
 //      
-    AliGenLib* Library = new AliGenMUONlib();
+    AliGenLib* pLibrary = new AliGenMUONlib();
  
-    fPtParaFunc = Library->GetPt(param, tname);
-    fYParaFunc  = Library->GetY (param, tname);
-    fIpParaFunc = Library->GetIp(param, tname);
+    fPtParaFunc = pLibrary->GetPt(param, tname);
+    fYParaFunc  = pLibrary->GetY (param, tname);
+    fIpParaFunc = pLibrary->GetIp(param, tname);
     
     fPtPara = 0;
     fYPara  = 0;
@@ -262,6 +271,9 @@ void AliGenParam::Init()
     case katomu:
        fChildSelect[0]=13;
        break;
+    case hadronicD:
+// Implement me !!
+       break;
     case nodecay:
        break;
     case all:
@@ -298,8 +310,8 @@ void AliGenParam::Generate()
   //
   if(!particles) particles=new TClonesArray("TParticle",1000);
 
-  static TDatabasePDG *DataBase = new TDatabasePDG();
-  if(!DataBase) DataBase = new TDatabasePDG();
+  static TDatabasePDG *pDataBase = new TDatabasePDG();
+  if(!pDataBase) pDataBase = new TDatabasePDG();
   //
   Float_t random[6];
  
@@ -320,7 +332,7 @@ void AliGenParam::Generate()
 // particle type
          Int_t iPart = fIpParaFunc(fRandom);
          fChildWeight=(fDecayer->GetPartialBranchingRatio(iPart))*fParentWeight;          
-         TParticlePDG *particle = DataBase->GetParticle(iPart);
+         TParticlePDG *particle = pDataBase->GetParticle(iPart);
          Float_t am = particle->Mass();
 
          Rndm(random,2);
index 73b7b4fde357f862a5d4e97cd7d298de4ffd3983..c06a94a232ac208c34903b0566392824b392970b 100644 (file)
@@ -58,7 +58,7 @@ class AliGenPythia : public AliGenerator
     Int_t       fNucA1;         // mass number nucleus side 1
     Int_t       fNucA2;         // mass number nucleus side 2
     
-    AliDecayer  *fDecayer;
+    AliDecayer  *fDecayer;      // pointer to the decayer instance
  private:
     // check if particle is selected as parent particle
     Bool_t ParentSelected(Int_t ip);
index 5aedaf919085ef9062c2bcc07289a122cc2cb43d..e4e92373b32306a615e95cbe242f0c099108ca6d 100644 (file)
@@ -22,6 +22,7 @@
 #pragma link C++ class  AliGenCocktail;
 #pragma link C++ class  AliGenCocktailEntry;
 #pragma link C++ class  AliGenExtFile;
+#pragma link C++ class  AliGenExtFileCH;
 #pragma link C++ class  AliGenScan;
 #pragma link C++ class  AliGenDoubleScan;
 #pragma link C++ class  AliPythia;
@@ -38,6 +39,7 @@
 #pragma link C++ class  AliGenHijing;
 #pragma link C++ class  AliDecayer;
 #pragma link C++ class  AliDecayerPythia-;
+#pragma link C++ class  AliGenMuonHits;
 #endif