KaliVeda
Toolkit for HIC analysis
KVINDRATriggerConditions.cpp
1 #include "KVINDRATriggerConditions.h"
2 #include "KVEventSelector.h"
3 #include <KVVarGlob.h>
4 #include "KVINDRA.h"
5 
6 
11 
13 {
14  // For (classic) INDRA data, respecting the trigger conditions means rejecting all events with
15  // a multiplicity of correctly-identified & calibrated ("OK") particles less than the trigger
16  // multiplicity for the run
17 
18  KVVarGlob* vg = Selec->GetGVList("__internal__")->AddGV("KVArrayMult", "INDRA");
19  vg->SetMaxNumBranches(0);
20  // "__internal__" list has no a priori event selection
21  vg->SetSelection({"OK", [](const KVNucleus * n)
22  {
23  return n->IsOK();
24  }});
25  Int_t trig = gIndra->GetTrigger();
26  Info("SetTriggerConditionsForRun", "Minimum multiplicity for run : %d", trig);
27  vg->SetEventSelection([ = ](const KVVarGlob * V) {
28  return V->GetValue() >= trig;
29  });
30 }
31 
32 
34 
35 
36 
int Int_t
bool Bool_t
General purpose analysis base class for TTree containing KVEvent objects.
KVGVList * GetGVList(const KVString &list_name="default")
KVVarGlob * AddGV(const Char_t *class_name, const Char_t *name)
Definition: KVGVList.cpp:705
Set trigger conditions for analysis of reconstructed INDRA data.
void SetTriggerConditionsForRun(KVEventSelector *, Int_t, Bool_t=kFALSE)
UChar_t GetTrigger() const
Definition: KVINDRA.h:278
Description of properties and kinematics of atomic nuclei.
Definition: KVNucleus.h:126
Base class for all global variable implementations.
Definition: KVVarGlob.h:233
Double_t GetValue(void) const
Definition: KVVarGlob.h:443
void SetMaxNumBranches(Int_t n)
Definition: KVVarGlob.h:683
void SetEventSelection(const EventSelector &f)
Definition: KVVarGlob.h:699
void SetSelection(const KVParticleCondition &sel)
Definition: KVVarGlob.h:600
virtual void Info(const char *method, const char *msgfmt,...) const
const Int_t n
ClassImp(TPyArg)