StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
StRandomSelector Class Reference

Public Member Functions

 StRandomSelector (Double_t newProb=1.0, bool newAT=false, UInt_t seed=0)
 
 StRandomSelector (TCollection *newContainer, Double_t newProb=1.0, bool newAT=false, UInt_t seed=0)
 
 StRandomSelector (const StRandomSelector &toCopy)
 
void Rewind ()
 
void Skip (Int_t numberToSkip=1)
 
TObject * GetNext ()
 
TObject * GetNextRandom ()
 
void SetSeed (UInt_t seed=0)
 
const UInt_t GetSeed ()
 
void SetProbability (Double_t newProb)
 
const Double_t GetProbability ()
 
void SetAbsoluteThreshold (bool newAT)
 
const bool GetAbsoluteThreshold ()
 
const Int_t GetTotalNumber ()
 
const Int_t GetNumberReturned ()
 
const Int_t GetNumberSkipped ()
 
void SetContainer (TCollection *newCont)
 
const TCollection * GetContainer ()
 

Protected Member Functions

void initialize (const TCollection *newContainer, Double_t newProb, bool newAt, UInt_t newSeed)
 

Protected Attributes

TRandom3 mRand
 
Int_t mTotalElemReturned
 
Int_t mTotalElemSkipped
 
Double_t mProbability
 
bool mAbsoluteThreshold
 
const TCollection * mContainer
 
TIterator * mIterator
 

Detailed Description

Definition at line 54 of file StRandomSelector.h.


The documentation for this class was generated from the following files: