Data files for HBT processor (P.Skowronski)
[u/mrichter/AliRoot.git] / EVGEN / AliGenCocktailAfterBurner.h
CommitLineData
0b359ada 1#ifndef AliGenCocktailAfterBurner_H
2#define AliGenCocktailAfterBurner_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/* $Id$ */
7
8// Container class for AliGenerator through recursion.
9// (Container is itself an AliGenerator)
10// Author: andreas.morsch@cern.ch
11//
12#include "AliGenCocktailAfterBurner.h"
13#include "AliGenCocktail.h"
14
15
16class AliGenCocktailEntry;
17class AliStack;
18
19class AliGenCocktailAfterBurner : public AliGenCocktail
20{
21 public:
22 AliGenCocktailAfterBurner();
23// AliGenCocktailAfterBurner(const AliGenCocktailAfterBurner &cocktail){}
24
25 virtual ~AliGenCocktailAfterBurner();
26 virtual void Init();
27 virtual void Generate();
28 virtual void SetTracks(Int_t stackno);
29 //
30 // Add a new generator to the list
31 virtual void AddAfterBurner
32 (AliGenerator *Generator, char* Name, Float_t RateExp );
33 AliGenCocktailAfterBurner & operator=(const AliGenCocktailAfterBurner & rhs);
34
35 AliStack* GetStack(Int_t n);
36 AliStack* GetActiveStack() {return fActiveStack;}
37
38 AliGenerator* GetCurrentGenerator();
39 virtual void SetActiveEventNumber(Int_t actev);
40 Int_t GetActiveEventNumber() {return fActiveEvent;}
984c69bd 41 virtual void SetNumberOfEvents(Int_t n) {fNumberOfEvents=n;}
42 virtual Int_t GetNumberOfEvents() {return fNumberOfEvents;}
43
0b359ada 44 static AliMCProcess IntToMCProcess(Int_t no);
45 protected:
984c69bd 46 Int_t fNAfterBurners; // Number of afterburners
47 TList *fAfterBurnerEntries;// List of afterburners
0b359ada 48 Bool_t fGenerationDone;
984c69bd 49 TObjArray *fInternalStacks; //! List of internal stacks
50 Int_t fCurrentEvent; // Number of current event/stack
0b359ada 51
984c69bd 52 Int_t fNumberOfEvents; // Number of events to process
53
54 AliStack* fActiveStack; //! pointer to the current stack
55 Int_t fActiveEvent; //HBT Processor needs more then one event to do correlations
56 //Due to complications in fortran, it first calls C routine
57 //that sets the active event to be read. All alihbtp_gettrack
58 //are addressed to this event
0b359ada 59
984c69bd 60 AliGenerator *fCurrentGenerator; // Current event generator
0b359ada 61 ClassDef(AliGenCocktailAfterBurner,1) // Particle cocktail generator a la SHAKER
62};
63
64inline AliGenerator*
65 AliGenCocktailAfterBurner::GetCurrentGenerator()
66{
67 return fCurrentGenerator;
68}
69
70
71#endif
72
73
74
75
76