KaliVeda  1.13/01
Heavy-Ion Analysis Toolkit
KVEventParameter.h
Go to the documentation of this file.
1 #ifndef __KVEVENTPARAMETER_H
2 #define __KVEVENTPARAMETER_H
3 
4 #include "KVVarGlob1.h"
5 
6 #include "KVEvent.h"
7 
23 
24 private:
25  void init()
26  {
27  fType = KVVarGlob::kNBody; // this is a N-body variable
28  }
29 
30 public:
32  {
33  init();
34  }
35  KVEventParameter(const Char_t* parameter_name)
36  : KVVarGlob1(parameter_name)
37  {
38  init();
39  }
40  ROOT_COPY_CTOR(KVEventParameter, KVVarGlob1)
41  ROOT_COPY_ASSIGN_OP(KVEventParameter)
42  virtual ~KVEventParameter(void) {}
43 
44  void Calculate() {}
45  void FillN(const KVEvent* e)
46  {
48  SetValue(e->GetParameters()->GetDoubleValue(GetName()));
49  }
50 
51  ClassDef(KVEventParameter, 1) //Global variable to retrieve parameters from events
52 };
53 
54 #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:66
Abstract base class for global variables which calculate a single value.
Definition: KVVarGlob1.h:13
void SetValue(Double_t val)
Definition: KVVarGlob1.h:26
Int_t fType
type of variable global; = kOneBody, kTwoBody or kNBody
Definition: KVVarGlob.h:241
virtual const char * GetName() const