 |
Belle II Software
release-05-01-25
|
12 #include <klm/dataobjects/bklm/BKLMHit1d.h>
15 #include <klm/dataobjects/bklm/BKLMStatus.h>
18 #include <framework/logging/Logger.h>
42 if (digits.size() == 0) {
43 B2WARNING(
"Attempt to create a BKLMHit1d with no KLMDigits");
46 int stripMin = INT_MAX;
47 int stripMax = INT_MIN;
48 const KLMDigit* bklmDigit = digits.front();
50 B2FATAL(
"Trying to construct a BKLMHit1d using KLMDigits from EKLM.");
56 for (std::vector<const KLMDigit*>::const_iterator iDigit = digits.begin(); iDigit != digits.end(); ++iDigit) {
62 B2WARNING(
"Attempt to combine non-parallel or distinct-module KLMDigits");
68 stripMin = std::min(stripMin, strip);
69 stripMax = std::max(stripMax, strip);
73 if (stripMax >= stripMin) {
74 m_Time /= ((stripMax - stripMin) + 1.0);
83 m_ModuleID(h.m_ModuleID),
85 m_EnergyDeposit(h.m_EnergyDeposit)
int getSubdetector() const
Get subdetector number.
BKLMHit1d & operator=(const BKLMHit1d &)
Assignment operator.
float m_EnergyDeposit
reconstructed pulse height (MeV)
int getPlane() const
Get plane number.
static void setMaximalStrip(int &module, int strip)
Set maximal strip number.
Store one reconstructed BKLM 1D hit as a ROOT object.
float m_Time
reconstructed hit time (ns)
static void setSectionInModule(int &module, int section)
Set section number in module identifier.
BKLMHit1d()
Empty constructor for ROOT IO (needed to make the class storable)
static void setLayerInModule(int &module, int layer)
Set layer number in module identifier.
void addRelationTo(const RelationsInterface< BASE > *object, float weight=1.0, const std::string &namedRelation="") const
Add a relation from this object to another object (with caching).
int getSection() const
Get section number.
int getSector() const
Get sector number.
float getTime() const
Get hit time.
int getLayer() const
Get layer number.
static void setPlaneInModule(int &module, int plane)
Set plane number in module identifier.
static void setSectorInModule(int &module, int sector)
Set sector number in module identifier.
KLM digit (class representing a digitized hit in RPCs or scintillators).
Abstract base class for different kinds of events.
float getEnergyDeposit() const
Get energy deposit.
int m_ModuleID
detector-module identifier
int getStrip() const
Get strip number.
Defines interface for accessing relations of objects in StoreArray.
static void setStripInModule(int &module, int strip)
Set strip number in module identifier.