10 #include <klm/dataobjects/bklm/BKLMHit2d.h>
13 #include <klm/dataobjects/bklm/BKLMHit1d.h>
16 #include <framework/logging/Logger.h>
25 m_GlobalPosition{0, 0, 0},
39 B2WARNING(
"Attempt to form a 2D hit from distinct-module 1D hits");
55 m_ModuleID(h.m_ModuleID),
56 m_ZStrips(h.m_ZStrips),
58 m_EnergyDeposit(h.m_EnergyDeposit)
static bool hitsFromSameModule(int module1, int module2)
Check whether the hits are from the same module.
Store one reconstructed BKLM 1D hit as a ROOT object.
int getStripMin() const
Get lowest strip number of this 1D hit.
int getModuleID() const
Get detector-module identifier.
float getEnergyDeposit() const
Get energy deposition.
int getStripMax() const
Get highest strip number of this 1D hit.
Store one BKLM strip hit as a ROOT object.
float m_GlobalPosition[3]
position of the 2D hit in global coordinates (cm)
static constexpr int BKLM_ZMAXSTRIP_BIT
BKLMHit2d Zstrips bit position for maxStrip-1 [0..47].
float m_Time
reconstructed hit time relative to trigger (ns)
static constexpr int BKLM_ZSTRIP_BIT
BKLMHit2d Zstrips bit position for strip-1 [0..47].
float m_EnergyDeposit
reconstructed pulse height (MeV)
int m_ModuleID
detector-module identifier
int m_ZStrips
z-measuring strip numbers of the 2D hit
BKLMHit2d & operator=(const BKLMHit2d &)
Assignment operator.
BKLMHit2d()
Empty constructor for ROOT IO (needed to make the class storable)
Defines interface for accessing relations of objects in StoreArray.
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).
Abstract base class for different kinds of events.