Belle II Software development
KLM_Trig.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9
10#pragma once
11#include <vector>
12#include "trg/klm/modules/klmtrigger/KLMAxis.h"
13
14
15namespace Belle2 {
23 public:
24 void clear_layersUsed();
25 void add_layersUsed(int layersUsed);
26 void set_NLayerTrigger(int NlayerTrigger);
27
28 void run(const KLM_TRG_definitions::KLM_Digit_compact_ts& hits);
29
30 int get_n_sections_trig(int subdetector);
31 int get_triggermask(int subdetector, int section);
32 int get_BKLM_back_to_back_flag(int subdetector);
33
34
35 private:
36 std::vector<nt::ntuple<KLM_TRG_definitions::layer>> m_layersUsed;
37 int m_NlayerTrigger;
38
39
40
41
42
43 using sections_trig_t =
44 std::vector<nt::ntuple< KLM_TRG_definitions::subdetector, KLM_TRG_definitions::section, KLM_TRG_definitions:: sector_mask, KLM_TRG_definitions::n_sections_trig>>;
45 sections_trig_t m_sections_trig;
46
47 using summary1_t =
48 std::vector<nt::ntuple< KLM_TRG_definitions::subdetector, KLM_TRG_definitions::n_sections_trig, KLM_TRG_definitions::back2back >>;
49 summary1_t m_summary1;
50
51
52 };
53
54
55
57}
Abstract base class for different kinds of events.