KaliVeda  1.13/01
Heavy-Ion Analysis Toolkit
KVINDRAFAZIAE789TriggerConditions.cpp
Go to the documentation of this file.
2 #include "KVFAZIA.h"
3 #include "KVEventSelector.h"
4 
6 
7 
8 
10 void KVINDRAFAZIAE789TriggerConditions::SetTriggerConditionsForRun(KVEventSelector* Selector, int)
11 {
12  auto gv = Selector->GetGVList()->AddGVFirst("KVDummyGV", "FaziaTrigSelect");
13  auto TrigPat = gFazia->GetTriggerForCurrentRun();
14  Info("SetTriggerConditionsForRun", "Rejecting all events for which FAZIA trigger pattern is NOT: %s", TrigPat.c_str());
15  gv->SetEventSelection([ = ](const KVVarGlob*) {
16  return gFazia->GetTrigger().IsTrigger(TrigPat);
17  });
18 }
19 
20 
KVFAZIA * gFazia
Definition: KVFAZIA.cpp:45
ClassImp(KVPartitionList) void KVPartitionList
Initialisation.
General purpose analysis class for TTree containing KVEvent objects.
std::string GetTriggerForCurrentRun() const
Definition: KVFAZIA.cpp:129
const KVFAZIATrigger & GetTrigger() const
Definition: KVFAZIA.h:253
Trigger conditions for E789 INDRAFAZIA experiment.
Base class for all global variable implementations.
Definition: KVVarGlob.h:231
void Info(const char *location, const char *va_(fmt),...)