7#include "FairDetector.h"
14#include <unordered_map>
59 virtual void Reset()
override;
99 std::unique_ptr<BmnFHCalPoint>
fPoint;
#define ClassDefOverride(name, id)
int GetSurfaceMCTrack(int start_track_id)
Determines the surface-level Monte Carlo track ID associated with the given starting track ID.
std::unique_ptr< BmnFHCalPoint > fPoint
BmnFHCalPoint * AddHit(BmnFHCalPoint *point)
Adds the hit to hits collection.
BmnFHCalPoint * GetHit(uint32_t address)
Retrieves a hit from the collection based on the detector address.
virtual ~BmnFHCal()
Destructor.
TClonesArray * fCollection
virtual void Reset() override
Clears the hit collection.
virtual void Print(Option_t *) const override
Screen output of hit collection.
BmnFHCal()
Default constructor.
virtual void ConstructGeometry() override
Constructs geometry from files.
void UpdateHit(BmnFHCalPoint &existing, const BmnFHCalPoint &update)
Updates an existing hit by merging information from a new hit, weighting position,...
virtual void EndOfEvent() override
Called at the end of each event.
virtual void Initialize() override
Initializes detector and FairRun.
std::map< uint32_t, FairMultiLinkedData > fMultiLinkMap
virtual void Register() override
Registers the hit collection in the ROOT manager.
std::unique_ptr< BmnFHCalGeo > fGeoHandler
virtual void BeginEvent() override
Called at the beginning of each event.
virtual TClonesArray * GetCollection(Int_t iColl) const override
Accessor to the hit collection.
virtual Bool_t ProcessHits(FairVolume *vol=nullptr) override
Processes hits and creates BmnFHCalPoints.
virtual Bool_t CheckIfSensitive(std::string name) override
Checks whether a volume is sensitive based on its name.