KaliVeda  1.13/01
Heavy-Ion Analysis Toolkit
KVINDRATriggerConditions.cpp
Go to the documentation of this file.
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 particles less than the trigger
16  // multiplicity for the run
17 
18  KVVarGlob* vg = Selec->GetGVList()->AddGVFirst("KVArrayMult", "INDRA");
19  vg->SetMaxNumBranches(0);
20  Int_t trig = gIndra->GetTrigger();
21  Info("SetTriggerConditionsForRun", "Minimum multiplicity for run : %d", trig);
22  vg->SetEventSelection([ = ](const KVVarGlob * V) {
23  return V->GetValue() >= trig;
24  });
25  vg->Init();//initialise by hand, list will have been 'Init'ed already
26 }
27 
28 
30 
31 
32 
int Int_t
KVINDRA * gIndra
Definition: KVINDRA.cpp:88
ClassImp(KVPartitionList) void KVPartitionList
Initialisation.
General purpose analysis class for TTree containing KVEvent objects.
KVGVList * GetGVList(const KVString &list_name="default")
KVVarGlob * AddGVFirst(const Char_t *class_name, const Char_t *name)
Definition: KVGVList.cpp:734
Set trigger conditions for analysis of reconstructed INDRA data.
void SetTriggerConditionsForRun(KVEventSelector *, int)
UChar_t GetTrigger() const
Definition: KVINDRA.h:270
Base class for all global variable implementations.
Definition: KVVarGlob.h:231
Double_t GetValue(void) const
Definition: KVVarGlob.h:441
void SetMaxNumBranches(Int_t n)
Definition: KVVarGlob.h:674
void SetEventSelection(const EventSelector &f)
Definition: KVVarGlob.h:690
virtual void Init()=0
virtual void Info(const char *method, const char *msgfmt,...) const