#define ClassDef(name, id)
Base class for KaliVeda framework.
Abstract base class container for multi-particle events.
Monte-Carlo sampling of events with statistical weights .
virtual ~MCSampler()
Destructor.
Bool_t fModifyMasses
the partition index
KVEvent * fPartition
branch containing events
void PlotProbabilities(double emin=0., double emax=100., double estep=1., Option_t *opt="")
Double_t fLegendProbaMin
weight of channel picked by call to PickRandomChannel()
void PlotMultiplicities(double emin=0., double emax=100., double estep=1., Option_t *opt="")
MCSampler()
Default constructor.
void SetBranch(TTree *theTree, const TString &name, void *variable, const TString &vartype)
automatically generated legend for PlotProbabilities
Double_t ESTAR
variables for TTree branches
TLegend * fTheLegend
minimum probability for which channels are included in automatically generated TLegend when PlotProba...
void initialiseWeightList()
if nuclear masses are modified
StatWeight * GetWeight(Int_t i) const
void SetUpTreeBranches(KVEvent *&event, TTree *theTree, const TString &bname)
Double_t EDISP
the excitation energy (Exx)
Long64_t IPART
the available kinetic energy
void SetEventList(TTree *t, const TString &branchname)
Define the TTree or TChain containing all possible events (partitions).
void SetLegendProbaMin(Double_t p)
TClonesArray * fWeightList
statistical weight class
void GenerateEvents(TTree *, KVEvent *event, Double_t, Long64_t npartitions, Long64_t nev_part=10)
Bool_t SetExcitationEnergy(Double_t Exx)
Double_t fSumWeights
list of weights for all events
Long64_t PickRandomChannel()
void CalculateWeights(Double_t excitation_energy)
KVEvent * GetPartition(Long64_t i)
Double_t GetLegendProbaMin() const
void SetModifyMasses(Bool_t yes=kTRUE)
void init()
default initialisations
void SetStatWeight(const TString &)
StatWeight * GetRandomChannelWeight() const
void GenerateEvent(TTree *theTree, KVEvent *event)
TBranch * fBranch
number of partitions in TTree/TChain
TClass * fWeight
event read from fPartitionList tree
TClonesArray * GetWeights() const
Double_t GetSumWeights() const
Abstract base class for calculating statistical weights for events .
virtual Int_t GetEntry(Long64_t entry=0, Int_t getall=0)
virtual void Draw(Option_t *option="")