8 #include "TClonesArray.h"
11 #include "MicroStat/StatWeight.h"
26 Double_t fLegendProbaMin;
29 void SetBranch(TTree* theTree,
const TString& name,
void* variable,
const TString& vartype);
36 TClonesArray* fWeightList;
45 void initialiseWeightList();
49 MCSampler(
const Char_t* name,
const Char_t* title =
"");
94 void PlotMultiplicities(
double emin = 0.,
double emax = 100.,
double estep = 1., Option_t* opt =
"");
95 void PlotProbabilities(
double emin = 0.,
double emax = 100.,
double estep = 1., Option_t* opt =
"");
107 return fLegendProbaMin;
116 if (fTheLegend) fTheLegend->Draw();
Base class for KaliVeda framework.
Abstract base class container for multi-particle events.
Monte-Carlo sampling of events with statistical weights .
virtual ~MCSampler()
Destructor.
void PlotProbabilities(double emin=0., double emax=100., double estep=1., Option_t *opt="")
void PlotMultiplicities(double emin=0., double emax=100., double estep=1., Option_t *opt="")
MCSampler()
Default constructor.
StatWeight * GetWeight(Int_t i) const
void SetUpTreeBranches(KVEvent *&event, TTree *theTree, const TString &bname)
void SetEventList(TTree *t, const TString &branchname)
Define the TTree or TChain containing all possible events (partitions).
void SetLegendProbaMin(Double_t p)
void GenerateEvents(TTree *, KVEvent *event, Double_t, Long64_t npartitions, Long64_t nev_part=10)
Bool_t SetExcitationEnergy(Double_t Exx)
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 SetStatWeight(const TString &)
StatWeight * GetRandomChannelWeight() const
void GenerateEvent(TTree *theTree, KVEvent *event)
TClonesArray * GetWeights() const
Double_t GetSumWeights() const
Abstract base class for calculating statistical weights for events .