]>
Commit | Line | Data |
---|---|---|
8f59d7fe | 1 | #ifndef ALIGENCOCKTAILENTRY_H |
2 | #define ALIGENCOCKTAILENTRY_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 | ||
675e9664 | 8 | // Entry for AleGenCocktail container class. |
9 | // See also comments there | |
10 | // Author: andreas.morsch@cern.ch | |
8f59d7fe | 11 | |
86d0a743 | 12 | #include <TNamed.h> |
8f59d7fe | 13 | |
14 | class AliGenerator; | |
15 | ||
16 | ||
86d0a743 | 17 | class AliGenCocktailEntry : public TNamed |
8f59d7fe | 18 | { |
19 | public: | |
20 | AliGenCocktailEntry(); | |
21 | AliGenCocktailEntry(const AliGenCocktailEntry &entry); | |
22 | AliGenCocktailEntry | |
9c5d29de | 23 | (AliGenerator* pGenerator, const char* Name, Float_t RateExp); |
8f59d7fe | 24 | ~AliGenCocktailEntry(){;} |
25 | AliGenerator* Generator() {return fGenerator;} | |
26 | void SetGenerator(AliGenerator* generator){fGenerator=generator;} | |
27 | void SetFirst(Int_t first){fFirst=first;} | |
28 | void SetLast (Int_t last ){fLast =last;} | |
0af12c00 | 29 | Int_t GetFirst() const {return fFirst;} |
30 | Int_t GetLast () const {return fLast;} | |
31 | Float_t Rate() const {return fRate;} | |
8f59d7fe | 32 | void PrintInfo(); |
33 | AliGenCocktailEntry & operator =(const AliGenCocktailEntry & rhs); | |
34 | protected: | |
35 | AliGenerator *fGenerator; // Pointer to generator | |
36 | Int_t fNGenerated; // Number of primaries generated | |
37 | Int_t fFirst; // First index in list of primaries | |
38 | Int_t fLast; // Last index in list of primaries | |
39 | Float_t fRate; // Rate per event | |
40 | Float_t fKineBias; // Bias due to kinematic selecion | |
41 | Float_t fBias; // Bias | |
dc1d768c | 42 | void Copy(TObject&) const; |
8f59d7fe | 43 | private: |
44 | ClassDef(AliGenCocktailEntry,1) // Generator entry of AliGenCocktail | |
45 | }; | |
46 | #endif | |
47 | ||
48 | ||
49 | ||
50 | ||
51 |