12 SetNameIndex(
"Mean", 0);
13 SetNameIndex(
"RMS", 1);
14 SetNameIndex(
"SumVar", 2);
15 SetNameIndex(
"SumVarSquared", 3);
16 SetNameIndex(
"SumOfWeights", 4);
17 SetNameIndex(
"Min", 5);
18 SetNameIndex(
"Max", 6);
213 body +=
"Use the FillVar(v,w) method to increment the quantity of the global variable.\n";
214 body +=
"The value, v, and the weight, w, are to be evaluated from the properties of the\n";
215 body +=
"two KVNucleus pointers passed as argument.\n";
219 body +=
"Use the FillVar(v,w) method to increment the quantity of the global variable.\n";
220 body +=
"The value, v, and the weight, w, are to be evaluated from the properties of the\n";
221 body +=
"KVEvent pointer passed as argument.\n";
225 body +=
"Use the FillVar(v,w) method to increment the quantity of the global variable.\n";
226 body +=
"The value, v, and the weight, w, are to be evaluated from the properties of the \n";
227 body +=
"KVNucleus passed as argument. For example, to evaluate the mean parallel velocity\n";
228 body +=
"weighted by the charge of the nucleus, you may proceed as follows:\n";
230 body +=
"FillVar(n->GetVpar(), n->GetZ());\n";
ClassImp(KVPartitionList) void KVPartitionList
Initialisation.
Factory class for generating skeleton files for new classes.
void GenerateCode()
Generate header and implementation file for currently-defined class.
Extension of ROOT TString class which allows backwards compatibility with ROOT v3....
Abstract base class for global variables which calculate a mean value.
static void MakeClass(const Char_t *classname, const Char_t *classdesc, int type=KVVarGlob::kOneBody)
static void FillMethodBody(KVString &body, int type)
virtual Double_t getvalue_int(Int_t i) const
void FillVar(Double_t v, Double_t w=1.)
void Copy(TObject &obj) const
Copy this to a.
static void AddInitMethod(KVClassFactory &cf, KVString &body)
void Copy(TObject &obj) const
Make a copy of this object.
static void AddFillMethodBody(KVClassFactory &cf, KVString &body, int type)
static void ImplementInitMethod(KVClassFactory &cf, KVString &body, int type)
static void AddFillMethod(KVClassFactory &cf, int type)
static void FillMethodBody(KVString &body, int type)
Double_t Sqrt(Double_t x)