KaliVeda
Toolkit for HIC analysis
Loading...
Searching...
No Matches
KVArrayMult.h
1#ifndef __KVARRAYMULT_H
2#define __KVARRAYMULT_H
3
4#include "KVMult.h"
5#include "KVReconstructedNucleus.h"
6
21class KVArrayMult : public KVMult {
22public:
24 : KVMult()
25 {}
26 KVArrayMult(const Char_t* name)
27 : KVMult(Form("Mult_%s", name))
28 {
30
32#ifdef USING_ROOT6
33 SetSelection({Form("Mult_%s", name), [&](const KVNucleus * n)
34 {
35 return dynamic_cast<const KVReconstructedNucleus*>(n)->InArray(GetTitle());
36 }
37 });
38#else
39 SetSelection(Form("_NUC_->InArray(\"%s\")", name));
40#endif
41 }
42 virtual ~KVArrayMult() {}
43
44 ClassDef(KVArrayMult, 1) //Calculate multiplicity in given array
45};
46
47#endif
char Char_t
#define ClassDef(name, id)
char name[80]
char * Form(const char *fmt,...)
Calculate multiplicity in given array.
Definition KVArrayMult.h:21
virtual ~KVArrayMult()
Definition KVArrayMult.h:42
KVArrayMult(const Char_t *name)
Definition KVArrayMult.h:26
Multiplicity of all nuclei in event (including )
Definition KVMult.h:15
Description of properties and kinematics of atomic nuclei.
Definition KVNucleus.h:126
Nuclei reconstructed from data measured by a detector array .
void SetSelection(const KVParticleCondition &sel)
Definition KVVarGlob.h:600
virtual void SetTitle(const char *title="")
const char * GetTitle() const override
const Int_t n