12 #include <klm/dataobjects/bklm/BKLMElementNumbers.h>
13 #include <klm/dataobjects/bklm/BKLMHit1d.h>
14 #include <klm/dataobjects/bklm/BKLMStatus.h>
17 #include <framework/datastore/RelationsObject.h>
23 #include <CLHEP/Vector/ThreeVector.h>
139 return (
m_ModuleID & BKLM_OUTOFTIME_MASK) != 0;
153 return (
m_ModuleID & BKLM_ONSTATRACK_MASK) != 0;
static int getSectorByModule(int module)
Get sector number by module identifier.
static int getStripByModule(int module)
Get strip number by module identifier.
@ c_FirstRPCLayer
First RPC layer.
static int getLayerByModule(int module)
Get layer number by module identifier.
static int getSectionByModule(int module)
Get section number by module identifier.
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.
Store one BKLM strip hit as a ROOT object.
float m_GlobalPosition[3]
position of the 2D hit in global coordinates (cm)
bool inRPC() const
Determine whether this 2D hit is in RPC or scintillator.
bool isOnStaTrack()
Determine whether this 2D hit is associated with a BKLM-stand-alone track.
void isOnTrack(bool flag)
Set or clear the OnTrack flag.
static constexpr int BKLM_ZMAXSTRIP_BIT
BKLMHit2d Zstrips bit position for maxStrip-1 [0..47].
int getLayer() const
Get layer number.
double getZStripAve() const
Get average z-measuring strip number.
double getPhiStripAve() const
Get average phi-measuring strip number.
float m_Time
reconstructed hit time relative to trigger (ns)
float getTime() const
Get reconstructed hit time.
float getGlobalPositionY(void) const
Get 3D hit position's y coordinate in global coordinates.
int getZStripMax() const
Get highest z-measuring strip number.
bool isOutOfTime()
Determine whether this 2D hit is outside the trigger-coincidence window.
static constexpr int BKLM_ZSTRIP_BIT
BKLMHit2d Zstrips bit position for strip-1 [0..47].
int getSection() const
Get section number.
float m_EnergyDeposit
reconstructed pulse height (MeV)
int getSector() const
Get sector number.
int getModuleID() const
Get detector-module identifier.
int m_ModuleID
detector-module identifier
int getPhiStripMin() const
Get lowest phi-measuring strip number.
void isOutOfTime(bool flag)
Set or clear the OutOfTime flag.
int m_ZStrips
z-measuring strip numbers of the 2D hit
void isOnStaTrack(bool flag)
Set or clear the On-BKLM-stand-alone-track flag.
BKLMHit2d & operator=(const BKLMHit2d &)
Assignment operator.
int getZStripMin() const
Get lowest z-measuring strip number.
static constexpr int BKLM_ZMAXSTRIP_MASK
BKLMHit2d Zstrips bit mask for maxStrip-1 [0..47].
bool isOnTrack()
Determine whether this 2D hit is associated with a muid-extrapolated track.
int getPhiStripMax() const
Get highest phi-measuring strip number.
TVector3 getGlobalPosition(void) const
Get 3D hit position in global coordinates.
BKLMHit2d()
Empty constructor for ROOT IO (needed to make the class storable)
float getEnergyDeposit() const
Get reconstructed energy deposition.
float getGlobalPositionX(void) const
Get 3D hit position's x coordinate in global coordinates.
static constexpr int BKLM_ZSTRIP_MASK
BKLMHit2d Zstrips bit mask for strip-1 [0..47].
bool match(const BKLMHit2d *h) const
Determine whether the two BKLMHit2ds are in the same module.
float getGlobalPositionZ(void) const
Get 3D hit position's z coordinate in global coordinates.
static int getMaximalStrip(int module)
Get maximal strip number.
Defines interface for accessing relations of objects in StoreArray.
ClassDef(RelationsInterface, 0)
defines interface for accessing relations of objects in StoreArray.
Abstract base class for different kinds of events.