6#include "KVNameValueList.h"
8#include "KVParticleCondition.h"
335 :
KVBase(
"KVVarGlob",
"KVVarGlob"),
nameList(
"IndexList",
"Correspondance variable name<->index")
340 :
KVBase(nom, nom),
nameList(
"IndexList",
"Correspondance variable name<->index")
428 fill2(n1_in_frame, n2_in_frame);
481 std::vector<Double_t> tmp;
556 if (Par ==
"Zmin" || Par ==
"Zmax" || Par ==
"Vmin" || Par ==
"Vmax")
557 Fatal(
"SetParameter",
"Particle selection for global variables must be defined using SetSelection(const KVParticleCondition&).\nUpdate the use of variable \"%s\" in your analysis.",
633 operator double()
const
#define ClassDef(name, id)
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t sel
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t result
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void value
Base class for KaliVeda framework.
virtual void Copy(TObject &) const
Make a copy of this object.
Factory class for generating skeleton files for new classes.
Abstract base class container for multi-particle events.
Handles lists of named parameters with different types, a list of KVNamedParameter objects.
KVNamedParameter * GetParameter(Int_t idx) const
return the parameter object with index idx
Int_t GetIntValue(const Char_t *name) const
Double_t GetDoubleValue(const Char_t *name) const
void SetValue(const Char_t *name, value_type value)
void RemoveParameter(const Char_t *name)
virtual void Clear(Option_t *opt="")
const Char_t * GetNameAt(Int_t idx) const
Int_t GetNpar() const
return the number of stored parameters
value_type GetValue(const Char_t *name) const
Bool_t HasParameter(const Char_t *name) const
TString GetTStringValue(const Char_t *name) const
void Copy(TObject &nvl) const
Description of properties and kinematics of atomic nuclei.
KVParticle const * GetFrame(const Char_t *frame, Bool_t warn_and_return_null_if_unknown=kTRUE) const
Extension of ROOT TString class which allows backwards compatibility with ROOT v3....
void Copy(TObject &obj) const
Bool_t Test(const ParticleType *nuc) const
Base class for all global variable implementations.
void SetOption(const Char_t *option, const Char_t *value)
KVVarGlob(const Char_t *nom)
Double_t GetValue(const Char_t *name) const
static void AddInitMethod(KVClassFactory &cf, KVString &body)
void Print(Option_t *="") const
Double_t operator()(void) const
virtual void Calculate()=0
Bool_t fDefineGroupFromSelection
Double_t fNormalization
optional normalization parameter
virtual Int_t GetNumberOfValues() const
Double_t GetValue(void) const
KVString fFrame
(optional) name of reference frame used for kinematics
void Copy(TObject &obj) const
Bool_t HasValue(const Char_t *name) const
KVNameValueList fOptions
list of options
Double_t AsDouble() const
void SetNameIndex(const Char_t *name, Int_t index)
void SetNewFrameDefinition(const FrameSetter &f)
KVNameValueList & GetParameters()
const KVNameValueList & GetParameters() const
Double_t GetValue(Int_t i) const
void SetMaxNumBranches(Int_t n)
Int_t GetNameIndex(const Char_t *name) const
void SetParameter(const Char_t *par, Double_t value)
static void MakeClass(const Char_t *classname, const Char_t *classdesc, int type=kOneBody)
EventSelector fEventSelector
used to select events in analysis based on value of variable
FrameSetter fFrameSetter
used to define a new kinematical frame for event based on variable
virtual void SetNormalization(Double_t norm)
void UnsetOption(const Char_t *opt)
virtual void fill2(const KVNucleus *, const KVNucleus *)
bool IsDefiningNewFrame() const
void Fill(const KVNucleus *c)
TString GetOptionString(const Char_t *opt) const
std::function< bool(const KVVarGlob *)> EventSelector
static void AddFillMethodBody(KVClassFactory &cf, KVString &body, int type)
static void ImplementInitMethod(KVClassFactory &cf, KVString &body, int type)
virtual Double_t getvalue_int(Int_t) const =0
Double_t operator()(Int_t i) const
Bool_t IsOptionGiven(const Char_t *opt)
std::function< void(KVEvent *, const KVVarGlob *)> FrameSetter
virtual void FillN(const KVEvent *)
Bool_t fIsInitialized
flag set after initialisation
static void AddFillMethod(KVClassFactory &cf, int type)
void AddSelection(const KVParticleCondition &sel)
const KVNameValueList & GetValueNameList() const
virtual void fill(const KVNucleus *)
Double_t operator()(const Char_t *name) const
Double_t GetParameter(const Char_t *par) const
void SetEventSelection(const EventSelector &f)
static void FillMethodBody(KVString &body, int type)
TString GetNameAtListPosition(int pos) const
virtual std::vector< Double_t > GetValueVector(void) const
KVNameValueList nameList
correspondence between variable name and index
Int_t GetNumberOfBranches() const
bool IsSelectingEvents() const
virtual Double_t getvalue_void() const
void Fill2(const KVNucleus *n1, const KVNucleus *n2)
KVParticleCondition fSelection
(optional) condition used to select particles
virtual Bool_t IsGlobalVariable() const
KVNameValueList fParameters
list of parameters
virtual TString GetValueName(Int_t i) const
virtual Char_t GetValueType(Int_t) const
Int_t fMaxNumBranches
max number of branches to create for multi-valued variable
void SetFrame(const Char_t *ref)
int GetIndexAtListPosition(int pos) const
void SetSelection(const KVParticleCondition &sel)
void DefineNewFrame(KVEvent *e) const
static void AddExtraInitMethodComment(KVClassFactory &cf, KVString &body)
Double_t GetNormalization() const
bool TestEventSelection() const
virtual Double_t getvalue_char(const Char_t *name) const
Int_t fType
type of variable global; = kOneBody, kTwoBody or kNBody
const TString & GetFrame() const
void SetDefineGroup(const KVString &groupname="")
Bool_t IsParameterSet(const Char_t *par)
Char_t fValueType
type (='I' integer or 'D' double) of global variable value
void UnsetParameter(const Char_t *par)
const char * GetName() const override
void AbstractMethod(const char *method) const
virtual void Fatal(const char *method, const char *msgfmt,...) const
void(off) SmallVectorTemplateBase< T