Add const to SolenoidField() method for correct overwriting from the parent class
[u/mrichter/AliRoot.git] / EVGEN / AliGenCocktail.h
CommitLineData
fe4da5cc 1#ifndef ALIGENCOCKTAIL_H
2#define ALIGENCOCKTAIL_H
3da30618 3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/* $Id$ */
7
675e9664 8// Container class for AliGenerator through recursion.
9// (Container is itself an AliGenerator)
10// Author: andreas.morsch@cern.ch
11//
12
fe4da5cc 13#include "AliGenerator.h"
886b6f73 14
374924b5 15class AliGenCocktailEntry;
fe4da5cc 16
17
18class AliGenCocktail : public AliGenerator
19{
fe4da5cc 20 public:
21 AliGenCocktail();
374924b5 22 AliGenCocktail(const AliGenCocktail &cocktail);
23
fe4da5cc 24 virtual ~AliGenCocktail();
25 virtual void Init();
26 virtual void Generate();
27 //
28 // Add a new generator to the list
29 virtual void AddGenerator
a436e7fc 30 (AliGenerator *Generator, char* Name, Float_t RateExp );
fe4da5cc 31 virtual TList* Entries() {return fEntries;}
32 // Iterators
33 AliGenCocktailEntry* FirstGenerator();
34 AliGenCocktailEntry* NextGenerator();
374924b5 35 void FirstGeneratorPair(AliGenCocktailEntry*&e1, AliGenCocktailEntry*&e2);
36 void NextGeneratorPair (AliGenCocktailEntry*&e1, AliGenCocktailEntry*&e2);
37 AliGenCocktail & operator=(const AliGenCocktail & rhs);
38
39 protected:
40 Int_t fNGenerators; // Number of generators booked
41 TList *fEntries; // List of Generators
a436e7fc 42 TObjLink *flnk1; // ! Iterator for first generator
43 TObjLink *flnk2; // ! Iterator for second generator
fe4da5cc 44//
374924b5 45 ClassDef(AliGenCocktail,1) // Particle cocktail generator a la SHAKER
fe4da5cc 46};
47
48#endif
49
50
51
52
53