Belle II Software development
ECLElementNumbers.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
11namespace Belle2 {
20 namespace ECLElementNumbers {
21
23 const int c_NCrystals = 8736;
24
26 const int c_NCrystalsForward = 1152;
27
29 const int c_NCrystalsBarrel = 6624;
30
32 const int c_NCrystalsBackward = 960;
33
36
41 inline bool isForward(int cellId)
42 {
43 return cellId <= c_NCrystalsForward;
44 }
45
50 inline bool isBarrel(int cellId)
51 {
52 return (c_NCrystalsForward < cellId) &&
53 (cellId <= c_NCrystalsForwardBarrel);
54 }
55
60 inline bool isBackward(int cellId)
61 {
62 return c_NCrystalsForwardBarrel < cellId;
63 }
64
65 }
66
68}
bool isForward(int cellId)
Check whether the crystal is in forward ECL.
bool isBarrel(int cellId)
Check whether the crystal is in barrel ECL.
const int c_NCrystals
Number of crystals.
const int c_NCrystalsForwardBarrel
Number of crystals in the forward and barrel ECL.
const int c_NCrystalsBackward
Number of crystals in the backward ECL.
const int c_NCrystalsBarrel
Number of crystals in the barrel ECL.
bool isBackward(int cellId)
Check whether the crystal is in backward ECL.
const int c_NCrystalsForward
Number of crystals in the forward ECL.
Abstract base class for different kinds of events.