KaliVeda
Toolkit for HIC analysis
Loading...
Searching...
No Matches
KVEventParameter.h
1#ifndef __KVEVENTPARAMETER_H
2#define __KVEVENTPARAMETER_H
3
4#include "KVVarGlob1.h"
5
6#include "KVEvent.h"
7
24
25private:
26 void init()
27 {
28 fType = KVVarGlob::kNBody; // this is a N-body variable
29 }
30
31public:
33 {
34 init();
35 }
36 KVEventParameter(const Char_t* parameter_name)
37 : KVVarGlob1(parameter_name)
38 {
39 init();
40 }
41 ROOT_COPY_CTOR(KVEventParameter, KVVarGlob1)
42 ROOT_COPY_ASSIGN_OP(KVEventParameter)
43 virtual ~KVEventParameter(void) {}
44
45 void Calculate() {}
46 void FillN(const KVEvent* e)
47 {
49 SetValue(e->GetParameters()->GetDoubleValue(GetName()));
50 }
51
52 ClassDef(KVEventParameter, 1) //Global variable to retrieve parameters from events
53};
54
55#endif
#define e(i)
char Char_t
#define ClassDef(name, id)
Global variable to retrieve parameters from events.
KVEventParameter(const Char_t *parameter_name)
void FillN(const KVEvent *e)
Abstract base class container for multi-particle events.
Definition KVEvent.h:67
Abstract base class for global variables which calculate a single value.
Definition KVVarGlob1.h:14
void SetValue(Double_t val)
Definition KVVarGlob1.h:27
Int_t fType
type of variable global; = kOneBody, kTwoBody or kNBody
Definition KVVarGlob.h:243
const char * GetName() const override