Belle II Software development
ECLLocalMaximum.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#pragma once
10
11#include <framework/datastore/RelationsObject.h>
12
13namespace Belle2 {
23 public:
24
26 enum {
30 };
31
33 static const size_t c_nTypes = 3;
34
37 {
38 m_LMId = -1;
39 m_Type = -1;
40 m_CellId = -1;
41 }
42
43 // setters
46 void setLMId(int LMId) { m_LMId = LMId; }
47
50 void setCellId(int cellid) { m_CellId = cellid; }
51
54 void setType(int type) { m_Type = type; }
55
56 // getters
60 int getLMId() const { return m_LMId; }
61
65 int getType() const { return m_Type; }
66
70 int getCellId() const { return m_CellId; }
71
72 private:
73 int m_LMId;
74 int m_Type;
77 // 1: Initial version.
78 // 2: Added identifier for LM type (photon, electron, merged pi0...).
79 // 2: Removed bulky extra information and added CellId.
82 };
83
85} // end namespace Belle2
86
Class to store local maxima (LM)
static const size_t c_nTypes
Number of different types.
int m_Type
LM type (photon, electron, merged pi0...)
int getCellId() const
Get CellId.
int getLMId() const
Get LM identifier.
void setCellId(int cellid)
Set CellId.
ClassDef(ECLLocalMaximum, 3)
ClassDef.
int getType() const
Get type.
void setLMId(int LMId)
Set LM identifier.
ECLLocalMaximum()
default constructor for ROOT
void setType(int type)
Set type.
Defines interface for accessing relations of objects in StoreArray.
Abstract base class for different kinds of events.