]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Coding rule violation corrected.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 7 Feb 2012 07:36:03 +0000 (07:36 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 7 Feb 2012 07:36:03 +0000 (07:36 +0000)
EVGEN/AliGenCocktail.cxx
EVGEN/AliGenCocktail.h

index 35c057c1c688620f562a159ae914b3df6f48e550..8fb50fa2e0adacb947ad9fa1f97da7f4a00ba245 100644 (file)
@@ -41,7 +41,7 @@ AliGenCocktail::AliGenCocktail()
     :AliGenerator(), 
      fNGenerators(0),
      fTotalRate(0.),
-     fRandom(kFALSE),
+     fSRandom(kFALSE),
      fUsePerEventRate(kFALSE),
      fProb(0),
      fEntries(0),
@@ -107,7 +107,7 @@ AddGenerator(AliGenerator *Generator, const char* Name, Float_t RateExp, TFormul
      fNGenerators++;
      flnk1 = 0;
      flnk2 = 0;
-     fRandom  = kFALSE;
+     fSRandom  = kFALSE;
      fHeader  = 0;
 }
 
@@ -125,7 +125,7 @@ AddGenerator(AliGenerator *Generator, const char* Name, Float_t RateExp, TFormul
 
     next.Reset();
 
-    if (fRandom) {
+    if (fSRandom) {
        fProb.Set(fNGenerators);
        next.Reset();
        Float_t sum = 0.;
@@ -181,7 +181,7 @@ AddGenerator(AliGenerator *Generator, const char* Name, Float_t RateExp, TFormul
     eventVertex.Set(3);
     for (Int_t j=0; j < 3; j++) eventVertex[j] = fVertex[j];
 
-    if (!fRandom) {
+    if (!fSRandom) {
        //
        // Loop over generators and generate events
        Int_t igen   = 0;
@@ -238,7 +238,7 @@ AddGenerator(AliGenerator *Generator, const char* Name, Float_t RateExp, TFormul
          entry->SetLast(partArray->GetEntriesFast());
          preventry = entry;
        }
-    } else if (fRandom) {
+    } else if (fSRandom) {
        //
        // Select a generator randomly
        //
index 09880b59826e2271af59d3db3f1343e673352a5f..98d506564a87db642dc1586e97aed49e02649d5a 100644 (file)
@@ -29,7 +29,7 @@ class AliGenCocktail : public AliGenerator
     virtual void FinishRun();
     virtual void Generate();
     virtual void SetVertexSmear(VertexSmear_t smear);
-    virtual void SetRandomise(Bool_t flag) {fRandom = flag;}
+    virtual void SetRandomise(Bool_t flag) {fSRandom = flag;}
     virtual void UsePerEventRates() {fUsePerEventRate  = kTRUE;}
            
     //
@@ -47,9 +47,9 @@ class AliGenCocktail : public AliGenerator
  protected:
     Int_t fNGenerators;                 // Number of generators booked
     Float_t fTotalRate;                 // Total rate of the generators booked
-    Bool_t fRandom;                     // Flag to select random generator from list
+    Bool_t fSRandom;                    // Flag to select random generator from list
     Bool_t fUsePerEventRate;            // Flag to generate the events according to the rate per event    
-    TArrayF  fProb;                     // Probability of an event (if fRandom == kTRUE)
+    TArrayF  fProb;                     // Probability of an event (if fSRandom == kTRUE)
     TList  *fEntries;                   // List of Generators
     TObjLink *flnk1;                    // ! Iterator for first generator
     TObjLink *flnk2;                    // ! Iterator for second generator