23 #define KVEVENT_PART_INDEX_OOB "Particle index %d out of bounds [1,%d]"
182 #ifdef __WITHOUT_TCA_CONSTRUCTED_AT
230 return reinterpret_cast<KVNucleus*
>(*fIter);
298 template<
typename Po
interType>
301 return dynamic_cast<PointerType*
>(
current());
303 template<
typename ReferenceType>
306 return dynamic_cast<ReferenceType&
>(*
current());
362 if (t != Type::Null) {
396 KVEvent(
Int_t mult = 50,
const char* classname =
"KVNucleus");
399 #if ROOT_VERSION_CODE >= ROOT_VERSION(3,4,0)
459 virtual void GetMasses(std::vector<Double_t>&);
466 #define KVEVENT_MAKE_EVENT_BRANCH_NO_VOID_PTR 1
478 tree->Branch(branchname, classname, &
event, bufsize, 0)->SetAutoDelete(
kFALSE);
493 return (
GetParameters()->HasStringParameter(
"defaultFrame") ?
#define ClassDef(name, id)
Base class for KaliVeda framework.
void SetIsIterating(Bool_t on=kTRUE)
void Reset(Type t=Type::Null, TString grp="")
TIter fIter
internal iterator used by GetNextParticle()
Bool_t operator!=(const Iterator &it) const
Iterator & operator=(const Iterator &rhs)
Bool_t IsIterating() const
Iterator(const KVEvent &e, Type t=Type::All, const TString &grp="")
KVNucleus & operator*() const
std::ptrdiff_t difference_type
Iterator(const Iterator &i)
std::forward_iterator_tag iterator_category
Bool_t AcceptableIteration()
Iterator(const KVEvent *e, Type t=Type::All, const TString &grp="")
const Iterator & operator++()
Bool_t operator==(const Iterator &it) const
KVNucleus * current() const
ReferenceType & get_reference() const
PointerType * get_pointer() const
Base class container for multi-particle events.
KVNameValueList * GetParameters() const
Double_t GetGSChannelQValue() const
virtual void FillIntegerList(KVIntegerList *, Option_t *opt)
void ChangeDefaultFrame(const Char_t *, const Char_t *defname="")
void SetFrameName(const KVString &)
virtual void Copy(TObject &obj) const
Copy this to obj.
KVNameValueList fParameters
general-purpose list of parameters
virtual void Clear(Option_t *opt="")
Iterator GetNextParticleIterator(Option_t *opt) const
Int_t GetMultiplicity(Int_t Z, Int_t A=0, Option_t *opt="")
KVNucleus * GetParticle(Int_t npart) const
Iterator fIter
internal iterator used by GetNextParticle()
KVEvent(Int_t mult=50, const char *classname="KVNucleus")
const Char_t * GetFrameName() const
Int_t GetMinimumOKMultiplicity() const
static void MakeEventBranch(TTree *tree, const TString &branchname, const TString &classname, T &event, Int_t bufsize=10000000)
Double_t GetChannelQValue() const
void SetMinimumOKMultiplicity(Int_t)
void DefineGroup(const Char_t *groupname, const Char_t *from="")
TClonesArray * fParticles
array of particles in event
KVNucleus * AddParticle()
KVNucleus * GetParticleWithName(const Char_t *name) const
virtual void MergeEventFragments(TCollection *, Option_t *opt="")
void GetMultiplicities(Int_t mult[], const TString &species, Option_t *opt="")
virtual Int_t GetMult(Option_t *opt="") const
virtual void Print(Option_t *t="") const
virtual void ls(Option_t *t="") const
KVNucleus * GetNextParticle(Option_t *opt="") const
void ChangeFrame(const KVFrameTransform &, const KVString &="")
void SetParameter(const Char_t *name, ValType value) const
void ResetGetNextParticle() const
Double_t GetSum(const Char_t *KVNucleus_method, Option_t *opt="")
const Char_t * GetPartitionName()
virtual void GetMasses(std::vector< Double_t > &)
Fill vector with mass of each nucleus of event (in MeV) [note: this is the mass including any excitat...
void FillHisto(TH1 *h, const Char_t *KVNucleus_method, Option_t *opt="")
virtual void GetGSMasses(std::vector< Double_t > &)
Fill vector with ground state mass of each nucleus of event (in MeV).
void SetFrame(const Char_t *frame, const KVFrameTransform &ft)
static KVEvent * Factory(const char *)
Create and return pointer to new event of class given by plugin.
Handle a list of positive integers (partition)
Handles lists of named parameters with different types, a list of KVNamedParameter objects.
void SetValue(const Char_t *name, value_type value)
Description of properties and kinematics of atomic nuclei.
Handles particle selection criteria for data analysis classes ,.
Bool_t BelongsToGroup(const Char_t *groupname) const
Extension of ROOT TString class which allows backwards compatibility with ROOT v3....
void BypassStreamer(Bool_t bypass=kTRUE)
auto All(const RVec< T > &v) -> decltype(v[0]==false)
EventIterator(KVEvent &event, KVEvent::Iterator::Type t=KVEvent::Iterator::Type::All, const TString &grp="")
KVEvent::Iterator begin() const
KVEvent::Iterator end() const
GroupEventIterator(KVEvent &event, const TString &grp)
OKEventIterator(KVEvent &event)