]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RALICE/AliCollider.h
Access to the number of associated clusters (M.Ivanov)
[u/mrichter/AliRoot.git] / RALICE / AliCollider.h
index b4fc5d72d122fbe0a30e0f7bab9c113bdfe7b8d2..a0f8856e0daed61fdf30f54998bb518d88c6cfbd 100644 (file)
@@ -1,14 +1,15 @@
 #ifndef ALICOLLIDER_H
 #define ALICOLLIDER_H
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice                               */
 
-// $Id: AliCollider.h,v 1.1 2002/11/27 21:25:52 nick Exp $
+// $Id: AliCollider.h,v 1.7 2004/01/12 08:23:22 nick Exp $
 
-#include "Riostream.h"
 #include "TPythia6.h"
-#include "TMCParticle.h"
 #include "TString.h"
 #include "TFile.h"
-#include "TTree.h" 
+#include "TTree.h"
+#include "TArrayI.h" 
 
 #include "AliEvent.h"
 #include "AliRandom.h"
@@ -17,7 +18,7 @@ class AliCollider : public TPythia6
 {
  public:
   AliCollider();                                        // Default constructor
-  ~AliCollider();                                       // Default destructor
+  virtual ~AliCollider();                               // Default destructor
   void SetOutputFile(TString name);                     // Initialise the ROOT output data file
   void SetVertexMode(Int_t mode);                       // Select mode for (sec.) vertex structure creation
   Int_t GetVertexMode();                                // Provide vertex structure creation mode
@@ -29,9 +30,14 @@ class AliCollider : public TPythia6
   Int_t GetPrintFreq();                                 // Provide the print frequency
   void Init(char* frame,char* beam,char* target,Float_t win); // Standard Pythia initialisation
   void Init(char* frame,Int_t zp,Int_t ap,Int_t zt,Int_t at,Float_t win); // Nucl-Nucl initialisation
-  void MakeEvent(Int_t npt,Int_t mlist=-1,Int_t medit=1);// Generate a single event with npt participant nucleons
+  void SetStable(Int_t id,Int_t mode=1);                // Declare a certain particle as stable or not
+  void SelectEvent(Int_t id);                           // Select only events containing specified particles
+  Int_t GetSelectionFlag();                             // Return the selection flag for this event
+  void MakeEvent(Int_t npt=0,Int_t mlist=-1,Int_t medit=1);// Generate a single event with npt participant nucleons
   void EndRun();                                        // Properly close all buffers and output file
-  AliEvent* GetEvent();                                 // Provide pointer to the generated event structure
+  AliEvent* GetEvent(Int_t select=0);                   // Provide pointer to the generated event structure
+  void SetSpectatorPmin(Float_t pmin);                  // Set minimal momentum for spectator track to be stored
+  Float_t GetSpectatorPmin();                           // Provide the minimal momentum for spectator tracks
 
  protected:
   Int_t fVertexmode;    // The vertex structure creation mode
@@ -52,12 +58,18 @@ class AliCollider : public TPythia6
   Float_t fFracnn;      // Fraction of n+n collisions
   AliRandom fRan;       // Random number generator
   AliEvent* fEvent;     // The produced event structure
+  Float_t fSpecpmin;    // The minimal momentum for spectator tracks to be stored
 
   TFile* fOutFile;      // The user defined output data file 
   TTree* fOutTree;      // The standard ROOT output tree
 
+  TArrayI* fSelections; // The particle KC codes for event selection
+  Int_t fSelect;        // Flag to indicate whether the total event is selected (1) or not (0)
+
+  Int_t IsSelected();   // Check whether (sub)event passed the selection criteria
   void GetFractions(Float_t zp,Float_t ap,Float_t zt,Float_t at); // Determine various N-N collision fractions
+  TString GetPyname(Int_t kf); // Provide the correctly truncated Pythia particle name for PDG code kf  
 
- ClassDef(AliCollider,2) // Pythia based universal physics event generator
+ ClassDef(AliCollider,7) // Pythia based universal physics event generator
 };
 #endif