Belle II Software development
ECLShowerId Class Reference

Class to convert the shower id into CR, CS and Seed and vice versa. More...

#include <ECLShowerId.h>

Public Member Functions

 ECLShowerId ()
 Constructor.
 
int getCRID (const int showerid) const
 Returns connected region for a given shower ID.
 
int getHypothesis (const int showerid) const
 Returns hypothesis for a given shower ID.
 
int getSeed (const int showerid) const
 Returns seed for a given shower ID.
 
int getShowerId (const int crid, const int hypothesis, const int seed) const
 Returns shower identifier for given CRID, hypothesis and seed.
 

Private Attributes

const int m_CRMultiplier = 100000
 Connected Region Multiplier.
 
const int m_HypothesisMultiplier = 1000
 Hypothesis Multiplier

 
const int m_SeedMultiplier = 1
 Seed Multiplier

 

Detailed Description

Class to convert the shower id into CR, CS and Seed and vice versa.

Definition at line 20 of file ECLShowerId.h.

Constructor & Destructor Documentation

◆ ECLShowerId()

Constructor.

Definition at line 14 of file ECLShowerId.cc.

15{ }

Member Function Documentation

◆ getCRID()

int getCRID ( const int  showerid) const
inline

Returns connected region for a given shower ID.

Definition at line 32 of file ECLShowerId.h.

33 {
34 return showerid / m_CRMultiplier;
35 }
const int m_CRMultiplier
Connected Region Multiplier.
Definition: ECLShowerId.h:64

◆ getHypothesis()

int getHypothesis ( const int  showerid) const
inline

Returns hypothesis for a given shower ID.

Definition at line 40 of file ECLShowerId.h.

41 {
42 return (showerid % m_CRMultiplier) / m_HypothesisMultiplier;
43 }
const int m_HypothesisMultiplier
Hypothesis Multiplier
Definition: ECLShowerId.h:67

◆ getSeed()

int getSeed ( const int  showerid) const
inline

Returns seed for a given shower ID.

Definition at line 48 of file ECLShowerId.h.

49 {
51 }
const int m_SeedMultiplier
Seed Multiplier
Definition: ECLShowerId.h:70

◆ getShowerId()

int getShowerId ( const int  crid,
const int  hypothesis,
const int  seed 
) const
inline

Returns shower identifier for given CRID, hypothesis and seed.

Definition at line 56 of file ECLShowerId.h.

57 {
58 return m_CRMultiplier * crid + m_HypothesisMultiplier * hypothesis + m_SeedMultiplier * seed;
59 }

Member Data Documentation

◆ m_CRMultiplier

const int m_CRMultiplier = 100000
private

Connected Region Multiplier.

Definition at line 64 of file ECLShowerId.h.

◆ m_HypothesisMultiplier

const int m_HypothesisMultiplier = 1000
private

Hypothesis Multiplier

Definition at line 67 of file ECLShowerId.h.

◆ m_SeedMultiplier

const int m_SeedMultiplier = 1
private

Seed Multiplier

Definition at line 70 of file ECLShowerId.h.


The documentation for this class was generated from the following files: