Fix compilation problems on Fedora (Laurent)
[u/mrichter/AliRoot.git] / EVGEN / AliGenCocktailEntry.h
CommitLineData
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
14class AliGenerator;
7c54213e 15class TFormula;
8f59d7fe 16
86d0a743 17class AliGenCocktailEntry : public TNamed
8f59d7fe 18{
19 public:
20 AliGenCocktailEntry();
21 AliGenCocktailEntry(const AliGenCocktailEntry &entry);
22 AliGenCocktailEntry
7c54213e 23 (AliGenerator* pGenerator, const char* Name, Float_t RateExp);
8f59d7fe 24 ~AliGenCocktailEntry(){;}
25 AliGenerator* Generator() {return fGenerator;}
26 void SetGenerator(AliGenerator* generator){fGenerator=generator;}
7c54213e 27 void SetFormula(TFormula* formula) {fFormula = formula;}
28 void SetFirst(Int_t first) {fFirst=first;}
29 void SetLast (Int_t last ) {fLast =last;}
0af12c00 30 Int_t GetFirst() const {return fFirst;}
31 Int_t GetLast () const {return fLast;}
32 Float_t Rate() const {return fRate;}
db051b0c 33 Int_t Bin() const {return Int_t(fRate);}
4a33c50d 34 void PrintInfo() const;
7c54213e 35 TFormula* Formula() const {return fFormula;}
8f59d7fe 36 AliGenCocktailEntry & operator =(const AliGenCocktailEntry & rhs);
37 protected:
38 AliGenerator *fGenerator; // Pointer to generator
39 Int_t fNGenerated; // Number of primaries generated
40 Int_t fFirst; // First index in list of primaries
41 Int_t fLast; // Last index in list of primaries
42 Float_t fRate; // Rate per event
43 Float_t fKineBias; // Bias due to kinematic selecion
44 Float_t fBias; // Bias
7c54213e 45 TFormula* fFormula; // Formula to calculate number of signals per event
dc1d768c 46 void Copy(TObject&) const;
8f59d7fe 47 private:
ead32f86 48 ClassDef(AliGenCocktailEntry, 2) // Generator entry of AliGenCocktail
8f59d7fe 49};
50#endif
51
52
53
54
55