LCOV - code coverage report
Current view: top level - EVGEN - AliGenCocktailEntry.h (source / functions) Hit Total Coverage
Test: coverage.info Lines: 7 14 50.0 %
Date: 2016-06-14 17:26:59 Functions: 8 20 40.0 %

          Line data    Source code
       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             : 
       8             : // Entry for AleGenCocktail container class. 
       9             : // See also comments there
      10             : // Author: andreas.morsch@cern.ch
      11             : 
      12             : #include <TNamed.h>
      13             : 
      14             : class AliGenerator;
      15             : class TFormula;
      16             : 
      17             : class AliGenCocktailEntry : public TNamed
      18             : {
      19             :  public:
      20             :     AliGenCocktailEntry();
      21             :     AliGenCocktailEntry(const AliGenCocktailEntry &entry);
      22             :     AliGenCocktailEntry
      23             :       (AliGenerator* pGenerator, const char* Name, Float_t RateExp);
      24           0 :     ~AliGenCocktailEntry(){;}
      25         392 :     AliGenerator* Generator() {return fGenerator;}
      26           0 :     void SetGenerator(AliGenerator* generator){fGenerator=generator;}
      27           0 :     void SetFormula(TFormula* formula) {fFormula = formula;}
      28          56 :     void SetNTimes(Int_t ntimes) {fNTimes = ntimes;}
      29         224 :     void SetFirst(Int_t first) {fFirst=first;}
      30         224 :     void SetLast (Int_t last ) {fLast =last;}
      31           0 :     Int_t GetFirst() const {return fFirst;}
      32           0 :     Int_t GetLast () const {return fLast;}
      33           0 :     Float_t Rate()   const {return fRate;}
      34         224 :     Int_t NTimes()   const {return fNTimes;}
      35           0 :     Int_t   Bin()    const {return Int_t(fRate);}
      36             :     void  PrintInfo() const;
      37         224 :     TFormula* Formula() const {return fFormula;}
      38             :     AliGenCocktailEntry & operator =(const AliGenCocktailEntry & rhs);
      39             :  protected:
      40             :     AliGenerator *fGenerator;   // Pointer to generator
      41             :     Int_t fNGenerated;          // Number of primaries generated
      42             :     Int_t fFirst;               // First index in list of primaries
      43             :     Int_t fLast;                // Last index in list of primaries
      44             :     Float_t fRate;              // Rate per event
      45             :     Int_t   fNTimes;            // Generate is called N times
      46             :     Float_t fKineBias;          // Bias due to kinematic selecion
      47             :     Float_t fBias;              // Bias
      48             :     TFormula* fFormula;         // Formula to calculate number of signals per event    
      49             :     void Copy(TObject&) const;
      50             :  private:
      51         906 :     ClassDef(AliGenCocktailEntry, 3) // Generator entry of AliGenCocktail
      52             : };
      53             : #endif
      54             : 
      55             : 
      56             : 
      57             : 
      58             : 

Generated by: LCOV version 1.11