Belle II Software development
ECLDigit.cc
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#include <ecl/dataobjects/ECLDigit.h>
10#include <framework/datastore/StoreArray.h>
11
12using namespace Belle2;
13
15{
16 static StoreArray<ECLDigit> ecl_digits_arr;
17 for (auto& ecl_dig : ecl_digits_arr) {
18 if (ecl_dig.getCellId() == cid) return &ecl_dig;
19 }
20 return nullptr;
21}
22
Class to store ECL digitized hits (output of ECLDigi) relation to ECLHit filled in ecl/modules/eclDig...
Definition: ECLDigit.h:24
static ECLDigit * getByCellID(int cid)
Find ECLDigit by Cell ID using linear search.
Definition: ECLDigit.cc:14
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
Abstract base class for different kinds of events.